Skip to content

Commit

Permalink
fix spaces in test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 6, 2022
1 parent 9226164 commit b7f84e3
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 118 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
}
}

?>
Expand All @@ -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
{
}
}

?>
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

?>
Expand All @@ -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()
{
}
}

?>
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
?>
-----
Expand All @@ -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 = []
)
{
}
}
?>
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
?>
-----
Expand All @@ -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)
{
}
}
?>
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromo

class IterableTyped
{
/**
* @var iterable<string>
*/
private iterable $property;
/**
* @var iterable<string>
*/
private iterable $property;

/**
* @param iterable<string> $property
*/
public function __construct(iterable $property)
{
$this->property = $property;
}
/**
* @param iterable<string> $property
*/
public function __construct(iterable $property)
{
$this->property = $property;
}
}
?>
-----
Expand All @@ -25,11 +25,11 @@ namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromo

class IterableTyped
{
/**
* @param iterable<string> $property
*/
public function __construct(private iterable $property)
{
}
/**
* @param iterable<string> $property
*/
public function __construct(private iterable $property)
{
}
}
?>
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
?>
-----
Expand All @@ -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;
}
}
?>
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

?>
Expand All @@ -26,9 +26,9 @@ use DateTime;

final class UnionTyped
{
public function __construct(public stdClass|DateTime $property)
{
}
public function __construct(public stdClass|DateTime $property)
{
}
}

?>

0 comments on commit b7f84e3

Please sign in to comment.