@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function __construct(string $name) |
| 18 | 18 | { |
| 19 | - if (! \in_array($name, self::NAMES, true)) { |
|
| 19 | + if (!\in_array($name, self::NAMES, true)) { |
|
| 20 | 20 | throw UnknownImageProcessor::named($name, self::NAMES); |
| 21 | 21 | } |
| 22 | 22 | $this->name = $name; |
@@ -58,11 +58,11 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function isBuiltIn(): bool |
| 60 | 60 | { |
| 61 | - $type = (string) $this->name; |
|
| 61 | + $type = (string)$this->name; |
|
| 62 | 62 | if ($this->isArray()) { |
| 63 | 63 | $type = $this->removeArraySuffix(); |
| 64 | 64 | } |
| 65 | - if (! $this->isPresent()) { |
|
| 65 | + if (!$this->isPresent()) { |
|
| 66 | 66 | return false; |
| 67 | 67 | } |
| 68 | 68 | return \in_array($type, self::BUILT_IN_TYPES, true); |
@@ -70,12 +70,12 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | public function isBuiltInArray(): bool |
| 72 | 72 | { |
| 73 | - return (string) $this->name === 'array'; |
|
| 73 | + return (string)$this->name === 'array'; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | public function isArray(): bool |
| 77 | 77 | { |
| 78 | - return strpos((string) $this->name, '[]') === \strlen((string) $this->name) - 2; |
|
| 78 | + return strpos((string)$this->name, '[]') === \strlen((string)$this->name) - 2; |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | public function isNullable(): bool |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | public function removeArraySuffix(): string |
| 87 | 87 | { |
| 88 | - return substr((string) $this->name, 0, -2); |
|
| 88 | + return substr((string)$this->name, 0, -2); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | public function __toString(): string |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | /** @see HasType::isAReference() for more details */ |
| 15 | 15 | public function isAReference(): bool |
| 16 | 16 | { |
| 17 | - if (! $this->hasTypeDeclaration()) { |
|
| 17 | + if (!$this->hasTypeDeclaration()) { |
|
| 18 | 18 | return false; |
| 19 | 19 | } |
| 20 | - return ! $this->type->isBuiltIn(); |
|
| 20 | + return !$this->type->isBuiltIn(); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** @see HasType::hasTypeDeclaration() for more details */ |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | use Rector\Set\ValueObject\SetList; |
| 14 | 14 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 15 | 15 | |
| 16 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 16 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 17 | 17 | $parameters = $containerConfigurator->parameters(); |
| 18 | 18 | |
| 19 | 19 | $parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']); |