Skip to content

Commit

Permalink
ImageStorage: Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Nov 4, 2020
1 parent e3c7a88 commit adbba34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ImageStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getRelativeInternalUrl(string $url): string
{
$originalFileName = (string) preg_replace_callback(
'/^.*\/([^\/]+)\.([^.]+)$/',
fn(array $match): string => substr(Strings::webalize($match[1]), 0, 64) . '.' . strtolower($match[2]),
fn (array $match): string => substr(Strings::webalize($match[1]), 0, 64) . '.' . strtolower($match[2]),
$url
);
$relativeName = substr(md5($url), 0, 7) . '-' . $originalFileName;
Expand Down Expand Up @@ -93,6 +93,6 @@ private function getBaseUrl(): string
throw new \RuntimeException('Can not parse relative URL from "' . $currentUrl . '".');
}

return ($return = rtrim($return, '/'));
return $return = rtrim($return, '/');
}
}

0 comments on commit adbba34

Please sign in to comment.