Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
remove not needet if condition for empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Kluge committed Mar 25, 2020
1 parent f0297fb commit c156c1f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ public function getPackageComposerFiles(): array
->exclude('node_modules')
->name('composer.json');

if ($this->packageDirectoriesExcludes !== []) {
foreach ($this->packageDirectoriesExcludes as $excludeFolder) {
$finder->exclude($excludeFolder);
}
foreach ($this->packageDirectoriesExcludes as $excludeFolder) {
$finder->exclude($excludeFolder);
}

if (! $this->isPHPUnit()) {
Expand Down

0 comments on commit c156c1f

Please sign in to comment.