Permalink
Browse files

removed option --short-arrays, is always on

  • Loading branch information...
dg committed Apr 24, 2018
1 parent 473cdac commit e0cfad563c298c669799edad72e5623f4cef5f55
Showing with 2 additions and 6 deletions.
  1. +0 −1 readme.md
  2. +2 −5 src/bootstrap.php
@@ -27,7 +27,6 @@ Options:
-f | --fix fixes files
-l | --eol convert newline characters
--no-progress do not show progress dots
--short-arrays enforces PHP 5.4 short array syntax
--strict-types checks whether PHP 7.0 directive strict_types is enabled
```

@@ -50,14 +50,14 @@
-f | --fix Fixes files
-l | --eol Convert newline characters
--no-progress Do not show progress dots
--short-arrays Enforces PHP 5.4 short array syntax
--strict-types Checks whether PHP 7.0 directive strict_types is enabled
XX
, [
'-d' => [Parser::REALPATH => true, Parser::VALUE => getcwd()],
'--ignore' => [Parser::REPEATABLE => true],
'--short-arrays' => [], // ignored
]);
$options = $cmd->parse();
@@ -79,10 +79,7 @@
$checker->addTask([$tasks, 'utf8Checker']);
$checker->addTask([$tasks, 'phpSyntaxChecker'], '*.php,*.phpt');
$checker->addTask([$tasks, 'invalidPhpDocChecker'], '*.php,*.phpt');
if (isset($options['--short-arrays'])) {
$checker->addTask([$tasks, 'shortArraySyntaxFixer'], '*.php,*.phpt');
}
$checker->addTask([$tasks, 'shortArraySyntaxFixer'], '*.php,*.phpt');
if (isset($options['--strict-types'])) {
$checker->addTask([$tasks, 'strictTypesDeclarationChecker'], '*.php,*.phpt');
}

0 comments on commit e0cfad5

Please sign in to comment.