Skip to content

Commit ad44399

Browse files
author
Oleksii Korshenko
authored
Merge pull request #1591 from magento-engcom/develop-prs
Public Pull Requests #11360 #11206
2 parents 0f1c2f1 + f59cfe2 commit ad44399

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/code/Magento/Cron/etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</argument>
4444
</arguments>
4545
</type>
46-
<type name="Magento\Framework\Crontab\CrontabManager">
46+
<type name="Magento\Framework\Crontab\CrontabManagerInterface">
4747
<arguments>
4848
<argument name="shell" xsi:type="object">Magento\Framework\App\Shell</argument>
4949
</arguments>

dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,12 @@ public function testCodeStyle()
206206

207207
$reportFile = self::$reportDir . '/phpcs_report.txt';
208208
$codeSniffer = new CodeSniffer('Magento', $reportFile, new Wrapper());
209+
$result = $codeSniffer->run($whiteList);
210+
$report = file_exists($reportFile) ? file_get_contents($reportFile) : '';
209211
$this->assertEquals(
210212
0,
211-
$result = $codeSniffer->run($whiteList),
212-
"PHP Code Sniffer detected {$result} violation(s): " . PHP_EOL . file_get_contents($reportFile)
213+
$result,
214+
"PHP Code Sniffer detected {$result} violation(s): " . PHP_EOL . $report
213215
);
214216
}
215217

0 commit comments

Comments
 (0)