Skip to content

Commit

Permalink
Merge pull request #67 from spryker-sdk/feature/frw-8801/master-php-u…
Browse files Browse the repository at this point in the history
…pgrade-and-drop-81-new

FRW-8801 CI Fixes.
  • Loading branch information
eduard-melnytskyi authored Sep 20, 2024
2 parents d4cdedf + 7f6a31f commit acc3e3f
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 acc3e3f

Please sign in to comment.