@@ -721,7 +721,7 @@ |
||
| 721 | 721 | public function findByName(string $module_name, bool $include_disabled = false): ?ModuleInterface |
| 722 | 722 | { |
| 723 | 723 | return $this->all($include_disabled) |
| 724 | - ->first(static function (ModuleInterface $module) use ($module_name): bool { |
|
| 724 | + ->first(static function (ModuleInterface $module) use ($module_name) : bool { |
|
| 725 | 725 | return $module->name() === $module_name; |
| 726 | 726 | }); |
| 727 | 727 | } |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | $chart_color1 = (string) $this->theme->parameter('distribution-chart-no-values'); |
| 102 | 102 | $chart_color2 = (string) $this->theme->parameter('distribution-chart-high-values'); |
| 103 | 103 | $color_from = $color_from ?? $chart_color1; |
| 104 | - $color_to = $color_to ?? $chart_color2; |
|
| 104 | + $color_to = $color_to ?? $chart_color2; |
|
| 105 | 105 | |
| 106 | 106 | $data = [ |
| 107 | 107 | [ |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | // The original filename was generated from the thumbnail filename. |
| 195 | 195 | // It may not actually exist. |
| 196 | 196 | try { |
| 197 | - $file_exists = $data_filesystem->fileExists($original); |
|
| 197 | + $file_exists = $data_filesystem->fileExists($original); |
|
| 198 | 198 | } catch (FilesystemException | UnableToRetrieveMetadata $ex) { |
| 199 | 199 | $file_exists = false; |
| 200 | 200 | } |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | $create_form = ''; |
| 234 | 234 | foreach ($media_trees as $media_tree => $media_directory) { |
| 235 | 235 | if (str_starts_with($row[0], $media_directory)) { |
| 236 | - $tmp = substr($row[0], strlen($media_directory)); |
|
| 236 | + $tmp = substr($row[0], strlen($media_directory)); |
|
| 237 | 237 | $create_form .= |
| 238 | 238 | '<p><a href="#" data-toggle="modal" data-backdrop="static" data-target="#modal-create-media-from-file" data-file="' . e($tmp) . '" data-url="' . e(route(CreateMediaObjectFromFile::class, ['tree' => $media_tree])) . '" onclick="document.getElementById(\'modal-create-media-from-file-form\').action=this.dataset.url; document.getElementById(\'file\').value=this.dataset.file;">' . I18N::translate('Create') . '</a> — ' . e($media_tree) . '<p>'; |
| 239 | 239 | } |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | // This will work for local filesystems. For remote filesystems, we will |
| 339 | 339 | // need to copy the file locally to work out the image size. |
| 340 | 340 | $imgsize = getimagesizefromstring($data_filesystem->read($file)); |
| 341 | - $html .= '<dt>' . I18N::translate('Image dimensions') . '</dt>'; |
|
| 341 | + $html .= '<dt>' . I18N::translate('Image dimensions') . '</dt>'; |
|
| 342 | 342 | /* I18N: image dimensions, width × height */ |
| 343 | 343 | $html .= '<dd>' . I18N::translate('%1$s × %2$s pixels', I18N::number($imgsize['0']), I18N::number($imgsize['1'])) . '</dd>'; |
| 344 | 344 | } catch (FilesystemException | UnableToReadFile | Throwable $ex) { |