Skip to content

Commit efb23b7

Browse files
idimopoulossaidatom
authored andcommitted
Fix codesniffs.
1 parent 8a91bf4 commit efb23b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Drupal/Driver/Fields/Drupal8/EntityReferenceHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ public function expand($values) {
3333
$target_bundle_key = $entity_definition->getKey('bundle');
3434
}
3535

36-
3736
// The values can either be a direct label reference or a complex array
3837
// containing multiple properties of the field. For example, the file field
3938
// contains a target_id, a description and a display property. If the
4039
// target_id exists as a property, we assume that the other properties are
4140
// also present. Retrieve all labels and load the entities.
4241
$main_property = $this->fieldInfo->getMainPropertyName();
43-
$labels = array_map(function ($value) use ($main_property){
42+
$labels = array_map(function ($value) use ($main_property) {
4443
return is_array($value) && isset($value[$main_property]) ? $value[$main_property] : $value;
4544
}, $values);
4645

0 commit comments

Comments
 (0)