Skip to content

Commit

Permalink
FRW-8801 CI Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
olhalivitchuk committed Sep 20, 2024
1 parent d4cdedf commit 7f6a31f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Checker/DeadCode/DeadCodeFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@ protected function getAllClassesInUse(string $path): array
$fileContent = $file->getContents();

preg_match_all('/use (?<useClasses>\S*)(;| )/m', $fileContent, $matches);
if (isset($matches['useClasses'])) {
foreach ($matches['useClasses'] as $useClass) {
$allClassesInUse[$useClass] = true;
}
foreach ($matches['useClasses'] as $useClass) {
$allClassesInUse[$useClass] = true;
}
}

Expand Down

0 comments on commit 7f6a31f

Please sign in to comment.