Skip to content

Commit 3bc8caa

Browse files
committed
Renamed $stamp to $timestamp for consistency.
1 parent ba47e93 commit 3bc8caa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/View/Helper/UrlHelper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,15 @@ protected function _encodeUrl($url)
218218
* a timestamp will be added.
219219
*
220220
* @param string $path The file path to timestamp, the path must be inside WWW_ROOT
221-
* @param bool|string $stamp If set will overrule the value of `Asset.timestamp` in Configure.
221+
* @param bool|string $timestamp If set will overrule the value of `Asset.timestamp` in Configure.
222222
* @return string Path with a timestamp added, or not.
223223
*/
224-
public function assetTimestamp($path, $stamp = null)
224+
public function assetTimestamp($path, $timestamp = null)
225225
{
226-
if (is_null($stamp)) {
227-
$stamp = Configure::read('Asset.timestamp');
226+
if (is_null($timestamp)) {
227+
$timestamp = Configure::read('Asset.timestamp');
228228
}
229-
$timestampEnabled = $stamp === 'force' || ($stamp === true && Configure::read('debug'));
229+
$timestampEnabled = $timestamp === 'force' || ($timestamp === true && Configure::read('debug'));
230230
if ($timestampEnabled && strpos($path, '?') === false) {
231231
$filepath = preg_replace(
232232
'/^' . preg_quote($this->request->getAttribute('webroot'), '/') . '/',

0 commit comments

Comments
 (0)