fix phpsniffer complaints

This commit is contained in:
Bjoern Berg 2024-11-25 16:53:29 +01:00
parent 28302f050d
commit 6311236b11
1 changed files with 5 additions and 5 deletions

View File

@ -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;
}