Passed
Push — master ( 331454...5534cc )
by Radovan
02:51
created
src/DI/Config/Adapters/EnvironmentAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		$arguments['name'] = $name;
76 76
 
77 77
 		$reflection = new ReflectionMethod(Environment::class, $type);
78
-		foreach($reflection->getParameters() as $parameter) {
78
+		foreach ($reflection->getParameters() as $parameter) {
79 79
 			$name = $parameter->getName();
80 80
 			if (!isset($arguments[$name])) {
81 81
 				if (!$parameter->isOptional()) {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	protected function getEntityType(Entity $entity): string
93 93
 	{
94 94
 		$type = substr((string)$entity->value, 2);
95
-		return match ($type) {
95
+		return match($type) {
96 96
 			Environment::INTEGER, Environment::INT, Environment::BOOLEAN, Environment::BOOL, Environment::FLOAT, 'array' => $type,
97 97
 			default => Environment::STRING
98 98
 		};
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 		$data = (array)($data['parameters']['env'] ?? []);
121 121
 		array_walk_recursive(
122 122
 			$data,
123
-			static function (mixed &$val): void {
123
+			static function(mixed &$val): void {
124 124
 				if ($val instanceof Statement && $entity = $val->getEntity()) {
125 125
 					$arguments = [
126 126
 						'hidden' => true,
Please login to merge, or discard this patch.