Skip to content

Commit

Permalink
ImageStorage: Fix coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Barášek committed May 6, 2021
1 parent e393d03 commit c192107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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

0 comments on commit c192107

Please sign in to comment.