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 (#695)
by Timur
08:37 queued 05:02
created
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/Configuration.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
         // @phpstan-ignore-next-line
211 211
         $node
212 212
             ->beforeNormalization()
213
-                ->ifTrue(fn ($v) => isset($v['query']) && is_string($v['query']) || isset($v['mutation']) && is_string($v['mutation']))
214
-                ->then(fn ($v) => ['default' => $v])
213
+                ->ifTrue(fn($v) => isset($v['query']) && is_string($v['query']) || isset($v['mutation']) && is_string($v['mutation']))
214
+                ->then(fn($v) => ['default' => $v])
215 215
             ->end()
216 216
             ->useAttributeAsKey('name')
217 217
             ->prototype('array')
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
         $node = self::getRootNodeWithoutDeprecation($builder, $name);
319 319
 
320 320
         $node->beforeNormalization()
321
-            ->ifTrue(fn ($v) => is_array($v) && !empty($v))
321
+            ->ifTrue(fn($v) => is_array($v) && !empty($v))
322 322
             ->then(function ($v) {
323 323
                 foreach ($v as $key => &$config) {
324 324
                     if (is_string($config)) {
@@ -356,19 +356,19 @@  discard block
 block discarded – undo
356 356
         $node = self::getRootNodeWithoutDeprecation($builder, $name, 'scalar');
357 357
 
358 358
         $node->beforeNormalization()
359
-                ->ifTrue(fn ($v) => is_string($v) && is_numeric($v))
360
-                ->then(fn ($v) => (int) $v)
359
+                ->ifTrue(fn($v) => is_string($v) && is_numeric($v))
360
+                ->then(fn($v) => (int) $v)
361 361
             ->end();
362 362
 
363 363
         $node
364 364
             ->info('Disabled if equal to false.')
365 365
             ->beforeNormalization()
366
-                ->ifTrue(fn ($v) => false === $v)
367
-                ->then(fn () => $disabledValue)
366
+                ->ifTrue(fn($v) => false === $v)
367
+                ->then(fn() => $disabledValue)
368 368
             ->end()
369 369
             ->defaultValue($disabledValue)
370 370
             ->validate()
371
-                ->ifTrue(fn ($v) => is_int($v) && $v < 0)
371
+                ->ifTrue(fn($v) => is_int($v) && $v < 0)
372 372
                 ->thenInvalid(sprintf('"%s.security.%s" must be greater or equal to 0.', self::NAME, $name))
373 373
             ->end()
374 374
         ;
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 = Configuration::getRootNodeWithoutDeprecation($treeBuilder, 'overblog_graphql_types');
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.