@@ -66,7 +66,7 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | public function getInterface(string $name): InterfaceDefinition |
| 68 | 68 | { |
| 69 | - if (! \in_array($name, $this->interfaces, true)) { |
|
| 69 | + if (!\in_array($name, $this->interfaces, true)) { |
|
| 70 | 70 | $error = \sprintf('%s does not contain an interface named "%s"', $this, $name); |
| 71 | 71 | throw new TypeNotFoundException($error); |
| 72 | 72 | } |
@@ -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 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $name = \str_replace(['-', '_'], ' ', $name); |
| 24 | 24 | $name = \ucwords($name); |
| 25 | 25 | |
| 26 | - return (string)\str_replace(' ', '', $name); |
|
| 26 | + return (string) \str_replace(' ', '', $name); |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | */ |
| 134 | 134 | public function getTypeDefinition(string $name): TypeDefinition |
| 135 | 135 | { |
| 136 | - if (! \in_array($name, $this->types, true)) { |
|
| 136 | + if (!\in_array($name, $this->types, true)) { |
|
| 137 | 137 | return null; |
| 138 | 138 | } |
| 139 | 139 | |
@@ -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 | /** |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | { |
| 58 | 58 | $name = $name ?? SchemaInterface::DEFAULT_SCHEMA_NAME; |
| 59 | 59 | |
| 60 | - if (! \in_array($name, $this->schema, true)) { |
|
| 60 | + if (!\in_array($name, $this->schema, true)) { |
|
| 61 | 61 | return null; |
| 62 | 62 | } |
| 63 | 63 | |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | { |
| 158 | 158 | $document = $type->getDocument(); |
| 159 | 159 | |
| 160 | - if (! \array_key_exists($document->getName(), $this->documents)) { |
|
| 160 | + if (!\array_key_exists($document->getName(), $this->documents)) { |
|
| 161 | 161 | $this->documents[$document->getName()] = $document; |
| 162 | 162 | } |
| 163 | 163 | } |