Skip to content

Commit

Permalink
Normalize the loop variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 25, 2024
1 parent 376d3ec commit 831c83c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public static function postprocess(string $html): string
$html = str_replace($patterns, sprintf('<a href="%s"', $route->getLink()), $html);
}

foreach (static::assetMap() as $path => $mediaFile) {
foreach (static::assetMap() as $sourcePath => $mediaFile) {
$patterns = [
sprintf('<img src="%s"', $path),
sprintf('<img src="/%s"', $path),
sprintf('<img src="%s"', $sourcePath),
sprintf('<img src="/%s"', $sourcePath),
];

$html = str_replace($patterns, sprintf('<img src="%s"', static::assetPath($mediaFile)), $html);
Expand Down

0 comments on commit 831c83c

Please sign in to comment.