Skip to content

Commit

Permalink
Avoid unneeded variable assignment.
Browse files Browse the repository at this point in the history
Improvdes code readbility.
  • Loading branch information
ADmad committed Apr 25, 2023
1 parent abc904d commit 7bf821e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,11 @@ public function getCachePath($path, array $params = [])
unset($params['s'], $params['p']);
ksort($params);

$md5 = md5($sourcePath.'?'.http_build_query($params));
$cachedPath = md5($sourcePath.'?'.http_build_query($params));

$cachedPath = $this->groupCacheInFolders ? $sourcePath.'/'.$md5 : $md5;
if ($this->groupCacheInFolders) {
$cachedPath = $sourcePath.'/'.$cachedPath;
}

if ($this->cachePathPrefix) {
$cachedPath = $this->cachePathPrefix.'/'.$cachedPath;
Expand Down

0 comments on commit 7bf821e

Please sign in to comment.