Passed
Pull Request — master (#2414)
by Rico
06:57
created
app/Http/Controllers/Admin/MediaController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
                     $create_form = '';
336 336
                     foreach ($media_trees as $media_tree => $media_directory) {
337 337
                         if (Str::startsWith($media_folder . $unused_file, $media_directory)) {
338
-                            $tmp         = substr($media_folder . $unused_file, strlen($media_directory));
338
+                            $tmp = substr($media_folder . $unused_file, strlen($media_directory));
339 339
                             $create_form .=
340 340
                                 '<p><a href="#" data-toggle="modal" data-target="#modal-create-media-from-file" data-file="' . e($tmp) . '" data-tree="' . e($media_tree) . '" onclick="document.getElementById(\'file\').value=this.dataset.file; document.getElementById(\'ged\').value=this.dataset.tree;">' . I18N::translate('Create') . '</a> — ' . e($media_tree) . '<p>';
341 341
                         }
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
 
462 462
             try {
463 463
                 $imgsize = getimagesize($full_path);
464
-                $html    .= '<dt>' . I18N::translate('Image dimensions') . '</dt>';
464
+                $html .= '<dt>' . I18N::translate('Image dimensions') . '</dt>';
465 465
                 /* I18N: image dimensions, width × height */
466 466
                 $html .= '<dd>' . I18N::translate('%1$s × %2$s pixels', I18N::number($imgsize['0']), I18N::number($imgsize['1'])) . '</dd>';
467 467
             } catch (Throwable $ex) {
Please login to merge, or discard this patch.
app/Module/ListsMenuModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     public function getMenu(Tree $tree): ?Menu
88 88
     {
89 89
         $submenus = $this->module_service->findByComponent(ModuleListInterface::class, $tree, Auth::user())
90
-            ->map(static function (ModuleListInterface $module) use ($tree): ?Menu {
90
+            ->map(static function (ModuleListInterface $module) use ($tree) : ?Menu {
91 91
                 return $module->listMenu($tree);
92 92
             })
93 93
             ->filter()
Please login to merge, or discard this patch.
app/Http/Controllers/ListController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
                     'ged'      => $tree->name(),
170 170
                     'show_all' => 'yes',
171 171
                 ];
172
-                $show    = $request->getQueryParams()['show'] ?? 'surn';
172
+                $show = $request->getQueryParams()['show'] ?? 'surn';
173 173
             }
174 174
         } elseif ($surname) {
175 175
             $alpha    = $this->localization_service->initialLetter($surname); // so we can highlight the initial letter
Please login to merge, or discard this patch.
app/Services/ModuleService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -721,7 +721,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Http/Controllers/HomePageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -907,7 +907,7 @@
 block discarded – undo
907 907
     private function filterActiveBlocks(Collection $blocks, Collection $active_blocks): Collection
908 908
     {
909 909
         return $blocks->map(static function (string $block_name) use ($active_blocks): ?ModuleBlockInterface {
910
-            return $active_blocks->filter(static function (ModuleInterface $block) use ($block_name): bool {
910
+            return $active_blocks->filter(static function (ModuleInterface $block) use ($block_name) : bool {
911 911
                 return $block->name() === $block_name;
912 912
             })->first();
913 913
         })->filter();
Please login to merge, or discard this patch.
app/Log.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         } else {
63 63
             $ip_address = '127.0.0.1';
64 64
         }
65
-        $tree_id    = $tree ? $tree->id() : null;
65
+        $tree_id = $tree ? $tree->id() : null;
66 66
 
67 67
         DB::table('log')->insert([
68 68
             'log_type'    => $log_type,
Please login to merge, or discard this patch.
app/Module/ChartsBlockModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                         'generations' => 3,
112 112
                         'layout'      => PedigreeChartModule::ORIENTATION_RIGHT,
113 113
                     ]);
114
-                    $content   = view('modules/charts/chart', [
114
+                    $content = view('modules/charts/chart', [
115 115
                         'block_id'  => $block_id,
116 116
                         'chart_url' => $chart_url,
117 117
                         'class'     => 'wt-chart-pedigree',
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                         'generations' => 2,
128 128
                         'chart_style' => DescendancyChartModule::CHART_STYLE_TREE,
129 129
                     ]);
130
-                    $content   = view('modules/charts/chart', [
130
+                    $content = view('modules/charts/chart', [
131 131
                         'block_id'  => $block_id,
132 132
                         'chart_url' => $chart_url,
133 133
                         'class'     => 'wt-chart-descendants',
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                         'ajax'        => true,
143 143
                         'generations' => 2,
144 144
                     ]);
145
-                    $content   = view('modules/charts/chart', [
145
+                    $content = view('modules/charts/chart', [
146 146
                         'block_id'  => $block_id,
147 147
                         'chart_url' => $chart_url,
148 148
                         'class'     => 'wt-chart-hourglass',
Please login to merge, or discard this patch.
app/Statistics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2618,7 +2618,7 @@
 block discarded – undo
2618 2618
         /** @var ModuleBlockInterface|null $module */
2619 2619
         $module = $this->module_service
2620 2620
             ->findByComponent(ModuleBlockInterface::class, $this->tree, Auth::user())
2621
-            ->first(static function (ModuleInterface $module) use ($block): bool {
2621
+            ->first(static function (ModuleInterface $module) use ($block) : bool {
2622 2622
                 return $module->name() === $block && $module->name() !== 'html';
2623 2623
             });
2624 2624
 
Please login to merge, or discard this patch.