Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#750)
by Timur
22:37
created
src/Hydrator/Hydrator.php 5 patches
Indentation   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
             if ($this->propertyAccessor->isWritable($model, $targetField)) {
130 130
 
131 131
                 $resultValue = $this->resolveConverter(
132
-                   $modelName,
133
-                   $targetField,
134
-                   $fieldValue,
135
-                   $modelReflection,
136
-                   $fieldObject
137
-               );
132
+                    $modelName,
133
+                    $targetField,
134
+                    $fieldValue,
135
+                    $modelReflection,
136
+                    $fieldObject
137
+                );
138 138
 
139 139
                 $this->propertyAccessor->setValue(
140 140
                     $model,
@@ -398,6 +398,4 @@  discard block
 block discarded – undo
398 398
             }
399 399
         }
400 400
 
401
-        return $mapping;
402
-    }
403
-}
401
+        return $mapping
404 402
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -398,6 +398,4 @@
 block discarded – undo
398 398
             }
399 399
         }
400 400
 
401
-        return $mapping;
402
-    }
403
-}
401
+        return $mapping
404 402
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -246,8 +246,7 @@  discard block
 block discarded – undo
246 246
     {
247 247
         static $cache = [];
248 248
 
249
-        return $cache[$className][$annotationName] ??=
250
-            $this->annotationReader->getClassAnnotation(new ReflectionClass($className), $annotationName);
249
+        return $cache[$className][$annotationName] ??= $this->annotationReader->getClassAnnotation(new ReflectionClass($className), $annotationName);
251 250
     }
252 251
 
253 252
     /**
@@ -299,7 +298,7 @@  discard block
 block discarded – undo
299 298
         // If a path is provided, search the value from top argument down
300 299
         if (count($path) > 1) {
301 300
             $temp = &$this->args;
302
-            foreach($path as $key) {
301
+            foreach ($path as $key) {
303 302
                 $temp = &$temp[$key];
304 303
             }
305 304
             return $temp;
@@ -394,10 +393,8 @@  discard block
 block discarded – undo
394 393
             $annotation = $reader->getPropertyAnnotation($property, Field::class);
395 394
 
396 395
             if (isset($annotation->name)) {
397
-                $mapping[$annotation->name] = $property->name;
396
+                $mapping[$annotation - >name] = $property->name;
398 397
             }
399 398
         }
400 399
 
401
-        return $mapping;
402
-    }
403
-}
400
+        return $mapping
404 401
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -398,6 +398,4 @@
 block discarded – undo
398 398
             }
399 399
         }
400 400
 
401
-        return $mapping;
402
-    }
403
-}
401
+        return $mapping
404 402
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -398,6 +398,4 @@
 block discarded – undo
398 398
             }
399 399
         }
400 400
 
401
-        return $mapping;
402
-    }
403
-}
401
+        return $mapping
404 402
\ No newline at end of file
Please login to merge, or discard this patch.
src/DependencyInjection/TypesConfiguration.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         /** @var ArrayNodeDefinition $rootNode */
39 39
         $rootNode = $treeBuilder->getRootNode();
40 40
 
41
-        $configTypeKeys = array_map(fn ($type) => $this->normalizedConfigTypeKey($type), self::$types);
41
+        $configTypeKeys = array_map(fn($type) => $this->normalizedConfigTypeKey($type), self::$types);
42 42
 
43 43
         $this->addBeforeNormalization($rootNode);
44 44
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                 ->end()
70 70
                 # temporarily rename 'config' into '_{TYPE}_config'
71 71
                 ->beforeNormalization()
72
-                    ->ifTrue(fn ($v) => isset($v['type']) && is_string($v['type']))
72
+                    ->ifTrue(fn($v) => isset($v['type']) && is_string($v['type']))
73 73
                     ->then(function ($v) {
74 74
                         $key = $this->normalizedConfigTypeKey($v['type']);
75 75
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 # temporarily convert '{MODEL}' into '{TYPE}_{MODEL}'
85 85
                 ->beforeNormalization()
86 86
                     ->ifTrue(fn($v) => isset($v['model']) && is_string($v['model']))
87
-                    ->then(function($v) {
87
+                    ->then(function ($v) {
88 88
                         $v['model'] = "{$v['type']}_{$v['model']}";
89 89
                         return $v;
90 90
                     })
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                     ->scalarNode('class_name')
95 95
                         ->isRequired()
96 96
                         ->validate()
97
-                            ->ifTrue(fn ($name) => !preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name))
97
+                            ->ifTrue(fn($name) => !preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name))
98 98
                             ->thenInvalid('A valid class name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.')
99 99
                         ->end()
100 100
                     ->end()
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                 ->end()
115 115
                 // rename '_{TYPE}_config' back into 'config'
116 116
                 ->validate()
117
-                    ->ifTrue(fn ($v) => isset($v[$this->normalizedConfigTypeKey($v['type'])]))
117
+                    ->ifTrue(fn($v) => isset($v[$this->normalizedConfigTypeKey($v['type'])]))
118 118
                     ->then(function ($v) {
119 119
                         $key = $this->normalizedConfigTypeKey($v['type']);
120 120
                         $v['config'] = $v[$key];
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
         $node
154 154
             // process beforeNormalization (should be execute after relay normalization)
155 155
             ->beforeNormalization()
156
-                ->ifTrue(fn ($types) => is_array($types))
157
-                ->then(fn ($types) => Config\Processor::process($types, Config\Processor::BEFORE_NORMALIZATION))
156
+                ->ifTrue(fn($types) => is_array($types))
157
+                ->then(fn($types) => Config\Processor::process($types, Config\Processor::BEFORE_NORMALIZATION))
158 158
             ->end()
159 159
             ;
160 160
     }
Please login to merge, or discard this patch.