File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
dev/tests/static/testsuite/Magento/Test/Php Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -199,13 +199,11 @@ private function getFullWhitelist()
199
199
200
200
public function testCodeStyle ()
201
201
{
202
- $ whiteList = defined ('TESTCODESTYLE_IS_FULL_SCAN ' ) && TESTCODESTYLE_IS_FULL_SCAN === '1 '
203
- ? $ this ->getFullWhitelist () : self ::getWhitelist (['php ' , 'phtml ' ]);
204
-
202
+ $ isFullScan = defined ('TESTCODESTYLE_IS_FULL_SCAN ' ) && TESTCODESTYLE_IS_FULL_SCAN === '1 ' ;
205
203
$ reportFile = self ::$ reportDir . '/phpcs_report.txt ' ;
206
204
$ codeSniffer = new CodeSniffer ('Magento ' , $ reportFile , new Wrapper ());
207
- $ result = $ codeSniffer ->run ($ whiteList );
208
- $ report = file_exists ( $ reportFile ) ? file_get_contents ($ reportFile ) : '' ;
205
+ $ result = $ codeSniffer ->run ($ isFullScan ? $ this -> getFullWhitelist () : self :: getWhitelist ([ ' php ' , ' phtml ' ]) );
206
+ $ report = file_get_contents ($ reportFile );
209
207
$ this ->assertEquals (
210
208
0 ,
211
209
$ result ,
You can’t perform that action at this time.
0 commit comments