@@ -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 | /** |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Railt\Reflection\Contracts\Document as DocumentInterface; |
| 15 | 15 | use Railt\Reflection\Contracts\Reflection as ReflectionInterface; |
| 16 | 16 | use Railt\Reflection\Contracts\Type; |
| 17 | -use Railt\Reflection\Exception\TypeConflictException; |
|
| 18 | 17 | use Railt\Reflection\Exception\TypeNotFoundException; |
| 19 | 18 | |
| 20 | 19 | /** |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | */ |
| 133 | 133 | public function getTypeDefinition(string $name): ?TypeDefinition |
| 134 | 134 | { |
| 135 | - if (! \in_array($name, $this->types, true)) { |
|
| 135 | + if (!\in_array($name, $this->types, true)) { |
|
| 136 | 136 | return null; |
| 137 | 137 | } |
| 138 | 138 | |
@@ -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 | /** |