fix phpsniffer complaints
This commit is contained in:
parent
28302f050d
commit
6311236b11
|
@ -77,10 +77,10 @@ class PropertyModifierDictionaryToRow extends PropertyModifierHook
|
|||
);
|
||||
}
|
||||
$result = [];
|
||||
foreach ($value as $key => $properties) {
|
||||
if (is_array($properties)) {
|
||||
$properties = (object) $properties;
|
||||
}
|
||||
foreach ($value as $key => $properties) {
|
||||
if (is_array($properties)) {
|
||||
$properties = (object) $properties;
|
||||
}
|
||||
if (! is_object($properties)) {
|
||||
throw new InvalidDataException(
|
||||
sprintf('Nested "%s" dictionary', $key),
|
||||
|
@ -90,7 +90,7 @@ class PropertyModifierDictionaryToRow extends PropertyModifierHook
|
|||
|
||||
$properties->$keyColumn = $key;
|
||||
$result[] = $properties;
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue