From 6311236b116d938ed9e9592bb154cee54ce20e7e Mon Sep 17 00:00:00 2001 From: Bjoern Berg Date: Mon, 25 Nov 2024 16:53:29 +0100 Subject: [PATCH] fix phpsniffer complaints --- .../PropertyModifierDictionaryToRow.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/Director/PropertyModifier/PropertyModifierDictionaryToRow.php b/library/Director/PropertyModifier/PropertyModifierDictionaryToRow.php index bcc432bf..f3bb6bd1 100644 --- a/library/Director/PropertyModifier/PropertyModifierDictionaryToRow.php +++ b/library/Director/PropertyModifier/PropertyModifierDictionaryToRow.php @@ -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; }