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 1
1
<?php
2
2
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 ' ./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 22
22
"guzzle/guzzle" : " ~3.7"
23
23
},
24
24
"require-dev" : {
25
- "phpunit/phpunit" : " ~4.0"
25
+ "phpunit/phpunit" : " ~4.0" ,
26
+ "sllh/php-cs-fixer-styleci-bridge" : " ~1.3"
26
27
},
27
28
"suggest" : {
28
29
"knplabs/gaufrette" : " Needed for optional Gaufrette cache"
You can’t perform that action at this time.
0 commit comments