@@ -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 | } |
@@ -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 | /** |
@@ -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 | |
@@ -36,21 +36,21 @@ |
||
| 36 | 36 | |
| 37 | 37 | public function isAllowedFor(TypeDefinition $definition): bool |
| 38 | 38 | { |
| 39 | - throw new \LogicException(__METHOD__ . ' not implemented yet'); |
|
| 39 | + throw new \LogicException(__METHOD__.' not implemented yet'); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | public function getLocations(): iterable |
| 43 | 43 | { |
| 44 | - throw new \LogicException(__METHOD__ . ' not implemented yet'); |
|
| 44 | + throw new \LogicException(__METHOD__.' not implemented yet'); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function getLocation(string $name): ?DirectiveLocation |
| 48 | 48 | { |
| 49 | - throw new \LogicException(__METHOD__ . ' not implemented yet'); |
|
| 49 | + throw new \LogicException(__METHOD__.' not implemented yet'); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | public function hasLocation(string $name): bool |
| 53 | 53 | { |
| 54 | - throw new \LogicException(__METHOD__ . ' not implemented yet'); |
|
| 54 | + throw new \LogicException(__METHOD__.' not implemented yet'); |
|
| 55 | 55 | } |
| 56 | 56 | } |
@@ -50,8 +50,8 @@ |
||
| 50 | 50 | private function invoke(string $name, TypeDefinition $from = null): void |
| 51 | 51 | { |
| 52 | 52 | foreach ($this->callbacks as $callback) { |
| 53 | - if (! $this->has($name)) { |
|
| 54 | - $callback($name, $from, function (TypeDefinition $type): void { |
|
| 53 | + if (!$this->has($name)) { |
|
| 54 | + $callback($name, $from, function(TypeDefinition $type): void { |
|
| 55 | 55 | $this->add($type); |
| 56 | 56 | }); |
| 57 | 57 | } |