Passed
Push — scrutinizer-patch-1 ( f3a106 )
by
unknown
08:43
created
app/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      */
82 82
     public static function userFromTree(Tree $tree): User
83 83
     {
84
-        return  new static(0, '', $tree->title(),$tree->getPreference('WEBTREES_EMAIL'));
84
+        return  new static(0, '', $tree->title(), $tree->getPreference('WEBTREES_EMAIL'));
85 85
     }
86 86
 
87 87
     /**
Please login to merge, or discard this patch.
app/GedcomRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -478,7 +478,7 @@
 block discarded – undo
478 478
             return true;
479 479
         }
480 480
 
481
-        $cache_key =  'canShow' . $this->xref . ':' . $this->tree->id() . ':' . $access_level;
481
+        $cache_key = 'canShow' . $this->xref . ':' . $this->tree->id() . ':' . $access_level;
482 482
 
483 483
         return app('cache.array')->rememberForever($cache_key, function () use ($access_level) {
484 484
             return $this->canShowRecord($access_level);
Please login to merge, or discard this patch.
app/Module/FamilyBookChartModule.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         return new Menu(
63 63
             $this->title(),
64 64
             route('family-book', ['ged'  => $individual->tree()->name(),
65
-                                  'xref' => $individual->xref(),
65
+                                    'xref' => $individual->xref(),
66 66
             ]),
67 67
             'menu-chart-familybook',
68 68
             ['rel' => 'nofollow']
Please login to merge, or discard this patch.
app/Module/DescendancyChartModule.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         return new Menu(
63 63
             $this->title(),
64 64
             route('descendants', ['ged'  => $individual->tree()->name(),
65
-                                  'xref' => $individual->xref(),
65
+                                    'xref' => $individual->xref(),
66 66
             ]),
67 67
             'menu-chart-descendants',
68 68
             ['rel' => 'nofollow']
Please login to merge, or discard this patch.
app/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
     public static function getModuleByName(string $module_name): ?ModuleInterface
380 380
     {
381 381
         return self::all()
382
-            ->filter(function (ModuleInterface $module) use ($module_name): bool {
382
+            ->filter(function (ModuleInterface $module) use ($module_name) : bool {
383 383
                 return $module->isEnabled() && $module->getName() === $module_name;
384 384
             })
385 385
             ->first();
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
     public static function getModuleByClassName(string $class_name): ?ModuleInterface
396 396
     {
397 397
         return self::all()
398
-            ->filter(function (ModuleInterface $module) use ($class_name): bool {
398
+            ->filter(function (ModuleInterface $module) use ($class_name) : bool {
399 399
                 return $module->isEnabled() && $module instanceof $class_name;
400 400
             })
401 401
             ->first();
Please login to merge, or discard this patch.
app/Http/Controllers/PedigreeChartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
         // $ancestors starts array at index 1 we need to start at 0
156 156
         for ($i = 0; $i < $this->treesize; ++$i) {
157 157
             $this->nodes[$i] = [
158
-                'indi' => $ancestors->get($i+1),
158
+                'indi' => $ancestors->get($i + 1),
159 159
                 'x' => 0,
160 160
                 'y' => 0,
161 161
             ];
Please login to merge, or discard this patch.
app/Http/Controllers/AncestorsChartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
     {
252 252
         $this->layout = 'layouts/ajax';
253 253
 
254
-        $families  = [];
254
+        $families = [];
255 255
         foreach ($ancestors as $individual) {
256 256
             foreach ($individual->getChildFamilies() as $family) {
257 257
                 $families[$family->xref()] = $family;
Please login to merge, or discard this patch.