Passed
Push — master ( b4eada...a03493 )
by Tomáš
04:06
created
packages/graphql/src/Exception/Provider/ExistingQueryFieldException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\Exception\Provider;
4 4
 
Please login to merge, or discard this patch.
packages/graphql/src/Exception/GraphQLException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\Exception;
4 4
 
Please login to merge, or discard this patch.
packages/graphql/src/Provider/QueryFieldsProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\Provider;
4 4
 
Please login to merge, or discard this patch.
packages/graphql/src/Http/Request/JsonRequestParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\Http\Request;
4 4
 
Please login to merge, or discard this patch.
packages/graphql/src/GraphQL/Type/Scalar/UrlType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\GraphQL\Type\Scalar;
4 4
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 */
36 36
 	public function parseValue($value)
37 37
 	{
38
-		if (! is_string($value) || ! filter_var($value, FILTER_VALIDATE_URL)) {
38
+		if ( ! is_string($value) || ! filter_var($value, FILTER_VALIDATE_URL)) {
39 39
 			throw new UnexpectedValueException('Cannot represent value as URL: ' . Utils::printSafe($value));
40 40
 		}
41 41
 
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
 	 */
49 49
 	public function parseLiteral($valueNode, ?array $variables = null)
50 50
 	{
51
-		if (! $valueNode instanceof StringValueNode) {
51
+		if ( ! $valueNode instanceof StringValueNode) {
52 52
 			$kind = isset($valueNode->kind) ? $valueNode->kind : '';
53 53
 			throw new Error('Can only parse strings got: ' . $kind, $valueNode);
54 54
 		}
55 55
 
56
-		if (! is_string($valueNode->value) || ! filter_var($valueNode->value, FILTER_VALIDATE_URL)) {
56
+		if ( ! is_string($valueNode->value) || ! filter_var($valueNode->value, FILTER_VALIDATE_URL)) {
57 57
 			throw new Error('Not a valid URL: ' . Utils::printSafe($valueNode->value), $valueNode);
58 58
 		}
59 59
 
Please login to merge, or discard this patch.
packages/graphql/src/GraphQL/Type/Scalar/EmailType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\GraphQL\Type\Scalar;
4 4
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 */
36 36
 	public function parseValue($value)
37 37
 	{
38
-		if (! filter_var($value, FILTER_VALIDATE_EMAIL)) {
38
+		if ( ! filter_var($value, FILTER_VALIDATE_EMAIL)) {
39 39
 			throw new UnexpectedValueException('Cannot represent value as email: ' . Utils::printSafe($value));
40 40
 		}
41 41
 
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
 	 */
49 49
 	public function parseLiteral($valueNode, ?array $variables = null)
50 50
 	{
51
-		if (! $valueNode instanceof StringValueNode) {
51
+		if ( ! $valueNode instanceof StringValueNode) {
52 52
 			$kind = isset($valueNode->kind) ? $valueNode->kind : '';
53 53
 			throw new Error('Can only parse strings got: ' . $kind, $valueNode);
54 54
 		}
55 55
 
56
-		if (! filter_var($valueNode->value, FILTER_VALIDATE_EMAIL)) {
56
+		if ( ! filter_var($valueNode->value, FILTER_VALIDATE_EMAIL)) {
57 57
 			throw new Error('Not a valid email: ' . Utils::printSafe($valueNode->value), $valueNode);
58 58
 		}
59 59
 
Please login to merge, or discard this patch.
packages/graphql/src/GraphQL/Type/Scalar/DateTimeType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\GraphQL\Type\Scalar;
4 4
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	public function serialize($value): string
30 30
 	{
31
-		if (! $value instanceof DateTimeInterface) {
31
+		if ( ! $value instanceof DateTimeInterface) {
32 32
 			$printedValue = Utils::printSafe($value);
33 33
 			throw new InvariantViolation('DateTime is not an instance of DateTimeImmutable: ' . $printedValue);
34 34
 		}
Please login to merge, or discard this patch.
packages/graphql/src/GraphQL/Type/Types.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\GraphQL\Type;
4 4
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 	public static function get(string $className): Type
16 16
 	{
17
-		if (! isset(self::$types[$className])) {
17
+		if ( ! isset(self::$types[$className])) {
18 18
 			self::$types[$className] = new $className();
19 19
 		}
20 20
 
Please login to merge, or discard this patch.
packages/graphql/src/GraphQL/RequestProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\GraphQL;
4 4
 
Please login to merge, or discard this patch.