We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50503f2 commit 2f189c0Copy full SHA for 2f189c0
dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php
@@ -260,8 +260,11 @@ public function testCodeStyle()
260
{
261
$isFullScan = defined('TESTCODESTYLE_IS_FULL_SCAN') && TESTCODESTYLE_IS_FULL_SCAN === '1';
262
$reportFile = self::$reportDir . '/phpcs_report.txt';
263
+ if (!file_exists($reportFile)) {
264
+ touch($reportFile);
265
+ }
266
$codeSniffer = new CodeSniffer('Magento', $reportFile, new Wrapper());
- $result = $codeSniffer->run($isFullScan ? $this->getFullWhitelist() : self::getWhitelist(['php', 'phtml']));
267
+ $result = $codeSniffer->run($isFullScan ? $this->getFullWhitelist() : []);
268
$report = file_get_contents($reportFile);
269
$this->assertEquals(
270
0,
0 commit comments