From 91bdb10a1013660c71ab5b2d377581c7eaeeeb52 Mon Sep 17 00:00:00 2001 From: John Flatness Date: Fri, 25 Sep 2020 16:10:19 -0400 Subject: [PATCH] Auto-fix code style issues --- src/Job/Import.php | 4 ++-- src/Mvc/Controller/Plugin/AutomapHeadersToMetadata.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Job/Import.php b/src/Job/Import.php index 57b3035..4b80c7f 100644 --- a/src/Job/Import.php +++ b/src/Job/Import.php @@ -193,7 +193,7 @@ public function perform() $data = $this->mapRows($rows); $this->processBatchData($data); $offset += $this->rowsByBatch; - }; + } if ($this->emptyLines) { $this->logger->info(new Message('%d empty lines were skipped.', // @translate @@ -994,7 +994,7 @@ protected function deduplicatePropertyValues($values) // Normalize values. array_map(function ($v) use ($base) { return array_replace($base[$v['type']], array_intersect_key($v, $base[$v['type']])); - }, $value))))); + }, $value))))); } return $values; } diff --git a/src/Mvc/Controller/Plugin/AutomapHeadersToMetadata.php b/src/Mvc/Controller/Plugin/AutomapHeadersToMetadata.php index aba1486..f5aeae3 100644 --- a/src/Mvc/Controller/Plugin/AutomapHeadersToMetadata.php +++ b/src/Mvc/Controller/Plugin/AutomapHeadersToMetadata.php @@ -123,7 +123,7 @@ protected function normalizeAutomapsForForm(array $automaps, $resourceType) $value['value'] = $automap->id(); $value['label'] = $controller->translate($automap->label()); $value['class'] = 'property'; - $value['special'] = ' data-property-id="' . $automap->id(). '"'; + $value['special'] = ' data-property-id="' . $automap->id() . '"'; $value['multiple'] = true; $result[$index] = $value; } @@ -153,11 +153,11 @@ protected function listTerms() } foreach ($properties as $property) { $result['names'][$property->term()] = $property; - $name = $vocabulary->label() . ':' . $property->label(); + $name = $vocabulary->label() . ':' . $property->label(); if (isset($result['labels'][$name])) { - $result['labels'][$vocabulary->label() . ':' . $property->label() . ' (#' . $property->id() . ')'] = $property; + $result['labels'][$vocabulary->label() . ':' . $property->label() . ' (#' . $property->id() . ')'] = $property; } else { - $result['labels'][$vocabulary->label() . ':' . $property->label()] = $property; + $result['labels'][$vocabulary->label() . ':' . $property->label()] = $property; } } }