@@ -43,6 +43,6 @@ |
||
43 | 43 | */ |
44 | 44 | public function getDeprecationReason(): string |
45 | 45 | { |
46 | - return (string)$this->deprecation; |
|
46 | + return (string) $this->deprecation; |
|
47 | 47 | } |
48 | 48 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function getDescription(): string |
50 | 50 | { |
51 | - return (string)$this->description; |
|
51 | + return (string) $this->description; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | $name = \ucwords(\mb_strtolower(\preg_replace('/\W+/u', ' ', $name))); |
24 | 24 | |
25 | - return (string)\str_replace(' ', '', $name); |
|
25 | + return (string) \str_replace(' ', '', $name); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -110,7 +110,7 @@ |
||
110 | 110 | * @version SDL June 2018 |
111 | 111 | * @var string |
112 | 112 | */ |
113 | - public const INTERFACE = 'INTERFACE'; |
|
113 | + public const INTERFACE = 'INTERFACE'; |
|
114 | 114 | |
115 | 115 | /** |
116 | 116 | * @version SDL June 2018 |
@@ -168,7 +168,7 @@ |
||
168 | 168 | */ |
169 | 169 | protected function error(\Throwable $error): ExternalFileException |
170 | 170 | { |
171 | - if (! $error instanceof ExternalFileException) { |
|
171 | + if (!$error instanceof ExternalFileException) { |
|
172 | 172 | $error = new ReflectionException($error->getMessage(), $error->getCode(), $error); |
173 | 173 | } |
174 | 174 |
@@ -137,7 +137,7 @@ |
||
137 | 137 | */ |
138 | 138 | public function getDefinition(string $name): ?TypeDefinition |
139 | 139 | { |
140 | - if (! \in_array($name, $this->types, true)) { |
|
140 | + if (!\in_array($name, $this->types, true)) { |
|
141 | 141 | return null; |
142 | 142 | } |
143 | 143 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | public function __toString(): string |
50 | 50 | { |
51 | 51 | try { |
52 | - $parent = (string)$this->getParentDefinition(); |
|
52 | + $parent = (string) $this->getParentDefinition(); |
|
53 | 53 | } catch (\Throwable $e) { |
54 | 54 | $parent = '?<?>'; |
55 | 55 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | ->withArgument((new ArgumentDefinition($this, 'if', 'Boolean')) |
56 | 56 | ->withLine(67) |
57 | 57 | ->withModifiers(ArgumentDefinition::IS_NOT_NULL)) |
58 | - ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation { |
|
58 | + ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation { |
|
59 | 59 | return new DirectiveLocation($this, $location); |
60 | 60 | }, self::LOCATIONS)); |
61 | 61 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | ->withArgument((new ArgumentDefinition($this, 'if', 'Boolean')) |
55 | 55 | ->withLine(56) |
56 | 56 | ->withModifiers(ArgumentDefinition::IS_NOT_NULL)) |
57 | - ->withLocation(...\array_map(function (string $location) use ($document): DirectiveLocation { |
|
57 | + ->withLocation(...\array_map(function(string $location) use ($document): DirectiveLocation { |
|
58 | 58 | return new DirectiveLocation($this, $location); |
59 | 59 | }, self::LOCATIONS)); |
60 | 60 | } |