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 — annotations (#404)
by Vincent
19:31
created
src/Error/ErrorHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      * @param GraphQLError[] $errors
96 96
      * @param bool           $throwRawException
97 97
      *
98
-     * @return array
98
+     * @return callable
99 99
      *
100 100
      * @throws \Error|\Exception
101 101
      */
Please login to merge, or discard this patch.
src/Definition/Type/CustomScalarType.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@
 block discarded – undo
42 42
         return $this->call('parseLiteral', $valueNode);
43 43
     }
44 44
 
45
+    /**
46
+     * @param string $type
47
+     */
45 48
     private function call($type, $value)
46 49
     {
47 50
         if (isset($this->config['scalarType'])) {
Please login to merge, or discard this patch.
src/Resolver/AccessResolver.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@
 block discarded – undo
59 59
         return $this->processFilter($result, $accessChecker, $resolveArgs);
60 60
     }
61 61
 
62
+    /**
63
+     * @param callable $accessChecker
64
+     */
62 65
     private function processFilter($result, $accessChecker, $resolveArgs)
63 66
     {
64 67
         /** @var ResolveInfo $resolveInfo */
Please login to merge, or discard this patch.
src/Resolver/ResolverMap.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -82,6 +82,9 @@
 block discarded – undo
82 82
         return $covered;
83 83
     }
84 84
 
85
+    /**
86
+     * @param callable[] $map
87
+     */
85 88
     private function checkMap($map): void
86 89
     {
87 90
         if (!\is_array($map) && !($map instanceof \ArrayAccess && $map instanceof \Traversable)) {
Please login to merge, or discard this patch.
src/Config/Parser/AnnotationParser.php 3 patches
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      * Create a GraphQL Type configuration from annotations on class, properties and methods
113 113
      * 
114 114
      * @param string       $shortClassName
115
-     * @param Annotation   $typeAnnotation
115
+     * @param \Overblog\GraphQLBundle\Annotation\Type   $typeAnnotation
116 116
      * @param Annotation[] $classAnnotations
117 117
      * @param Annotation[] $propertiesAnnotations
118 118
      * @param Annotation[] $methodsAnnotations
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * Create a GraphQL Interface type configuration from annotations on properties
156 156
      * 
157 157
      * @param string       $shortClassName
158
-     * @param Annotation   $interfaceAnnotation
158
+     * @param \Overblog\GraphQLBundle\Annotation\TypeInterface   $interfaceAnnotation
159 159
      * @param Annotation[] $propertiesAnnotations
160 160
      * 
161 161
      * @return array
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      * Create a GraphQL Input type configuration from annotations on properties
183 183
      * 
184 184
      * @param string       $shortClassName
185
-     * @param Annotation   $inputAnnotation
185
+     * @param \Overblog\GraphQLBundle\Annotation\InputType   $inputAnnotation
186 186
      * @param Annotation[] $propertiesAnnotations
187 187
      * 
188 188
      * @return array
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      * 
209 209
      * @param string     $shortClassName
210 210
      * @param string     $className
211
-     * @param Annotation $scalarAnnotation
211
+     * @param \Overblog\GraphQLBundle\Annotation\Scalar $scalarAnnotation
212 212
      * 
213 213
      * @return array
214 214
      */
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
      * Get a Graphql Enum configuration from given enum annotation 
237 237
      * 
238 238
      * @param string     $shortClassName
239
-     * @param Annotation $enumAnnotation
239
+     * @param \Overblog\GraphQLBundle\Annotation\Enum $enumAnnotation
240 240
      * 
241 241
      * @return array
242 242
      */
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
      * Get a Graphql Union configuration from given union annotation 
276 276
      * 
277 277
      * @param string     $shortClassName
278
-     * @param Annotation $unionAnnotation
278
+     * @param \Overblog\GraphQLBundle\Annotation\Union $unionAnnotation
279 279
      * 
280 280
      * @return array
281 281
      */
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      * @param boolean      $isInput
296 296
      * @param boolean      $isMethod
297 297
      * 
298
-     * @return array
298
+     * @return Annotation[]
299 299
      */
300 300
     private static function getGraphqlFieldsFromAnnotations($annotations, $isInput = false, $isMethod = false) : array
301 301
     {
@@ -414,7 +414,6 @@  discard block
 block discarded – undo
414 414
     /**
415 415
      * Get the config for description & deprecation reason
416 416
      * 
417
-     * @param Annotation $descriptionAnnotation
418 417
      * 
419 418
      * @return array
420 419
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 namespace Overblog\GraphQLBundle\Config\Parser;
6 6
 
7
-use Composer\Autoload\ClassLoader;
8 7
 use Doctrine\Common\Annotations\AnnotationReader;
9 8
 use Doctrine\Common\Annotations\AnnotationRegistry;
10 9
 use Symfony\Component\Config\Resource\FileResource;
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare (strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Overblog\GraphQLBundle\Config\Parser;
6 6
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
             $shortClassName = \substr($file->getFilename(), 0, -4);
32 32
             if (\preg_match('#namespace (.+);#', $fileContent, $namespace)) {
33
-                $className = $namespace[1] . '\\' . $shortClassName;
33
+                $className = $namespace[1].'\\'.$shortClassName;
34 34
             } else {
35 35
                 $className = $shortClassName;
36 36
             }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     private static function getGraphqlType(string $shortClassName, $typeAnnotation, $classAnnotations, $propertiesAnnotations, $methodsAnnotations)
123 123
     {
124
-        $typeName = $typeAnnotation->name ? : $shortClassName;
124
+        $typeName = $typeAnnotation->name ?: $shortClassName;
125 125
         $typeConfiguration = [];
126 126
 
127 127
         $fields = self::getGraphqlFieldsFromAnnotations($propertiesAnnotations);
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     private static function getGraphqlInterface(string $shortClassName, $interfaceAnnotation, $classAnnotations, $propertiesAnnotations, $methodsAnnotations)
164 164
     {
165
-        $interfaceName = $interfaceAnnotation->name ? : $shortClassName;
165
+        $interfaceName = $interfaceAnnotation->name ?: $shortClassName;
166 166
         $interfaceConfiguration = [];
167 167
 
168 168
         $fields = self::getGraphqlFieldsFromAnnotations($propertiesAnnotations);
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     private static function getGraphqlInputType(string $shortClassName, $inputAnnotation, $classAnnotations, $propertiesAnnotations)
191 191
     {
192
-        $inputName = $inputAnnotation->name ? : self::suffixName($shortClassName, 'Input');
192
+        $inputName = $inputAnnotation->name ?: self::suffixName($shortClassName, 'Input');
193 193
         $inputConfiguration = [];
194 194
         $fields = self::getGraphqlFieldsFromAnnotations($propertiesAnnotations, true);
195 195
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      */
215 215
     private static function getGraphqlScalar(string $shortClassName, string $className, $scalarAnnotation, $classAnnotations)
216 216
     {
217
-        $scalarName = $scalarAnnotation->name ? : $shortClassName;
217
+        $scalarName = $scalarAnnotation->name ?: $shortClassName;
218 218
         $scalarConfiguration = [];
219 219
 
220 220
         if ($scalarAnnotation->scalarType) {
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     private static function getGraphqlEnum($shortClassName, $enumAnnotation, $classAnnotations, $constants)
244 244
     {
245
-        $enumName = $enumAnnotation->name ? : self::suffixName($shortClassName, 'Enum');
245
+        $enumName = $enumAnnotation->name ?: self::suffixName($shortClassName, 'Enum');
246 246
         $enumValues = $enumAnnotation->values ? $enumAnnotation->values : [];
247 247
 
248 248
         $values = [];
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      */
282 282
     private static function getGraphqlUnion($shortClassName, $unionAnnotation, $classAnnotations)
283 283
     {
284
-        $unionName = $unionAnnotation->name ? : $shortClassName;
284
+        $unionName = $unionAnnotation->name ?: $shortClassName;
285 285
         $unionConfiguration = ['types' => $unionAnnotation->types];
286 286
         $unionConfiguration += self::getDescriptionConfiguration($classAnnotations);
287 287
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
                     }, array_keys($args));
343 343
                 }
344 344
 
345
-                $propertyName = $fieldAnnotation->name ? : $propertyName;
345
+                $propertyName = $fieldAnnotation->name ?: $propertyName;
346 346
 
347 347
                 if ($fieldAnnotation->resolve) {
348 348
                     $fieldConfiguration['resolve'] = self::formatExpression($fieldAnnotation->resolve);
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
                     } elseif (is_array($fieldAnnotation->fieldBuilder)) {
372 372
                         list($builder, $builderConfig) = $fieldAnnotation->fieldBuilder;
373 373
                         $fieldConfiguration['builder'] = $builder;
374
-                        $fieldConfiguration['builderConfig'] = $builderConfig ? : [];
374
+                        $fieldConfiguration['builderConfig'] = $builderConfig ?: [];
375 375
                     } else {
376 376
                         throw new \UnexpectValueException(\sprintf('The attribute "argsBuilder" on Graphql annotation "@Field" defined on %s must be a string or an array where first index is the builder name and the second is the config.', $target));
377 377
                     }
Please login to merge, or discard this patch.
src/Annotation/FieldArg.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare (strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Overblog\GraphQLBundle\Annotation;
6 6
 
Please login to merge, or discard this patch.
src/Annotation/IsPublic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare (strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Overblog\GraphQLBundle\Annotation;
6 6
 
Please login to merge, or discard this patch.
src/Annotation/EnumValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare (strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Overblog\GraphQLBundle\Annotation;
6 6
 
Please login to merge, or discard this patch.
src/Annotation/Enum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare (strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Overblog\GraphQLBundle\Annotation;
6 6
 
Please login to merge, or discard this patch.