diff --git a/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Fixture/fixture_remove_method_call_on_this.php.inc b/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Fixture/fixture_remove_method_call_on_this.php.inc index 9fd15ea49ff..24c4abe3dcb 100644 --- a/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Fixture/fixture_remove_method_call_on_this.php.inc +++ b/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Fixture/fixture_remove_method_call_on_this.php.inc @@ -4,14 +4,14 @@ namespace Rector\Tests\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector\Fi final class FixtureRemoveMethodCallOnThis { - public function __construct() - { - $this->validateLineLengths(); - } - - protected function validateLineLengths(): void - { - } + public function __construct() + { + $this->validateLineLengths(); + } + + protected function validateLineLengths(): void + { + } } ?> @@ -22,13 +22,13 @@ namespace Rector\Tests\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector\Fi final class FixtureRemoveMethodCallOnThis { - public function __construct() - { - } + public function __construct() + { + } - protected function validateLineLengths(): void - { - } + protected function validateLineLengths(): void + { + } } ?> diff --git a/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Fixture/fixture_remove_method_call_on_this_use_abstract.php.inc b/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Fixture/fixture_remove_method_call_on_this_use_abstract.php.inc index de9732c89fd..9a6d5a7ae5d 100644 --- a/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Fixture/fixture_remove_method_call_on_this_use_abstract.php.inc +++ b/rules-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Fixture/fixture_remove_method_call_on_this_use_abstract.php.inc @@ -4,17 +4,17 @@ namespace Rector\Tests\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector\Fi abstract class Validator { - protected function validateLineLengths(): void - { - } + protected function validateLineLengths(): void + { + } } final class GeneratorStubUseAbstract extends Validator { - public function __construct() - { - $this->validateLineLengths(); - } + public function __construct() + { + $this->validateLineLengths(); + } } ?> @@ -25,16 +25,16 @@ namespace Rector\Tests\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector\Fi abstract class Validator { - protected function validateLineLengths(): void - { - } + protected function validateLineLengths(): void + { + } } final class GeneratorStubUseAbstract extends Validator { - public function __construct() - { - } + public function __construct() + { + } } ?> diff --git a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/copy_doc.php.inc b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/copy_doc.php.inc index 31b260503c5..ff4d1f2b818 100644 --- a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/copy_doc.php.inc +++ b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/copy_doc.php.inc @@ -9,23 +9,23 @@ class Z {} final class CopyDoc { - public Y $y; - - /** - * @var Z[] - * @Assert\Valid() - * @Assert\NotBlank() - */ - public array $z = []; - - /** - * @param Z[] $z - */ - public function __construct(Y $y, array $z = []) - { - $this->y = $y; - $this->z = $z; - } + public Y $y; + + /** + * @var Z[] + * @Assert\Valid() + * @Assert\NotBlank() + */ + public array $z = []; + + /** + * @param Z[] $z + */ + public function __construct(Y $y, array $z = []) + { + $this->y = $y; + $this->z = $z; + } } ?> ----- @@ -40,18 +40,18 @@ class Z {} final class CopyDoc { - /** - * @param Z[] $z - */ - public function __construct( - public Y $y, - /** - * @Assert\Valid() - * @Assert\NotBlank() - */ - public array $z = [] - ) - { - } + /** + * @param Z[] $z + */ + public function __construct( + public Y $y, + /** + * @Assert\Valid() + * @Assert\NotBlank() + */ + public array $z = [] + ) + { + } } ?> diff --git a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/generic.php.inc b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/generic.php.inc index 4172dfbc3ab..5141289357d 100644 --- a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/generic.php.inc +++ b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/generic.php.inc @@ -7,18 +7,18 @@ namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromo */ final class Generic { - /** - * @var T - */ - public mixed $value; + /** + * @var T + */ + public mixed $value; - /** - * @param T $value - */ - public function __construct(mixed $value) - { - $this->value = $value; - } + /** + * @param T $value + */ + public function __construct(mixed $value) + { + $this->value = $value; + } } ?> ----- @@ -31,11 +31,11 @@ namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromo */ final class Generic { - /** - * @param T $value - */ - public function __construct(public mixed $value) - { - } + /** + * @param T $value + */ + public function __construct(public mixed $value) + { + } } ?> diff --git a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/iterable_typed.php.inc b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/iterable_typed.php.inc index 5caed2a2262..5c3f4c00130 100644 --- a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/iterable_typed.php.inc +++ b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/iterable_typed.php.inc @@ -4,18 +4,18 @@ namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromo class IterableTyped { - /** - * @var iterable - */ - private iterable $property; + /** + * @var iterable + */ + private iterable $property; - /** - * @param iterable $property - */ - public function __construct(iterable $property) - { - $this->property = $property; - } + /** + * @param iterable $property + */ + public function __construct(iterable $property) + { + $this->property = $property; + } } ?> ----- @@ -25,11 +25,11 @@ namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromo class IterableTyped { - /** - * @param iterable $property - */ - public function __construct(private iterable $property) - { - } + /** + * @param iterable $property + */ + public function __construct(private iterable $property) + { + } } ?> diff --git a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/union_fully_qualified.php.inc b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/union_fully_qualified.php.inc index 1600844c9de..06eec3cd2a8 100644 --- a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/union_fully_qualified.php.inc +++ b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/union_fully_qualified.php.inc @@ -10,20 +10,20 @@ class Z {} final class UnionFullyQualified { - public Y $y; + public Y $y; - public Z $z; + public Z $z; - public function __construct(Y $y, Z $z) - { - $this->y = $y; - $this->z = $z; - } + public function __construct(Y $y, Z $z) + { + $this->y = $y; + $this->z = $z; + } - public function getX(): X - { - return $this->y; - } + public function getX(): X + { + return $this->y; + } } ?> ----- @@ -39,13 +39,13 @@ class Z {} final class UnionFullyQualified { - public function __construct(public Y $y, public Z $z) - { - } - - public function getX(): X - { - return $this->y; - } + public function __construct(public Y $y, public Z $z) + { + } + + public function getX(): X + { + return $this->y; + } } ?> diff --git a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/union_typed.php.inc b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/union_typed.php.inc index c0ac8d55eaa..0502e85cab1 100644 --- a/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/union_typed.php.inc +++ b/rules-tests/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector/Fixture/union_typed.php.inc @@ -7,12 +7,12 @@ use DateTime; final class UnionTyped { - public stdClass|DateTime $property; + public stdClass|DateTime $property; - public function __construct(stdClass|DateTime $property) - { - $this->property = $property; - } + public function __construct(stdClass|DateTime $property) + { + $this->property = $property; + } } ?> @@ -26,9 +26,9 @@ use DateTime; final class UnionTyped { - public function __construct(public stdClass|DateTime $property) - { - } + public function __construct(public stdClass|DateTime $property) + { + } } ?>