Passed
Pull Request — master (#2658)
by
unknown
06:44
created
app/Http/Middleware/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             $url_route = $params['route'] ?? '/';
72 72
             $uri       = $uri->withPath($url_route);
73 73
             unset($params['route']);
74
-            $uri     = $uri->withQuery(http_build_query($params, '', '&', PHP_QUERY_RFC3986));
74
+            $uri = $uri->withQuery(http_build_query($params, '', '&', PHP_QUERY_RFC3986));
75 75
             $temp_request = $request->withUri($uri)->withQueryParams($params);
76 76
         } else {
77 77
             $temp_request = $request;
Please login to merge, or discard this patch.
app/Services/TreeService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
      */
125 125
     public function findByName($name): ?Tree
126 126
     {
127
-        return $this->all()->first(static function (Tree $tree) use ($name): bool {
127
+        return $this->all()->first(static function (Tree $tree) use ($name) : bool {
128 128
             return $tree->name() === $name;
129 129
         });
130 130
     }
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
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
                     'tree'      => $tree->name(),
167 167
                     'show_all' => 'yes',
168 168
                 ];
169
-                $show    = $request->getQueryParams()['show'] ?? 'surn';
169
+                $show = $request->getQueryParams()['show'] ?? 'surn';
170 170
             }
171 171
         } elseif ($surname) {
172 172
             $alpha    = $this->localization_service->initialLetter($surname); // so we can highlight the initial letter
Please login to merge, or discard this patch.
app/Http/RequestHandlers/RedirectMediaViewerPhp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function handle(ServerRequestInterface $request): ResponseInterface
43 43
     {
44
-        $tree   = $request->getQueryParams()['ged'];
44
+        $tree = $request->getQueryParams()['ged'];
45 45
         assert(is_string($tree), new InvalidArgumentException());
46 46
 
47 47
         $xref  = $request->getQueryParams()['mid'];
Please login to merge, or discard this patch.
app/Report/ReportParserGenerate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -828,7 +828,7 @@
 block discarded – undo
828 828
         // Until this can be re-designed, we need this assertion to help static analysis tools.
829 829
         assert($this->current_element instanceof ReportBaseElement, new LogicException());
830 830
 
831
-        $this->wt_report       = array_pop($this->wt_report_stack);
831
+        $this->wt_report = array_pop($this->wt_report_stack);
832 832
         $this->wt_report->addElement($this->current_element);
833 833
     }
834 834
 
Please login to merge, or discard this patch.
app/Module/ModuleThemeTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@
 block discarded – undo
301 301
         if ($request->getAttribute('route') === 'tree-page') {
302 302
             $tree = $request->getAttribute('tree');
303 303
             assert($tree instanceof Tree, new InvalidArgumentException());
304
-            $redirect  = route('user-page', ['tree' => $tree->name()]);
304
+            $redirect = route('user-page', ['tree' => $tree->name()]);
305 305
         }
306 306
 
307 307
         // Stay on the same tree page
Please login to merge, or discard this patch.