Skip to content

Commit 19f2aa2

Browse files
committed
minor #12587 Simplify example of GulpBusterVersionStrategy (bocharsky-bw)
This PR was merged into the 3.4 branch. Discussion ---------- Simplify example of GulpBusterVersionStrategy It seems we can simplify the code in `applyVersion()` or am I missing something? Link to the related docs page: https://symfony.com/doc/current/frontend/custom_version_strategy.html Commits ------- 8633bf1 Simplify example of GulpBusterVersionStrategy
2 parents fefa25a + 8633bf1 commit 19f2aa2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

frontend/custom_version_strategy.rst

+1-7
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,7 @@ version string::
9494
return $path;
9595
}
9696

97-
$versionized = sprintf($this->format, ltrim($path, '/'), $version);
98-
99-
if ($path && '/' === $path[0]) {
100-
return '/'.$versionized;
101-
}
102-
103-
return $versionized;
97+
return sprintf($this->format, $path, $version);
10498
}
10599

106100
private function loadManifest()

0 commit comments

Comments
 (0)