@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | try { |
| 29 | 29 | return $this->twig->render($template, $values); |
| 30 | - } catch (LoaderError | RuntimeError | SyntaxError $e) { |
|
| 30 | + } catch (LoaderError | RuntimeError | SyntaxError $e) { |
|
| 31 | 31 | throw new TemplateFailure($e); |
| 32 | 32 | } |
| 33 | 33 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $process = new Process([$this->name->command(), '-Tpng', '-o', $outputFile, $inputFile]); |
| 74 | 74 | $process->run(); |
| 75 | - if (! $process->isSuccessful()) { |
|
| 75 | + if (!$process->isSuccessful()) { |
|
| 76 | 76 | throw ImageGenerationFailure::withOutput($process->getErrorOutput()); |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function __construct(string $name) |
| 18 | 18 | { |
| 19 | - if (! \in_array($name, self::VALID_NAMES, true)) { |
|
| 19 | + if (!\in_array($name, self::VALID_NAMES, true)) { |
|
| 20 | 20 | throw UnknownTheme::named($name, self::VALID_NAMES); |
| 21 | 21 | } |
| 22 | 22 | $this->name = $name; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | public function leaveNode(Node $node) |
| 26 | 26 | { |
| 27 | - if (! $node instanceof Class_) { |
|
| 27 | + if (!$node instanceof Class_) { |
|
| 28 | 28 | return null; |
| 29 | 29 | } |
| 30 | 30 | if ($node->isAnonymous()) { |
@@ -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; |
@@ -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']); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public static function fromConfiguration(CodeFinderConfiguration $configuration): SourceCodeFinder |
| 24 | 24 | { |
| 25 | 25 | $finder = new Finder(); |
| 26 | - if (! $configuration->recursive()) { |
|
| 26 | + if (!$configuration->recursive()) { |
|
| 27 | 27 | $finder->depth(0); |
| 28 | 28 | } |
| 29 | 29 | return new self($finder); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function build(array $parameters, ?Doc $methodDocBlock, UseStatements $useStatements): array |
| 27 | 27 | { |
| 28 | - return array_map(function (Param $parameter) use ($methodDocBlock, $useStatements): Parameter { |
|
| 28 | + return array_map(function(Param $parameter) use ($methodDocBlock, $useStatements) : Parameter { |
|
| 29 | 29 | /** @var \PhpParser\Node\Expr\Variable $parsedParameter Since the parser throws error by default */ |
| 30 | 30 | $parsedParameter = $parameter->var; |
| 31 | 31 | |
@@ -12,5 +12,5 @@ |
||
| 12 | 12 | |
| 13 | 13 | interface VisibilityFilter |
| 14 | 14 | { |
| 15 | - public function accept(Stmt|Param $member): bool; |
|
| 15 | + public function accept(Stmt | Param $member): bool; |
|
| 16 | 16 | } |