Passed
Branch master (d28503)
by Kirill
32:55
created
src/Reflection/Validation/Definitions/PassedArgumentsValidator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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\SDL\Reflection\Validation\Definitions;
11 11
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $this->getCallStack()->push($type);
73 73
 
74
-        if (! ($type instanceof Inputable)) {
74
+        if (!($type instanceof Inputable)) {
75 75
             $error = \sprintf('%s must be type of Scalar, Enum or Input', $type);
76 76
             throw new TypeConflictException($error, $this->getCallStack());
77 77
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     private function validateSingleArgument(ArgumentDefinition $arg, Inputable $type, $value): void
95 95
     {
96
-        if (! $type->isCompatible($value)) {
96
+        if (!$type->isCompatible($value)) {
97 97
             $error = \vsprintf('The argument %s of %s contain non compatible value %s', [
98 98
                 $arg->getName(),
99 99
                 $type,
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     private function validateListArguments(ArgumentDefinition $arg, Inputable $type, $value): void
114 114
     {
115
-        if (! \is_iterable($value)) {
115
+        if (!\is_iterable($value)) {
116 116
             $error = \vsprintf('The argument %s of %s should contain list value, but %s given', [
117 117
                 $arg->getName(),
118 118
                 $type,
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     private function validateMissingArgument(HasPassedArguments $invocation, ArgumentDefinition $argument): void
137 137
     {
138
-        if (! $invocation->hasPassedArgument($argument->getName())) {
138
+        if (!$invocation->hasPassedArgument($argument->getName())) {
139 139
             $error = \sprintf('Required argument "%s" of %s not specified', $argument, $argument->getParent());
140 140
 
141 141
             throw new TypeConflictException($error, $this->getCallStack());
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     private function validateArgumentExisting(HasArguments $container, string $argument): void
152 152
     {
153
-        if (! $container->hasArgument($argument)) {
153
+        if (!$container->hasArgument($argument)) {
154 154
             $error = \sprintf('In the %s there is no specified argument "%s"', $container, $argument);
155 155
 
156 156
             throw new TypeConflictException($error, $this->getCallStack());
Please login to merge, or discard this patch.
src/Reflection/Validation/Definitions/DirectiveDefinitionValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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\SDL\Reflection\Validation\Definitions;
11 11
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         foreach ($locations as $location) {
42 42
             $isValidLocation = $this->isSDLLocation($location) || $this->isQueryLocation($location);
43 43
 
44
-            if (! $isValidLocation) {
44
+            if (!$isValidLocation) {
45 45
                 $error = \vsprintf('Trying to define directive %s, but %s location is invalid', [
46 46
                     $definition,
47 47
                     $location,
Please login to merge, or discard this patch.
src/Reflection/Validation/Uniqueness.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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\SDL\Reflection\Validation;
11 11
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected function getDefaultMatcher(): \Closure
33 33
     {
34
-        return function (Uniqueness\UniquenessValidator $validator, $container, $item): bool {
34
+        return function(Uniqueness\UniquenessValidator $validator, $container, $item): bool {
35 35
             return $validator->match($container, $item);
36 36
         };
37 37
     }
Please login to merge, or discard this patch.
src/Exceptions/BuildingException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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\SDL\Exceptions;
11 11
 
Please login to merge, or discard this patch.
src/Exceptions/TypeException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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\SDL\Exceptions;
11 11
 
Please login to merge, or discard this patch.
src/Exceptions/InitializationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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\SDL\Exceptions;
11 11
 
Please login to merge, or discard this patch.
src/Exceptions/UnexpectedTokenException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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\SDL\Exceptions;
11 11
 
Please login to merge, or discard this patch.
src/Exceptions/UnrecognizedTokenException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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\SDL\Exceptions;
11 11
 
Please login to merge, or discard this patch.
src/Exceptions/SchemaException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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\SDL\Exceptions;
11 11
 
Please login to merge, or discard this patch.