From 08478828e73efe8df0adf417cf8460a99caf3aa6 Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Thu, 13 Aug 2020 08:41:10 +0000 Subject: [PATCH] Apply fixes from StyleCI --- Classes/Core/RuntimeConfiguration.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Classes/Core/RuntimeConfiguration.php b/Classes/Core/RuntimeConfiguration.php index 28ab4ff9..c3e01550 100644 --- a/Classes/Core/RuntimeConfiguration.php +++ b/Classes/Core/RuntimeConfiguration.php @@ -134,8 +134,12 @@ private function matchCurrentPathPart(string $pathPart, array $previousConfigura } if (isset($configuration['__prototypes'])) { - $currentPrototypeDefinitions = Arrays::arrayMergeRecursiveOverruleWithCallback($currentPrototypeDefinitions, - $configuration['__prototypes'], $this->simpleTypeToArrayClosure, $this->shouldOverrideFirstClosure); + $currentPrototypeDefinitions = Arrays::arrayMergeRecursiveOverruleWithCallback( + $currentPrototypeDefinitions, + $configuration['__prototypes'], + $this->simpleTypeToArrayClosure, + $this->shouldOverrideFirstClosure + ); } $currentPathSegmentType = null; @@ -148,8 +152,10 @@ private function matchCurrentPathPart(string $pathPart, array $previousConfigura if ($currentPathSegmentType !== null) { $configuration['__objectType'] = $currentPathSegmentType; - $configuration = $this->mergePrototypesWithConfigurationForPathSegment($configuration, - $currentPrototypeDefinitions); + $configuration = $this->mergePrototypesWithConfigurationForPathSegment( + $configuration, + $currentPrototypeDefinitions + ); } if (is_array($configuration) && !isset($configuration['__value']) && !isset($configuration['__eelExpression']) && !isset($configuration['__meta']['class']) && !isset($configuration['__objectType']) && isset($configuration['__meta']['process'])) { @@ -186,7 +192,9 @@ private function mergePrototypesWithConfigurationForPathSegment(array $configura if (!array_key_exists($prototypeName, $currentPrototypeDefinitions)) { throw new Exception(sprintf( 'The Fusion object `%s` which you tried to inherit from does not exist. Maybe you have a typo on the right hand side of your inheritance statement for `%s`.', - $prototypeName, $currentPathSegmentType), 1427134340); + $prototypeName, + $currentPathSegmentType + ), 1427134340); } $currentPrototypeWithInheritanceTakenIntoAccount = Arrays::arrayMergeRecursiveOverruleWithCallback(