File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- $ finder = Symfony \ CS \ Finder \DefaultFinder:: create ()
4- -> in ( __DIR__ );
5-
6- $ fixers = array (
7- ' long_array_syntax ' ,
8- );
9-
10- return Symfony \ CS \ Config \Config:: create ()
11- -> setUsingCache (true )
12- -> level ( Symfony \ CS \FixerInterface:: PSR2_LEVEL )
13- -> fixers ( $ fixers )
14- -> finder ( $ finder ) ;
3+ require __DIR__ . ' /vendor/autoload.php ' ;
4+
5+ use SLLH \ StyleCIBridge \ ConfigBridge ;
6+
7+ $ config = ConfigBridge:: create ();
8+ $ config -> setUsingCache ( true );
9+
10+ if ( method_exists ( $ config , ' setRiskyAllowed ' )) {
11+ $ config -> setRiskyAllowed (true );
12+ }
13+
14+ return $ config ;
Original file line number Diff line number Diff line change 2222 "guzzle/guzzle" : " ~3.7"
2323 },
2424 "require-dev" : {
25- "phpunit/phpunit" : " ~4.0"
25+ "phpunit/phpunit" : " ~4.0" ,
26+ "sllh/php-cs-fixer-styleci-bridge" : " ~1.3"
2627 },
2728 "suggest" : {
2829 "knplabs/gaufrette" : " Needed for optional Gaufrette cache"
You can’t perform that action at this time.
0 commit comments