From 85aba8e39f1fdf533680074accd34ab2c1ad8fc4 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 18 Feb 2024 01:26:16 +0100 Subject: [PATCH] [automated] Apply Coding Standard (#5632) Co-authored-by: TomasVotruba --- .../DoctrineCoverterterAttributeDecorator.php | 4 +++- src/Configuration/RectorConfigBuilder.php | 2 +- src/DependencyInjection/LazyContainerFactory.php | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/rules/Php80/AttributeDecorator/DoctrineCoverterterAttributeDecorator.php b/rules/Php80/AttributeDecorator/DoctrineCoverterterAttributeDecorator.php index 23acbcad381..9d41c6fc6ad 100644 --- a/rules/Php80/AttributeDecorator/DoctrineCoverterterAttributeDecorator.php +++ b/rules/Php80/AttributeDecorator/DoctrineCoverterterAttributeDecorator.php @@ -38,7 +38,9 @@ public function decorate(Attribute $attribute): void continue; } - $arg->value = $value->value === 'true' ? new ConstFetch(new Name('true')) : new ConstFetch(new Name('false')); + $arg->value = $value->value === 'true' ? new ConstFetch(new Name('true')) : new ConstFetch(new Name( + 'false' + )); break; } } diff --git a/src/Configuration/RectorConfigBuilder.php b/src/Configuration/RectorConfigBuilder.php index d2aad50acc4..ad52e3be985 100644 --- a/src/Configuration/RectorConfigBuilder.php +++ b/src/Configuration/RectorConfigBuilder.php @@ -274,7 +274,7 @@ public function withSkip(array $skip): self public function withSkipPath(string $skipPath): self { - if (!str_contains($skipPath, '*')) { + if (! str_contains($skipPath, '*')) { Assert::fileExists($skipPath); } diff --git a/src/DependencyInjection/LazyContainerFactory.php b/src/DependencyInjection/LazyContainerFactory.php index a48b1193a8e..3300f1998f6 100644 --- a/src/DependencyInjection/LazyContainerFactory.php +++ b/src/DependencyInjection/LazyContainerFactory.php @@ -522,7 +522,11 @@ static function ( ->needs('$converterAttributeDecorators') ->giveTagged(ConverterAttributeDecoratorInterface::class); - $this->registerTagged($rectorConfig, self::CONVERTER_ATTRIBUTE_DECORATOR_CLASSES, ConverterAttributeDecoratorInterface::class); + $this->registerTagged( + $rectorConfig, + self::CONVERTER_ATTRIBUTE_DECORATOR_CLASSES, + ConverterAttributeDecoratorInterface::class + ); $rectorConfig->afterResolving( AbstractRector::class,