Browse Source

DX: update php-cs-fixer file style

Kuba Werłos 6 years ago
parent
commit
398cbd72b7
2 changed files with 3 additions and 3 deletions
  1. 1 0
      .php_cs.dist
  2. 2 3
      php-cs-fixer

+ 1 - 0
.php_cs.dist

@@ -13,6 +13,7 @@ EOF;
 $finder = PhpCsFixer\Finder::create()
     ->exclude('tests/Fixtures')
     ->in(__DIR__)
+    ->append([__DIR__.'/php-cs-fixer'])
 ;
 
 $config = PhpCsFixer\Config::create()

+ 2 - 3
php-cs-fixer

@@ -2,7 +2,7 @@
 <?php
 
 /*
- * This file is part of the PHP CS utility.
+ * This file is part of PHP CS Fixer.
  *
  * (c) Fabien Potencier <fabien@symfony.com>
  *     Dariusz Rumiński <dariusz.ruminski@gmail.com>
@@ -15,7 +15,6 @@
  * @author Fabien Potencier <fabien@symfony.com>
  * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
  */
-
 if (getenv('PHP_CS_FIXER_FUTURE_MODE')) {
     error_reporting(-1);
 }
@@ -28,7 +27,7 @@ if (defined('HHVM_VERSION_ID')) {
     } else {
         exit(1);
     }
-} elseif (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50600 || PHP_VERSION_ID >= 70300) {
+} elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 50600 || \PHP_VERSION_ID >= 70300) {
     fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.2.*.\n");
 
     if (getenv('PHP_CS_FIXER_IGNORE_ENV')) {