Passed
Pull Request — master (#2942)
by
unknown
06:01
created
app/Module/BatchUpdate/BatchUpdatePrimaryMediaPlugin.php 1 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.