Security update for Core, with self-updated composer
[yaffs-website] / vendor / psy / psysh / .php_cs
index 4b82f85348e82c45e3683c051b95b4cca4677fcf..94e2ce165721efe877942e0edff951f3fb1d8047 100644 (file)
@@ -1,8 +1,11 @@
 <?php
 
-use Symfony\CS\Config\Config;
-use Symfony\CS\FixerInterface;
-use Symfony\CS\Fixer\Contrib\HeaderCommentFixer;
+$finder = PhpCsFixer\Finder::create()
+    ->in(__DIR__)
+    ->name('.php_cs')
+    ->name('build-manual')
+    ->name('build-phar')
+    ->exclude('build-vendor');
 
 $header = <<<EOF
 This file is part of Psy Shell.
@@ -13,32 +16,17 @@ For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.
 EOF;
 
-HeaderCommentFixer::setHeader($header);
-
-$config = Config::create()
-    // use symfony level and extra fixers:
-    ->level(FixerInterface::SYMFONY_LEVEL)
-    ->fixers(array(
-        'align_double_arrow',
-        'concat_with_spaces',
-        'header_comment',
-        'long_array_syntax',
-        'ordered_use',
-        'strict',
-        '-concat_without_spaces',
-        '-method_argument_space',
-        '-pre_increment',
-        '-unalign_double_arrow',
-        '-unalign_equals',
-        '-no_empty_comment', // stop removing slashes in the middle of multi-line comments
+return PhpCsFixer\Config::create()
+    ->setRules(array(
+        '@Symfony' => true,
+        'array_syntax' => array('syntax' => 'long'),
+        'binary_operator_spaces' => false,
+        'concat_space' => array('spacing' => 'one'),
+        'header_comment' => array('header' => $header),
+        'increment_style' => array('style' => 'post'),
+        'method_argument_space' => array('keep_multiple_spaces_after_comma' => true),
+        'ordered_imports' => true,
+        'pre_increment' => false,
+        'yoda_style' => false,
     ))
-    ->setUsingLinter(false);
-
-$finder = $config->getFinder()
-    ->in(__DIR__)
-    ->name('.php_cs')
-    ->name('build-manual')
-    ->name('build-phar')
-    ->exclude('build-vendor');
-
-return $config;
+    ->setFinder($finder);