@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace Railt\Adapters\Webonyx\Builder; |
| 11 | 11 | |
@@ -41,6 +41,6 @@ discard block |
||
| 41 | 41 | return Type::boolean(); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - throw new \LogicException('Type ' . $name . ' does not supported yet'); |
|
| 44 | + throw new \LogicException('Type '.$name.' does not supported yet'); |
|
| 45 | 45 | } |
| 46 | 46 | } |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace Railt\Adapters\Webonyx\Builder\Type; |
| 11 | 11 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace Railt\Adapters\Webonyx\Builder; |
| 11 | 11 | |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace Railt\Adapters\Webonyx\Builder\Common; |
| 11 | 11 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | private function getTypeDescription(TypeInterface $target): string |
| 47 | 47 | { |
| 48 | - return $target->getRelationName() . ($target->isList() ? 's' : '') . ' ' . |
|
| 48 | + return $target->getRelationName().($target->isList() ? 's' : '').' '. |
|
| 49 | 49 | $this->formatName($target->getRelationDefinition()->getTypeName()); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -55,10 +55,10 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | private function getNamedDefinitionDescription(NamedDefinitionInterface $definition): string |
| 57 | 57 | { |
| 58 | - $result = '"' . $definition->getName() . '" ' . $this->formatName($definition->getTypeName()); |
|
| 58 | + $result = '"'.$definition->getName().'" '.$this->formatName($definition->getTypeName()); |
|
| 59 | 59 | |
| 60 | 60 | if ($definition instanceof FieldInterface) { |
| 61 | - $result .= ' of ' . $this->getTypeDescription($definition->getType()); |
|
| 61 | + $result .= ' of '.$this->getTypeDescription($definition->getType()); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | return $result; |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | private function getDefinitionDescription(DefinitionInterface $definition): string |
| 72 | 72 | { |
| 73 | - return $definition->getTypeName() . ' of ' . $definition->getDocument()->getTypeName(); |
|
| 73 | + return $definition->getTypeName().' of '.$definition->getDocument()->getTypeName(); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace Railt\Adapters\Webonyx\Builder; |
| 11 | 11 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace Railt\Adapters\Webonyx\Builder; |
| 11 | 11 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace Railt\Adapters\Webonyx\Builder; |
| 11 | 11 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace Railt\Adapters\Webonyx; |
| 11 | 11 | |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace Railt\Adapters\Webonyx; |
| 11 | 11 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - throw new \LogicException($definition->getTypeName() . ' not buildable yet'); |
|
| 107 | + throw new \LogicException($definition->getTypeName().' not buildable yet'); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | */ |
| 131 | 131 | private function makeCachedNamedDefinition(NamedDefinitionInterface $definition, string $class) |
| 132 | 132 | { |
| 133 | - if (! isset($this->dictionary[$definition->getName()])) { |
|
| 133 | + if (!isset($this->dictionary[$definition->getName()])) { |
|
| 134 | 134 | $this->dictionary[$definition->getName()] = $this->make($definition, $class); |
| 135 | 135 | } |
| 136 | 136 | |