@@ -650,16 +650,14 @@ public function restoreDefaults()
650
650
$ this ->colors = (bool ) $ colors ;
651
651
}
652
652
653
- if (defined ('PHP_CODESNIFFER_IN_TESTS ' ) === false ) {
654
- $ cache = self ::getConfigData ('cache ' );
655
- if ($ cache !== null ) {
656
- $ this ->cache = (bool ) $ cache ;
657
- }
653
+ $ cache = self ::getConfigData ('cache ' );
654
+ if ($ cache !== null ) {
655
+ $ this ->cache = (bool ) $ cache ;
656
+ }
658
657
659
- $ parallel = self ::getConfigData ('parallel ' );
660
- if ($ parallel !== null ) {
661
- $ this ->parallel = max ((int ) $ parallel , 1 );
662
- }
658
+ $ parallel = self ::getConfigData ('parallel ' );
659
+ if ($ parallel !== null ) {
660
+ $ this ->parallel = max ((int ) $ parallel , 1 );
663
661
}
664
662
665
663
}//end restoreDefaults()
@@ -817,10 +815,8 @@ public function processLongArgument($arg, $pos)
817
815
break ;
818
816
}
819
817
820
- if (defined ('PHP_CODESNIFFER_IN_TESTS ' ) === false ) {
821
- $ this ->cache = true ;
822
- $ this ->overriddenDefaults ['cache ' ] = true ;
823
- }
818
+ $ this ->cache = true ;
819
+ $ this ->overriddenDefaults ['cache ' ] = true ;
824
820
break ;
825
821
case 'no-cache ' :
826
822
if (isset ($ this ->overriddenDefaults ['cache ' ]) === true ) {
@@ -928,9 +924,7 @@ public function processLongArgument($arg, $pos)
928
924
929
925
$ this ->exclude = $ this ->parseSniffCodes (substr ($ arg , 8 ), 'exclude ' );
930
926
$ this ->overriddenDefaults ['exclude ' ] = true ;
931
- } else if (defined ('PHP_CODESNIFFER_IN_TESTS ' ) === false
932
- && substr ($ arg , 0 , 6 ) === 'cache= '
933
- ) {
927
+ } else if (substr ($ arg , 0 , 6 ) === 'cache= ' ) {
934
928
if ((isset ($ this ->overriddenDefaults ['cache ' ]) === true
935
929
&& $ this ->cache === false )
936
930
|| isset ($ this ->overriddenDefaults ['cacheFile ' ]) === true
0 commit comments