@@ -32,8 +32,8 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -84,11 +84,11 @@ discard block |
||
| 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 |
||
| 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) { |