We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -4,7 +4,6 @@ |
||
| 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; |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |