@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | /** @var AstQuery $ast */ |
| 413 | 413 | $resolvedValue = $this->doResolve($field, $ast, $parentValue); |
| 414 | 414 | |
| 415 | - return $this->deferredResolve($resolvedValue, function ($resolvedValue) use ($field, $ast, $parentValue) { |
|
| 415 | + return $this->deferredResolve($resolvedValue, function($resolvedValue) use ($field, $ast, $parentValue) { |
|
| 416 | 416 | $this->resolveValidator->assertValidResolvedValueForField($field, $resolvedValue); |
| 417 | 417 | |
| 418 | 418 | if (null === $resolvedValue) { |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | $result = []; |
| 438 | 438 | foreach ($resolvedValue as $resolvedValueItem) { |
| 439 | 439 | try { |
| 440 | - $fakeField->getConfig()->set('resolve', function () use ($resolvedValueItem) { |
|
| 440 | + $fakeField->getConfig()->set('resolve', function() use ($resolvedValueItem) { |
|
| 441 | 441 | return $resolvedValueItem; |
| 442 | 442 | }); |
| 443 | 443 | |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | $resolvedValue = $this->doResolve($field, $ast, $parentValue); |
| 484 | 484 | } |
| 485 | 485 | |
| 486 | - return $this->deferredResolve($resolvedValue, function ($resolvedValue) use ($field, $ast, $parentValue) { |
|
| 486 | + return $this->deferredResolve($resolvedValue, function($resolvedValue) use ($field, $ast, $parentValue) { |
|
| 487 | 487 | $this->resolveValidator->assertValidResolvedValueForField($field, $resolvedValue); |
| 488 | 488 | |
| 489 | 489 | if (null === $resolvedValue) { |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | { |
| 505 | 505 | /** @var AstQuery $ast */ |
| 506 | 506 | $resolvedValue = $this->doResolve($field, $ast, $parentValue); |
| 507 | - return $this->deferredResolve($resolvedValue, function ($resolvedValue) use ($field, $ast, $parentValue) { |
|
| 507 | + return $this->deferredResolve($resolvedValue, function($resolvedValue) use ($field, $ast, $parentValue) { |
|
| 508 | 508 | $this->resolveValidator->assertValidResolvedValueForField($field, $resolvedValue); |
| 509 | 509 | |
| 510 | 510 | if (null === $resolvedValue) { |
@@ -512,7 +512,7 @@ discard block |
||
| 512 | 512 | } |
| 513 | 513 | |
| 514 | 514 | /** @var AbstractUnionType $type */ |
| 515 | - $type = $field->getType()->getNullableType(); |
|
| 515 | + $type = $field->getType()->getNullableType(); |
|
| 516 | 516 | $resolveInfo = new ResolveInfo( |
| 517 | 517 | $field, |
| 518 | 518 | $ast instanceof AstQuery ? $ast->getFields() : [], |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | if ($fieldConfig instanceof FieldInterface) { |
| 53 | 53 | $this->fields[$fieldConfig->getName()] = $fieldConfig; |
| 54 | 54 | continue; |
| 55 | - } elseif($fieldConfig instanceof InputFieldInterface) { |
|
| 55 | + } elseif ($fieldConfig instanceof InputFieldInterface) { |
|
| 56 | 56 | $this->fields[$fieldConfig->getName()] = $fieldConfig; |
| 57 | 57 | continue; |
| 58 | 58 | } else { |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | |
| 108 | 108 | public function testFieldWithInputFieldArgument() |
| 109 | 109 | { |
| 110 | - $schema = new Schema([ |
|
| 110 | + $schema = new Schema([ |
|
| 111 | 111 | 'query' => new ObjectType([ |
| 112 | 112 | 'name' => 'RootQuery', |
| 113 | 113 | 'fields' => [ |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | -if (is_file(__DIR__ . '/../../../../../vendor/autoload.php')) { |
|
| 3 | - require_once __DIR__ . '/../../../../../vendor/autoload.php'; |
|
| 2 | +if (is_file(__DIR__.'/../../../../../vendor/autoload.php')) { |
|
| 3 | + require_once __DIR__.'/../../../../../vendor/autoload.php'; |
|
| 4 | 4 | } |
| 5 | 5 | |
| 6 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
| 7 | -require_once __DIR__ . '/Schema/FactionType.php'; |
|
| 8 | -require_once __DIR__ . '/Schema/ShipType.php'; |
|
| 9 | -require_once __DIR__ . '/Schema/TestDataProvider.php'; |
|
| 10 | -require_once __DIR__ . '/Schema/StarWarsRelaySchema.php'; |
|
| 6 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
| 7 | +require_once __DIR__.'/Schema/FactionType.php'; |
|
| 8 | +require_once __DIR__.'/Schema/ShipType.php'; |
|
| 9 | +require_once __DIR__.'/Schema/TestDataProvider.php'; |
|
| 10 | +require_once __DIR__.'/Schema/StarWarsRelaySchema.php'; |
|
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | } |
| 10 | 10 | if ($_SERVER['REQUEST_URI'] == '/graphiql.css') { |
| 11 | 11 | header('Content-Type: text/css'); |
| 12 | - readfile(__DIR__ . '/../GraphiQL/graphiql.css'); |
|
| 12 | + readfile(__DIR__.'/../GraphiQL/graphiql.css'); |
|
| 13 | 13 | die(); |
| 14 | 14 | } |
| 15 | 15 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | use Youshido\GraphQL\Execution\Processor; |
| 18 | 18 | use Youshido\GraphQL\Schema\Schema; |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/schema-bootstrap.php'; |
|
| 20 | +require_once __DIR__.'/schema-bootstrap.php'; |
|
| 21 | 21 | /** @var Schema $schema */ |
| 22 | 22 | $schema = new StarWarsRelaySchema(); |
| 23 | 23 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $variables = isset($requestData['variables']) ? $requestData['variables'] : null; |
| 35 | 35 | |
| 36 | 36 | if (empty($payload)) { |
| 37 | - $GraphiQLData = file_get_contents(__DIR__ . '/../GraphiQL/index.html'); |
|
| 37 | + $GraphiQLData = file_get_contents(__DIR__.'/../GraphiQL/index.html'); |
|
| 38 | 38 | echo $GraphiQLData; |
| 39 | 39 | die(); |
| 40 | 40 | } |