Passed
Push — develop ( 2e487a...8c3417 )
by Greg
07:09 queued 01:11
created
app/Http/Controllers/Admin/MediaController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         $data_filesystem = $request->getAttribute('filesystem.data');
153 153
         assert($data_filesystem instanceof FilesystemInterface);
154 154
 
155
-        $files  = $request->getQueryParams()['files']; // local|external|unused
155
+        $files = $request->getQueryParams()['files']; // local|external|unused
156 156
 
157 157
         // Files within this folder
158 158
         $media_folder = $request->getQueryParams()['media_folder'];
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
                     $create_form = '';
267 267
                     foreach ($media_trees as $media_tree => $media_directory) {
268 268
                         if (str_starts_with($row[0], $media_directory)) {
269
-                            $tmp         = substr($row[0], strlen($media_directory));
269
+                            $tmp = substr($row[0], strlen($media_directory));
270 270
                             $create_form .=
271 271
                                 '<p><a href="#" data-toggle="modal" data-target="#modal-create-media-from-file" data-file="' . e($tmp) . '" data-url="' . e(route('create-media-from-file', ['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>';
272 272
                         }
@@ -360,8 +360,8 @@  discard block
 block discarded – undo
360 360
             try {
361 361
                 // This will work for local filesystems.  For remote filesystems, we will
362 362
                 // need to copy the file locally to work out the image size.
363
-                $imgsize = getimagesize(Webtrees::DATA_DIR .  $file);
364
-                $html    .= '<dt>' . I18N::translate('Image dimensions') . '</dt>';
363
+                $imgsize = getimagesize(Webtrees::DATA_DIR . $file);
364
+                $html .= '<dt>' . I18N::translate('Image dimensions') . '</dt>';
365 365
                 /* I18N: image dimensions, width × height */
366 366
                 $html .= '<dd>' . I18N::translate('%1$s × %2$s pixels', I18N::number($imgsize['0']), I18N::number($imgsize['1'])) . '</dd>';
367 367
             } catch (Throwable $ex) {
Please login to merge, or discard this patch.