Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 6de8abb

Browse files
author
Volodymyr Kublytskyi
committed
Fixed Obsolete Code ignore list
1 parent 9daedb7 commit 6de8abb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/static/testsuite/Magento/Test/Legacy/ObsoleteCodeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function testPhpFiles()
112112
$changedFiles = ChangedFiles::getPhpFiles(__DIR__ . '/../_files/changed_files*');
113113
$blacklistFiles = $this->getBlacklistFiles();
114114
foreach ($blacklistFiles as $blacklistFile) {
115-
unset($changedFiles[BP . $blacklistFile]);
115+
unset($changedFiles[$blacklistFile]);
116116
}
117117
$invoker(
118118
function ($file) {
@@ -920,7 +920,7 @@ private function processPattern($appPath, $pattern)
920920

921921
$fileSet = glob($appPath . DIRECTORY_SEPARATOR . $pattern, GLOB_NOSORT);
922922
foreach ($fileSet as $file) {
923-
$files[] = substr($file, $relativePathStart);
923+
$files[] = ltrim(substr($file, $relativePathStart), '/');
924924
}
925925

926926
return $files;

0 commit comments

Comments
 (0)