Permalink
Browse files

used 7.1 features

  • Loading branch information...
dg committed Apr 24, 2018
1 parent 8f14a81 commit 92f319ba5488fc352fb01db462ea102a7703b4ee
Showing with 4 additions and 4 deletions.
  1. +1 −1 .travis.yml
  2. +2 −2 src/Checker.php
  3. +1 −1 src/Result.php
@@ -29,7 +29,7 @@ jobs:

script:
- php temp/code-checker/src/code-checker.php --short-arrays
- php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php56.neon
- php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php71.neon


- stage: Code Coverage
@@ -87,7 +87,7 @@ private function processFile($file)
$origContents = $lastContents = file_get_contents($file);
foreach ($this->tasks as $task) {
list($handler, $pattern) = $task;
[$handler, $pattern] = $task;
if ($pattern && !$this->matchFileName($pattern, basename($file))) {
continue;
}
@@ -97,7 +97,7 @@ private function processFile($file)
$handler($contents, $result);
foreach ($result->getMessages() as $result) {
list($type, $message, $line) = $result;
[$type, $message, $line] = $result;
if ($type === Result::ERROR) {
$this->write('ERROR', $message, $line, 'red');
$error = true;
@@ -5,7 +5,7 @@
class Result
{
const
public const
ERROR = 'error',
FIX = 'fix',
WARNING = 'warning';

0 comments on commit 92f319b

Please sign in to comment.