Completed
Pull Request — master (#204)
by Ryan
11:34
created
src/Validator/ConfigValidator/ConfigValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of graphql-youshido project.
15 15
  *
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function assertValidConfig(AbstractConfig $config): void
63 63
     {
64 64
         if (!$this->isValidConfig($config)) {
65
-            throw new ConfigurationException('Config is not valid for ' . ($config->getContextObject() ? \get_class($config->getContextObject()) : null) . "\n" . \implode("\n", $this->getErrorsArray(false)));
65
+            throw new ConfigurationException('Config is not valid for '.($config->getContextObject() ? \get_class($config->getContextObject()) : null)."\n".\implode("\n", $this->getErrorsArray(false)));
66 66
         }
67 67
     }
68 68
 
Please login to merge, or discard this patch.
src/Validator/ConfigValidator/ConfigValidatorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 01.12.15.
15 15
  */
Please login to merge, or discard this patch.
src/Validator/ConfigValidator/Rules/ValidationRuleInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of graphql-youshido project.
15 15
  *
Please login to merge, or discard this patch.
src/Validator/ConfigValidator/Rules/TypeValidationRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of graphql-youshido project.
15 15
  *
Please login to merge, or discard this patch.
src/Validator/ResolveValidator/ResolveValidatorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 01.12.15.
15 15
  */
Please login to merge, or discard this patch.
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 03.11.16.
15 15
  */
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         /** @var AbstractObjectType $objectType */
54 54
         if (!(TypeService::isObjectType($objectType) || TypeService::isInputObjectType($objectType)) || !$objectType->hasField($ast->getName())) {
55
-            $availableFieldNames = \implode(', ', \array_map(static function (FieldInterface $field) {
55
+            $availableFieldNames = \implode(', ', \array_map(static function(FieldInterface $field) {
56 56
                 return \sprintf('"%s"', $field->getName());
57 57
             }, $objectType->getFields()));
58 58
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function assertValidArguments(FieldInterface $field, AstFieldInterface $query, Request $request): void
64 64
     {
65
-        $requiredArguments = \array_filter($field->getArguments(), static function (InputField $argument) {
65
+        $requiredArguments = \array_filter($field->getArguments(), static function(InputField $argument) {
66 66
             return TypeMap::KIND_NON_NULL === $argument->getType()->getKind();
67 67
         });
68 68
 
Please login to merge, or discard this patch.
src/Parser/Location.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 16.11.16.
15 15
  */
Please login to merge, or discard this patch.
src/Parser/Token.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 23.11.15.
15 15
  */
Please login to merge, or discard this patch.
src/Parser/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of graphql-youshido project.
15 15
  *
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 
243 243
     protected function findVariable($name)
244 244
     {
245
-        foreach ((array) $this->data['variables'] as $variable) {
245
+        foreach ((array)$this->data['variables'] as $variable) {
246 246
             /** @var $variable Variable */
247 247
             if ($variable->getName() === $name) {
248 248
                 return $variable;
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 
482 482
     protected function matchMulti($types)
483 483
     {
484
-        foreach ((array) $types as $type) {
484
+        foreach ((array)$types as $type) {
485 485
             if ($this->peek()->getType() === $type) {
486 486
                 return true;
487 487
             }
Please login to merge, or discard this patch.