Skip to content

Commit

Permalink
Auto-fix code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Sep 25, 2020
1 parent 96d5df1 commit 91bdb10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Job/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Mvc/Controller/Plugin/AutomapHeadersToMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 91bdb10

Please sign in to comment.