Skip to content

Commit d6dd382

Browse files
committed
Refactored greedy array_merge to foreach loop
1 parent 68d7f5a commit d6dd382

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/Asset/ProvisionedPathResolver.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public function provisionResolvedPaths(array $assetsPaths, string $design): arra
4343
$webrootDir = $this->webRootDir;
4444
$assetsLogicalPaths = [];
4545
foreach ($assetsPaths as $path) {
46-
$themePath = "$webrootDir/$path";
47-
$assetsLogicalPaths = array_merge($assetsLogicalPaths, $this->computeLogicalPathFromPhysicalAssets($themePath));
46+
foreach ($this->computeLogicalPathFromPhysicalAssets("$webrootDir/$path") as $logicalPath) {
47+
$assetsLogicalPaths[] = $logicalPath;
48+
}
4849
}
4950

5051
$resolvedPaths = [];

0 commit comments

Comments
 (0)