@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Reflection\Base; |
11 | 11 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Reflection\Base\Dependent; |
11 | 11 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Reflection\Base\Dependent\Field; |
11 | 11 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Reflection\Base\Dependent\Argument; |
11 | 11 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function getNumberOfRequiredArguments(): int |
73 | 73 | { |
74 | - return (int)\array_reduce($this->arguments, [$this, 'requiredArgumentsCounter'], 0); |
|
74 | + return (int) \array_reduce($this->arguments, [$this, 'requiredArgumentsCounter'], 0); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function getNumberOfOptionalArguments(): int |
81 | 81 | { |
82 | - return (int)\array_reduce($this->arguments, [$this, 'optionalArgumentsCounter'], 0); |
|
82 | + return (int) \array_reduce($this->arguments, [$this, 'optionalArgumentsCounter'], 0); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | private function optionalArgumentsCounter(int $carry, ArgumentDefinition $argument): int |
91 | 91 | { |
92 | - return $carry + (int)$argument->hasDefaultValue(); |
|
92 | + return $carry + (int) $argument->hasDefaultValue(); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -99,6 +99,6 @@ discard block |
||
99 | 99 | */ |
100 | 100 | private function requiredArgumentsCounter(int $carry, ArgumentDefinition $argument): int |
101 | 101 | { |
102 | - return $carry + (int)! $argument->hasDefaultValue(); |
|
102 | + return $carry + (int) !$argument->hasDefaultValue(); |
|
103 | 103 | } |
104 | 104 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Reflection\Contracts\Definitions; |
11 | 11 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Reflection\Contracts\Definitions\Directive; |
11 | 11 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Reflection\Contracts\Definitions\Enum; |
11 | 11 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Reflection\Contracts\Processable; |
11 | 11 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * For the full copyright and license information, please view the LICENSE |
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace Railt\Reflection\Contracts; |
11 | 11 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /**#@+ |
18 | 18 | * Virtual types group |
19 | 19 | */ |
20 | - public const DOCUMENT = 'Document'; |
|
20 | + public const DOCUMENT = 'Document'; |
|
21 | 21 | /**#@-*/ |
22 | 22 | |
23 | 23 | /**#@+ |
@@ -26,15 +26,15 @@ discard block |
||
26 | 26 | public const SCHEMA = 'Schema'; |
27 | 27 | |
28 | 28 | public const OBJECT = 'Object'; |
29 | - public const OBJECT_FIELD = 'Field'; // TODO Rename |
|
30 | - public const OBJECT_ARGUMENT = 'Argument'; // TODO Rename |
|
29 | + public const OBJECT_FIELD = 'Field'; // TODO Rename |
|
30 | + public const OBJECT_ARGUMENT = 'Argument'; // TODO Rename |
|
31 | 31 | |
32 | 32 | public const INTERFACE = 'Interface'; |
33 | - public const INTERFACE_FIELD = 'Field'; // TODO Rename |
|
34 | - public const INTERFACE_ARGUMENT = 'Argument'; // TODO Rename |
|
33 | + public const INTERFACE_FIELD = 'Field'; // TODO Rename |
|
34 | + public const INTERFACE_ARGUMENT = 'Argument'; // TODO Rename |
|
35 | 35 | |
36 | 36 | public const DIRECTIVE = 'Directive'; |
37 | - public const DIRECTIVE_ARGUMENT = 'Argument'; // TODO Rename |
|
37 | + public const DIRECTIVE_ARGUMENT = 'Argument'; // TODO Rename |
|
38 | 38 | |
39 | 39 | public const INPUT = 'Input'; |
40 | 40 | public const INPUT_FIELD = 'InputField'; |
@@ -52,6 +52,6 @@ discard block |
||
52 | 52 | public const INPUT_INVOCATION = self::INPUT; |
53 | 53 | public const DIRECTIVE_INVOCATION = self::DIRECTIVE; |
54 | 54 | // Extensions |
55 | - public const EXTENSION = 'Extension'; |
|
55 | + public const EXTENSION = 'Extension'; |
|
56 | 56 | /**#@-*/ |
57 | 57 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | public const OBJECT_FIELD = 'Field'; // TODO Rename |
30 | 30 | public const OBJECT_ARGUMENT = 'Argument'; // TODO Rename |
31 | 31 | |
32 | - public const INTERFACE = 'Interface'; |
|
32 | + public const interface = 'Interface'; |
|
33 | 33 | public const INTERFACE_FIELD = 'Field'; // TODO Rename |
34 | 34 | public const INTERFACE_ARGUMENT = 'Argument'; // TODO Rename |
35 | 35 |