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

Passed
Pull Request — master (#752)
by Bart
09:13
created
src/Config/EnumTypeDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
                 ->arrayNode('values')
22 22
                     ->useAttributeAsKey('name')
23 23
                     ->beforeNormalization()
24
-                        ->ifTrue(fn ($v) => is_array($v))
24
+                        ->ifTrue(fn($v) => is_array($v))
25 25
                         ->then(function ($v) {
26 26
                             foreach ($v as $name => &$options) {
27 27
                                 // short syntax NAME: VALUE
Please login to merge, or discard this patch.
src/Config/ObjectTypeDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     private function treatFieldsDefaultPublic(ArrayNodeDefinition $node): void
69 69
     {
70 70
         $node->validate()
71
-            ->ifTrue(fn ($v) => array_key_exists('fieldsDefaultPublic', $v) && null !== $v['fieldsDefaultPublic'])
71
+            ->ifTrue(fn($v) => array_key_exists('fieldsDefaultPublic', $v) && null !== $v['fieldsDefaultPublic'])
72 72
             ->then(function ($v) {
73 73
                 foreach ($v['fields'] as &$field) {
74 74
                     if (array_key_exists('public', $field) && null !== $field['public']) {
Please login to merge, or discard this patch.
src/Config/TypeWithOutputFieldsDefinition.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
         $prototype
23 23
             ->beforeNormalization()
24 24
                 // Allow field type short syntax (Field: Type => Field: {type: Type})
25
-                ->ifTrue(fn ($options) => is_string($options))
26
-                ->then(fn ($options) => ['type' => $options])
25
+                ->ifTrue(fn($options) => is_string($options))
26
+                ->then(fn($options) => ['type' => $options])
27 27
             ->end()
28 28
             ->validate()
29 29
                 // Remove empty entries
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
                     ->prototype('array')
57 57
                         // Allow arg type short syntax (Arg: Type => Arg: {type: Type})
58 58
                         ->beforeNormalization()
59
-                            ->ifTrue(fn ($options) => is_string($options))
60
-                            ->then(fn ($options) => ['type' => $options])
59
+                            ->ifTrue(fn($options) => is_string($options))
60
+                            ->then(fn($options) => ['type' => $options])
61 61
                         ->end()
62 62
                         ->children()
63 63
                             ->append($this->typeSection(true))
Please login to merge, or discard this patch.
src/Config/TypeDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $node
49 49
             ->isRequired()
50 50
             ->validate()
51
-                ->ifTrue(fn ($name) => !preg_match('/^[_a-z][_0-9a-z]*$/i', $name))
51
+                ->ifTrue(fn($name) => !preg_match('/^[_a-z][_0-9a-z]*$/i', $name))
52 52
                 ->thenInvalid('Invalid type name "%s". (see http://spec.graphql.org/June2018/#sec-Names)')
53 53
             ->end()
54 54
         ;
Please login to merge, or discard this patch.
src/Config/InputObjectTypeDefinition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
                     ->prototype('array')
23 23
                         // Allow field type short syntax (Field: Type => Field: {type: Type})
24 24
                         ->beforeNormalization()
25
-                            ->ifTrue(fn ($options) => is_string($options))
26
-                            ->then(fn ($options) => ['type' => $options])
25
+                            ->ifTrue(fn($options) => is_string($options))
26
+                            ->then(fn($options) => ['type' => $options])
27 27
                         ->end()
28 28
                         ->append($this->typeSection(true))
29 29
                         ->append($this->descriptionSection())
Please login to merge, or discard this patch.
src/Config/Processor/InheritanceProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         $parentTypes = array_intersect_key($configs, array_flip($parents));
104 104
 
105 105
         // Restore initial order
106
-        uksort($parentTypes, fn ($a, $b) => (int) (array_search($a, $parents, true) > array_search($b, $parents, true)));
106
+        uksort($parentTypes, fn($a, $b) => (int) (array_search($a, $parents, true) > array_search($b, $parents, true)));
107 107
 
108 108
         $mergedParentsConfig = self::mergeConfigs(...array_column($parentTypes, 'config'));
109 109
         $childType = $configs[$child];
Please login to merge, or discard this patch.
src/Generator/TypeBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,12 +208,12 @@
 block discarded – undo
208 208
         }
209 209
 
210 210
         if (!empty($interfaces)) {
211
-            $items = array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $interfaces);
211
+            $items = array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $interfaces);
212 212
             $configLoader->addItem('interfaces', ArrowFunction::new(Collection::numeric($items, true)));
213 213
         }
214 214
 
215 215
         if (!empty($types)) {
216
-            $items = array_map(fn ($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $types);
216
+            $items = array_map(fn($type) => "$this->globalVars->get('typeResolver')->resolve('$type')", $types);
217 217
             $configLoader->addItem('types', ArrowFunction::new(Collection::numeric($items, true)));
218 218
         }
219 219
 
Please login to merge, or discard this patch.
src/DependencyInjection/TypesConfiguration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         /** @var ArrayNodeDefinition $rootNode */
38 38
         $rootNode = $treeBuilder->getRootNode();
39 39
 
40
-        $configTypeKeys = array_map(fn ($type) => $this->normalizedConfigTypeKey($type), self::$types);
40
+        $configTypeKeys = array_map(fn($type) => $this->normalizedConfigTypeKey($type), self::$types);
41 41
 
42 42
         $this->addBeforeNormalization($rootNode);
43 43
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 ->end()
69 69
                 // config is renamed _{TYPE}_config
70 70
                 ->beforeNormalization()
71
-                    ->ifTrue(fn ($v) => isset($v['type']) && is_string($v['type']))
71
+                    ->ifTrue(fn($v) => isset($v['type']) && is_string($v['type']))
72 72
                     ->then(function ($v) {
73 73
                         $key = $this->normalizedConfigTypeKey($v['type']);
74 74
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                     ->scalarNode('class_name')
86 86
                         ->isRequired()
87 87
                         ->validate()
88
-                            ->ifTrue(fn ($name) => !preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name))
88
+                            ->ifTrue(fn($name) => !preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $name))
89 89
                             ->thenInvalid('A valid class name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.')
90 90
                         ->end()
91 91
                     ->end()
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                 ->end()
105 105
                 // _{TYPE}_config is renamed config
106 106
                 ->validate()
107
-                    ->ifTrue(fn ($v) => isset($v[$this->normalizedConfigTypeKey($v['type'])]))
107
+                    ->ifTrue(fn($v) => isset($v[$this->normalizedConfigTypeKey($v['type'])]))
108 108
                     ->then(function ($v) {
109 109
                         $key = $this->normalizedConfigTypeKey($v['type']);
110 110
                         $v['config'] = $v[$key];
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
         $node
125 125
             // process beforeNormalization (should be execute after relay normalization)
126 126
             ->beforeNormalization()
127
-                ->ifTrue(fn ($types) => is_array($types))
128
-                ->then(fn ($types) => Config\Processor::process($types, Config\Processor::BEFORE_NORMALIZATION))
127
+                ->ifTrue(fn($types) => is_array($types))
128
+                ->then(fn($types) => Config\Processor::process($types, Config\Processor::BEFORE_NORMALIZATION))
129 129
             ->end()
130 130
             ;
131 131
     }
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -209,8 +209,8 @@  discard block
 block discarded – undo
209 209
         // @phpstan-ignore-next-line
210 210
         $node
211 211
             ->beforeNormalization()
212
-                ->ifTrue(fn ($v) => isset($v['query']) && is_string($v['query']) || isset($v['mutation']) && is_string($v['mutation']))
213
-                ->then(fn ($v) => ['default' => $v])
212
+                ->ifTrue(fn($v) => isset($v['query']) && is_string($v['query']) || isset($v['mutation']) && is_string($v['mutation']))
213
+                ->then(fn($v) => ['default' => $v])
214 214
             ->end()
215 215
             ->useAttributeAsKey('name')
216 216
             ->prototype('array')
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
         $node = $builder->getRootNode();
318 318
 
319 319
         $node->beforeNormalization()
320
-            ->ifTrue(fn ($v) => is_array($v) && !empty($v))
320
+            ->ifTrue(fn($v) => is_array($v) && !empty($v))
321 321
             ->then(function ($v) {
322 322
                 foreach ($v as $key => &$config) {
323 323
                     if (is_string($config)) {
@@ -355,19 +355,19 @@  discard block
 block discarded – undo
355 355
         $node = $builder->getRootNode();
356 356
 
357 357
         $node->beforeNormalization()
358
-                ->ifTrue(fn ($v) => is_string($v) && is_numeric($v))
359
-                ->then(fn ($v) => (int) $v)
358
+                ->ifTrue(fn($v) => is_string($v) && is_numeric($v))
359
+                ->then(fn($v) => (int) $v)
360 360
             ->end();
361 361
 
362 362
         $node
363 363
             ->info('Disabled if equal to false.')
364 364
             ->beforeNormalization()
365
-                ->ifTrue(fn ($v) => false === $v)
366
-                ->then(fn () => $disabledValue)
365
+                ->ifTrue(fn($v) => false === $v)
366
+                ->then(fn() => $disabledValue)
367 367
             ->end()
368 368
             ->defaultValue($disabledValue)
369 369
             ->validate()
370
-                ->ifTrue(fn ($v) => is_int($v) && $v < 0)
370
+                ->ifTrue(fn($v) => is_int($v) && $v < 0)
371 371
                 ->thenInvalid(sprintf('"%s.security.%s" must be greater or equal to 0.', self::NAME, $name))
372 372
             ->end()
373 373
         ;
Please login to merge, or discard this patch.