We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -54,9 +54,9 @@ |
||
| 54 | 54 | |
| 55 | 55 | if (!$this->expressionLanguage->evaluate($constraint->expression, $variables)) { |
| 56 | 56 | $this->context->buildViolation($constraint->message) |
| 57 | - ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING)) |
|
| 58 | - ->setCode(Expression::EXPRESSION_FAILED_ERROR) |
|
| 59 | - ->addViolation(); |
|
| 57 | + ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING)) |
|
| 58 | + ->setCode(Expression::EXPRESSION_FAILED_ERROR) |
|
| 59 | + ->addViolation(); |
|
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | 'payload' => ['data' => ['singleUpload' => 'a.txt']], |
| 68 | 68 | ], |
| 69 | 69 | [ |
| 70 | - 'id' => 'multipleUpload', |
|
| 70 | + 'id' => 'multipleUpload', |
|
| 71 | 71 | 'payload' => ['data' => ['multipleUpload' => ['b.txt', 'c.txt']]], |
| 72 | 72 | ], |
| 73 | 73 | ], |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | // @phpstan-ignore-next-line |
| 98 | 98 | $mock = $this->createMock($className); |
| 99 | 99 | $mock->method('getDocComment') |
| 100 | - ->willReturn(sprintf('/** @%s %s **/', $this->reflectors[$className], $type)); |
|
| 100 | + ->willReturn(sprintf('/** @%s %s **/', $this->reflectors[$className], $type)); |
|
| 101 | 101 | |
| 102 | 102 | /** @var ReflectionProperty|ReflectionMethod $mock */ |
| 103 | 103 | return $mock; |
@@ -261,7 +261,7 @@ |
||
| 261 | 261 | public function testUnionAutoguessed(): void |
| 262 | 262 | { |
| 263 | 263 | $this->expect('Killable', 'union', [ |
| 264 | - 'types' => ['Hero', 'Mandalorian', 'Sith'], |
|
| 264 | + 'types' => ['Hero', 'Mandalorian', 'Sith'], |
|
| 265 | 265 | 'resolveType' => '@=value.getType()', |
| 266 | 266 | ]); |
| 267 | 267 | } |
@@ -293,7 +293,7 @@ |
||
| 293 | 293 | 'type' => 'Int!', |
| 294 | 294 | 'defaultValue' => 0, |
| 295 | 295 | ], |
| 296 | - ], |
|
| 296 | + ], |
|
| 297 | 297 | ], |
| 298 | 298 | ], |
| 299 | 299 | 'name' => 'foo', |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | ?string $subscriptionAlias = null, |
| 33 | 33 | array $types = [] |
| 34 | 34 | ): Closure { |
| 35 | - return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types): ExtensibleSchema { |
|
| 35 | + return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types) : ExtensibleSchema { |
|
| 36 | 36 | static $schema = null; |
| 37 | 37 | if (null === $schema) { |
| 38 | 38 | $schema = $this->create($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | if (\is_array($callback)) { |
| 59 | 59 | [$class, $method] = $callback; |
| 60 | - } elseif(\is_string($callback)) { |
|
| 60 | + } elseif (\is_string($callback)) { |
|
| 61 | 61 | [$class, $method] = explode('::', $callback); |
| 62 | 62 | } else { |
| 63 | 63 | throw new GeneratorException(sprintf('Invalid type of "%s" value passed.', $fieldName)); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | if ($className === $typeConfig->class_name) { |
| 69 | 69 | // Create an alias if name of serializer is same as type name |
| 70 | - $className = 'Base' . $className; |
|
| 70 | + $className = 'Base'.$className; |
|
| 71 | 71 | $phpFile->addUse($class, $className); |
| 72 | 72 | } else { |
| 73 | 73 | $phpFile->addUse($class); |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public const MODE_WRITE = 4; |
| 27 | 27 | public const MODE_OVERRIDE = 8; |
| 28 | 28 | public const GRAPHQL_SERVICES = 'services'; |
| 29 | - public const GRAPHQL_SERVICES_EXPR = '$' . self::GRAPHQL_SERVICES; |
|
| 29 | + public const GRAPHQL_SERVICES_EXPR = '$'.self::GRAPHQL_SERVICES; |
|
| 30 | 30 | |
| 31 | 31 | private static bool $classMapLoaded = false; |
| 32 | 32 | private array $typeConfigs; |