Passed
Pull Request — master (#2942)
by
unknown
06:01
created
app/Services/HomePageService.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/Report/ReportBaseElement.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
             "\n",
88 88
             ' ',
89 89
         ], $t);
90
-        $t          = strip_tags($t);
90
+        $t = strip_tags($t);
91 91
         $this->text .= $t;
92 92
     }
93 93
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/UpgradeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -383,7 +383,7 @@
 block discarded – undo
383 383
         $this->upgrade_service->cleanFiles($root_filesystem, $folders_to_clean, $files_to_keep);
384 384
 
385 385
         $url    = route(ControlPanel::class);
386
-        $alert  =  I18N::translate('The upgrade is complete.');
386
+        $alert  = I18N::translate('The upgrade is complete.');
387 387
         $button = '<a href="' . e($url) . '" class="btn btn-primary">' . I18N::translate('continue') . '</a>';
388 388
 
389 389
         return response(view('components/alert-success', [
Please login to merge, or discard this patch.
app/Module/BatchUpdate/BatchUpdatePrimaryMediaPlugin.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
  */
33 33
 class BatchUpdatePrimaryMediaPlugin extends BatchUpdateBasePlugin
34 34
 {
35
-     /** @var array Array of xref of media objects marked as primary */
36
-     private $primary_media;
35
+        /** @var array Array of xref of media objects marked as primary */
36
+        private $primary_media;
37 37
 
38 38
     /**
39 39
      * User-friendly name for this plugin.
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 $key = array_search ($primary_media, $matches[0]);
88 88
                 $update = ($key >= count($rows)) ? true : false;
89 89
             }
90
-             // Store the found items as Gedcom row in a class array to retrieve them later in the process
90
+                // Store the found items as Gedcom row in a class array to retrieve them later in the process
91 91
             $this->primary_media[$record->xref()][]  = $primary_media;
92 92
 
93 93
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
         foreach ($rows as $row) {
85 85
             $primary_media = '1 OBJE @' . $row . '@';
86 86
             if (in_array($primary_media, $matches[0])) {
87
-                $key = array_search ($primary_media, $matches[0]);
87
+                $key = array_search($primary_media, $matches[0]);
88 88
                 $update = ($key >= count($rows)) ? true : false;
89 89
             }
90 90
              // Store the found items as Gedcom row in a class array to retrieve them later in the process
91
-            $this->primary_media[$record->xref()][]  = $primary_media;
91
+            $this->primary_media[$record->xref()][] = $primary_media;
92 92
 
93 93
         }
94 94
         return $record instanceof Individual && count($rows) > 0 && count($matches[0]) > 1 && $update;
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
         $dummy_facts = ['0 @' . $individual->xref() . '@ INDI'];
116 116
         $primary_facts = [];
117
-        $other_facts  = [];
117
+        $other_facts = [];
118 118
 
119 119
         // Put the primary object in a separate array so we can inject it before the other facts.
120 120
         foreach ($individual->facts() as $fact) {
Please login to merge, or discard this patch.