diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml
deleted file mode 100644
index 6364d05b..00000000
--- a/.github/workflows/code_analysis.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: Code Analysis
-
-on:
- pull_request: null
- push:
- branches:
- - main
-
-jobs:
- code_analysis:
- uses: rectorphp/reusable-workflows/.github/workflows/code_analysis.yaml@main
-
- rector:
- # run only on PR's from branches on main repository (from core contributors), not on the forks or PR's from forks.
- if: github.event.pull_request.head.repo.full_name == github.repository && github.repository == 'driftingly/rector-laravel'
-
- # see https://github.com/rectorphp/reusable-workflows
- uses: rectorphp/reusable-workflows/.github/workflows/rector.yaml@main
diff --git a/.github/workflows/downgraded_release.yaml b/.github/workflows/downgraded_release.yaml
deleted file mode 100644
index f8d39d7f..00000000
--- a/.github/workflows/downgraded_release.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-name: Downgraded Release
-
-# https://tomasvotruba.com/blog/how-to-release-php-81-and-72-package-in-the-same-repository/
-# https://github.com/TomasVotruba/cognitive-complexity/blob/main/.github/workflows/downgraded_release.yaml
-# https://github.com/symplify/config-transformer/blob/main/.github/workflows/downgraded_release.yaml
-
-on:
- push:
- tags:
- - '*'
-
-jobs:
- downgrade_release:
- runs-on: ubuntu-latest
-
- steps:
- -
- uses: "actions/checkout@v3"
-
- -
- uses: "shivammathur/setup-php@v2"
- with:
- php-version: 8.1
- coverage: none
-
- - uses: "ramsey/composer-install@v2"
-
- # downgrade /src to PHP 7.2
- - run: vendor/bin/rector process src config --config build/rector-downgrade-php-72.php --ansi
- - run: vendor/bin/ecs check src config --fix --ansi
-
- # copy PHP 7.2 composer
- - run: cp build/composer-php-72.json composer.json
-
- # clear the dev files
- - run: rm -rf build .github tests stubs easy-ci.php ecs.php phpstan.neon phpunit.xml
-
- # setup git user
- -
- run: |
- git config user.email "action@github.com"
- git config user.name "GitHub Action"
-
- # publish to the same repository with a new tag
- -
- name: "Tag Downgraded Code"
- run: |
- git commit -a -m "release PHP 7.2 downgraded ${GITHUB_REF#refs/tags/}"
-
- # force push tag, so there is only 1 version
- git tag "${GITHUB_REF#refs/tags/}" --force
- git push origin "${GITHUB_REF#refs/tags/}" --force
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
deleted file mode 100644
index 87f57695..00000000
--- a/.github/workflows/tests.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-name: Tests
-
-on:
- pull_request: null
- push:
- branches:
- - main
-
-env:
- # see https://github.com/composer/composer/issues/9368#issuecomment-718112361
- COMPOSER_ROOT_VERSION: "dev-main"
-
-jobs:
- tests:
- runs-on: ubuntu-latest
-
- name: PHP ${{ matrix.php }} tests
- steps:
- - uses: actions/checkout@v3
-
- - uses: shivammathur/setup-php@v2
- with:
- php-version: 8.1
- coverage: none
-
- - uses: ramsey/composer-install@v2
-
- - run: vendor/bin/phpunit tests
diff --git a/build/composer-php-72.json b/build/composer-php-72.json
deleted file mode 100644
index 49079bdc..00000000
--- a/build/composer-php-72.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name": "driftingly/rector-laravel",
- "type": "rector-extension",
- "license": "MIT",
- "description": "Rector upgrades rules for Laravel Framework",
- "require": {
- "php": "^7.2 || ^8.0"
- },
- "autoload": {
- "psr-4": {
- "RectorLaravel\\": "src"
- }
- },
- "autoload-dev": {
- "classmap": ["stubs"]
- },
- "minimum-stability": "dev",
- "prefer-stable": true
-}
diff --git a/build/rector-downgrade-php-72.php b/build/rector-downgrade-php-72.php
deleted file mode 100644
index 5550cffe..00000000
--- a/build/rector-downgrade-php-72.php
+++ /dev/null
@@ -1,10 +0,0 @@
-sets([DowngradeLevelSetList::DOWN_TO_PHP_72]);
-};
diff --git a/composer.json b/composer.json
index b9762529..49079bdc 100644
--- a/composer.json
+++ b/composer.json
@@ -4,22 +4,7 @@
"license": "MIT",
"description": "Rector upgrades rules for Laravel Framework",
"require": {
- "php": ">=8.1",
- "rector/rector": "^0.15.12"
- },
- "require-dev": {
- "phpunit/phpunit": "^10.0",
- "phpstan/phpstan": "^1.8.2",
- "symplify/phpstan-rules": "^11.0",
- "symplify/phpstan-extensions": "^11.0",
- "symplify/easy-coding-standard": "^11.0",
- "symplify/rule-doc-generator": "^11.0",
- "rector/phpstan-rules": "^0.6",
- "phpstan/extension-installer": "^1.1",
- "phpstan/phpstan-webmozart-assert": "^1.1",
- "phpstan/phpstan-strict-rules": "^1.2",
- "symplify/vendor-patches": "^11.0",
- "rector/rector-debugging": "dev-main"
+ "php": "^7.2 || ^8.0"
},
"autoload": {
"psr-4": {
@@ -27,27 +12,8 @@
}
},
"autoload-dev": {
- "psr-4": {
- "RectorLaravel\\Tests\\": "tests"
- },
"classmap": ["stubs"]
},
- "scripts": {
- "phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
- "check-cs": "vendor/bin/ecs check --ansi",
- "fix-cs": "vendor/bin/ecs check --fix --ansi",
- "docs": [
- "vendor/bin/rule-doc-generator generate src --output-file docs/rector_rules_overview.md --ansi",
- "vendor/bin/ecs check-markdown docs/rector_rules_overview.md --ansi --fix"
- ]
- },
"minimum-stability": "dev",
- "prefer-stable": true,
- "config": {
- "allow-plugins": {
- "cweagans/composer-patches": true,
- "rector/extension-installer": true,
- "phpstan/extension-installer": true
- }
- }
+ "prefer-stable": true
}
diff --git a/config/sets/laravel90.php b/config/sets/laravel90.php
index 46b0a4a7..2828cb68 100644
--- a/config/sets/laravel90.php
+++ b/config/sets/laravel90.php
@@ -40,34 +40,28 @@
// https://github.com/laravel/framework/commit/e095ac0e928b5620f33c9b60816fde5ece867d32
$rectorConfig
- ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder(
- 'Illuminate\Database\Eloquent\Model',
- 'touch',
- 0,
- 'attribute',
- ),
- ]);
+ ->ruleWithConfiguration(
+ ArgumentAdderRector::class,
+ [new ArgumentAdder('Illuminate\Database\Eloquent\Model', 'touch', 0, 'attribute'),
+ ]
+ );
// https://github.com/laravel/framework/commit/6daecf43dd931dc503e410645ff4a7d611e3371f
$rectorConfig
- ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder(
- 'Illuminate\Queue\Failed\FailedJobProviderInterface',
- 'flush',
- 0,
- 'hours',
- ),
- ]);
+ ->ruleWithConfiguration(
+ ArgumentAdderRector::class,
+ [new ArgumentAdder('Illuminate\Queue\Failed\FailedJobProviderInterface', 'flush', 0, 'hours'),
+ ]
+ );
// https://github.com/laravel/framework/commit/8b40e8b7cba2fbf8337dfc05e3c6a62ae457e889
$rectorConfig
- ->ruleWithConfiguration(ArgumentAdderRector::class, [new ArgumentAdder(
- 'Illuminate\Foundation\Http\FormRequest',
- 'validated',
- 0,
- 'key',
- ),
+ ->ruleWithConfiguration(
+ ArgumentAdderRector::class,
+ [new ArgumentAdder('Illuminate\Foundation\Http\FormRequest', 'validated', 0, 'key'),
new ArgumentAdder('Illuminate\Foundation\Http\FormRequest', 'validated', 1, 'default'),
- ]);
+ ]
+ );
// https://github.com/laravel/framework/commit/84c78b9f5f3dad58f92161069e6482f7267ffdb6
$rectorConfig
diff --git a/easy-ci.php b/easy-ci.php
deleted file mode 100644
index 0e16f5ac..00000000
--- a/easy-ci.php
+++ /dev/null
@@ -1,13 +0,0 @@
-paths([__DIR__ . '/config', __DIR__ . '/src']);
-
- $easyCIConfig->typesToSkip([
- \Rector\Core\Contract\Rector\RectorInterface::class,
- ]);
-};
diff --git a/ecs.php b/ecs.php
deleted file mode 100644
index 32d444f2..00000000
--- a/ecs.php
+++ /dev/null
@@ -1,19 +0,0 @@
-sets([SetList::PSR_12, SetList::SYMPLIFY, SetList::COMMON, SetList::CLEAN_CODE]);
-
- $ecsConfig->paths([__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/config', __DIR__ . '/ecs.php']);
-
- $ecsConfig->skip([
- '*/Source/*', '*/Fixture/*',
- // breaks annotated code - removed on symplify dev-main
- ReturnAssignmentFixer::class,
- ]);
-};
diff --git a/phpstan.neon b/phpstan.neon
deleted file mode 100644
index 20db6682..00000000
--- a/phpstan.neon
+++ /dev/null
@@ -1,33 +0,0 @@
-parameters:
- level: max
-
- paths:
- - config
- - src
- - tests
-
- scanDirectories:
- - stubs
-
- excludePaths:
- - */Source/*
- - *Source/*
-
-# reportUnmatchedIgnoredErrors: false
-
- ignoreErrors:
- # false positive
- - '#Parameter \#1 \$value of static method PhpParser\\BuilderHelpers\:\:normalizeValue\(\) expects array\|bool\|float\|int\|PhpParser\\Node\\Expr\|string\|null, mixed given#'
-
- -
- path: src/Rector/Class_/UnifyModelDatesWithCastsRector.php
- message: '#Parameter \#1 \$array of function array_keys expects array, mixed given#'
-
- # rector co-variant
- - '#Parameter \#1 \$node \(PhpParser\\Node\\(.*?) of method RectorLaravel\\(.*?)\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method Rector\\Core\\Contract\\Rector\\PhpRectorInterface\:\:refactor\(\)#'
-
- - '#Parameter \#1 \$className of method Rector\\Core\\Reflection\\ReflectionResolver\:\:resolveMethodReflection\(\) expects class\-string, string given#'
-
- -
- message: '#Do not use chained method calls\. Put each on separated lines#'
- path: config/*
diff --git a/phpunit.xml b/phpunit.xml
deleted file mode 100644
index ffc6b237..00000000
--- a/phpunit.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- tests
-
-
-
diff --git a/src/NodeAnalyzer/LumenRouteRegisteringMethodAnalyzer.php b/src/NodeAnalyzer/LumenRouteRegisteringMethodAnalyzer.php
index 4f21496e..8a1a9a3d 100644
--- a/src/NodeAnalyzer/LumenRouteRegisteringMethodAnalyzer.php
+++ b/src/NodeAnalyzer/LumenRouteRegisteringMethodAnalyzer.php
@@ -4,19 +4,29 @@
namespace RectorLaravel\NodeAnalyzer;
-use PhpParser\Node\Expr;
use PhpParser\Node\Expr\MethodCall;
-use PhpParser\Node\Identifier;
use PHPStan\Type\ObjectType;
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\NodeTypeResolver\NodeTypeResolver;
final class LumenRouteRegisteringMethodAnalyzer
{
- public function __construct(
- private readonly NodeTypeResolver $nodeTypeResolver,
- private readonly NodeNameResolver $nodeNameResolver
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeTypeResolver\NodeTypeResolver
+ */
+ private $nodeTypeResolver;
+
+ /**
+ * @readonly
+ * @var \Rector\NodeNameResolver\NodeNameResolver
+ */
+ private $nodeNameResolver;
+
+ public function __construct(NodeTypeResolver $nodeTypeResolver, NodeNameResolver $nodeNameResolver)
+ {
+ $this->nodeTypeResolver = $nodeTypeResolver;
+ $this->nodeNameResolver = $nodeNameResolver;
}
public function isLumenRoutingClass(MethodCall $methodCall): bool
@@ -24,12 +34,18 @@ public function isLumenRoutingClass(MethodCall $methodCall): bool
return $this->nodeTypeResolver->isObjectType($methodCall->var, new ObjectType('Laravel\Lumen\Routing\Router'));
}
- public function isRoutesRegisterGroup(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRoutesRegisterGroup($name): bool
{
return $this->nodeNameResolver->isName($name, 'group');
}
- public function isRoutesRegisterRoute(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRoutesRegisterRoute($name): bool
{
return $this->nodeNameResolver->isNames($name, ['delete', 'get', 'options', 'patch', 'post', 'put']);
}
diff --git a/src/NodeAnalyzer/StaticCallAnalyzer.php b/src/NodeAnalyzer/StaticCallAnalyzer.php
index 1dd569c2..a4e23437 100644
--- a/src/NodeAnalyzer/StaticCallAnalyzer.php
+++ b/src/NodeAnalyzer/StaticCallAnalyzer.php
@@ -11,9 +11,15 @@
final class StaticCallAnalyzer
{
- public function __construct(
- private readonly NodeNameResolver $nodeNameResolver
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeNameResolver\NodeNameResolver
+ */
+ private $nodeNameResolver;
+
+ public function __construct(NodeNameResolver $nodeNameResolver)
+ {
+ $this->nodeNameResolver = $nodeNameResolver;
}
public function isParentCallNamed(Node $node, string $desiredMethodName): bool
diff --git a/src/NodeFactory/AppAssignFactory.php b/src/NodeFactory/AppAssignFactory.php
index 9f5f28d2..26bfce09 100644
--- a/src/NodeFactory/AppAssignFactory.php
+++ b/src/NodeFactory/AppAssignFactory.php
@@ -15,9 +15,15 @@
final class AppAssignFactory
{
- public function __construct(
- private readonly PhpDocInfoFactory $phpDocInfoFactory
- ) {
+ /**
+ * @readonly
+ * @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
+ */
+ private $phpDocInfoFactory;
+
+ public function __construct(PhpDocInfoFactory $phpDocInfoFactory)
+ {
+ $this->phpDocInfoFactory = $phpDocInfoFactory;
}
public function createAssignExpression(
diff --git a/src/NodeFactory/ModelFactoryNodeFactory.php b/src/NodeFactory/ModelFactoryNodeFactory.php
index be484402..3933a12b 100644
--- a/src/NodeFactory/ModelFactoryNodeFactory.php
+++ b/src/NodeFactory/ModelFactoryNodeFactory.php
@@ -32,12 +32,40 @@ final class ModelFactoryNodeFactory
*/
private const THIS = 'this';
+ /**
+ * @readonly
+ * @var \Rector\NodeNameResolver\NodeNameResolver
+ */
+ private $nodeNameResolver;
+
+ /**
+ * @readonly
+ * @var \Rector\Core\PhpParser\Node\NodeFactory
+ */
+ private $nodeFactory;
+
+ /**
+ * @readonly
+ * @var \Rector\Core\PhpParser\Node\Value\ValueResolver
+ */
+ private $valueResolver;
+
+ /**
+ * @readonly
+ * @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
+ */
+ private $simpleCallableNodeTraverser;
+
public function __construct(
- private readonly NodeNameResolver $nodeNameResolver,
- private readonly NodeFactory $nodeFactory,
- private readonly ValueResolver $valueResolver,
- private readonly SimpleCallableNodeTraverser $simpleCallableNodeTraverser
+ NodeNameResolver $nodeNameResolver,
+ NodeFactory $nodeFactory,
+ ValueResolver $valueResolver,
+ SimpleCallableNodeTraverser $simpleCallableNodeTraverser
) {
+ $this->nodeNameResolver = $nodeNameResolver;
+ $this->nodeFactory = $nodeFactory;
+ $this->valueResolver = $valueResolver;
+ $this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser;
}
public function createEmptyFactory(string $name, Expr $expr): Class_
diff --git a/src/NodeFactory/RouterRegisterNodeAnalyzer.php b/src/NodeFactory/RouterRegisterNodeAnalyzer.php
index 35e82b13..ddf0c7b2 100644
--- a/src/NodeFactory/RouterRegisterNodeAnalyzer.php
+++ b/src/NodeFactory/RouterRegisterNodeAnalyzer.php
@@ -4,23 +4,36 @@
namespace RectorLaravel\NodeFactory;
-use PhpParser\Node\Expr;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\StaticCall;
-use PhpParser\Node\Identifier;
use PHPStan\Type\ObjectType;
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\NodeTypeResolver\NodeTypeResolver;
final class RouterRegisterNodeAnalyzer
{
- public function __construct(
- private readonly NodeNameResolver $nodeNameResolver,
- private readonly NodeTypeResolver $nodeTypeResolver
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeNameResolver\NodeNameResolver
+ */
+ private $nodeNameResolver;
+
+ /**
+ * @readonly
+ * @var \Rector\NodeTypeResolver\NodeTypeResolver
+ */
+ private $nodeTypeResolver;
+
+ public function __construct(NodeNameResolver $nodeNameResolver, NodeTypeResolver $nodeTypeResolver)
+ {
+ $this->nodeNameResolver = $nodeNameResolver;
+ $this->nodeTypeResolver = $nodeTypeResolver;
}
- public function isRegisterMethodStaticCall(MethodCall|StaticCall $node): bool
+ /**
+ * @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
+ */
+ public function isRegisterMethodStaticCall($node): bool
{
if (! $this->isRegisterName($node->name)) {
return false;
@@ -39,7 +52,10 @@ public function isRegisterMethodStaticCall(MethodCall|StaticCall $node): bool
);
}
- public function isRegisterName(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterName($name): bool
{
if ($this->isRegisterAnyVerb($name)) {
return true;
@@ -56,22 +72,34 @@ public function isRegisterName(Identifier|Expr $name): bool
return $this->isRegisterFallback($name);
}
- public function isRegisterMultipleVerbs(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterMultipleVerbs($name): bool
{
return $this->nodeNameResolver->isName($name, 'match');
}
- public function isRegisterAllVerbs(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterAllVerbs($name): bool
{
return $this->nodeNameResolver->isName($name, 'any');
}
- public function isRegisterAnyVerb(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterAnyVerb($name): bool
{
return $this->nodeNameResolver->isNames($name, ['delete', 'get', 'options', 'patch', 'post', 'put']);
}
- public function isRegisterFallback(Identifier|Expr $name): bool
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ public function isRegisterFallback($name): bool
{
return $this->nodeNameResolver->isName($name, 'fallback');
}
diff --git a/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php b/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php
index bb768620..e4b8147a 100644
--- a/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php
+++ b/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php
@@ -26,12 +26,24 @@ final class CallOnAppArrayAccessToStandaloneAssignRector extends AbstractRector
/**
* @var ServiceNameTypeAndVariableName[]
*/
- private array $serviceNameTypeAndVariableNames = [];
+ private $serviceNameTypeAndVariableNames = [];
- public function __construct(
- private readonly AppAssignFactory $appAssignFactory,
- private readonly NodesToAddCollector $nodesToAddCollector,
- ) {
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeFactory\AppAssignFactory
+ */
+ private $appAssignFactory;
+
+ /**
+ * @readonly
+ * @var \Rector\PostRector\Collector\NodesToAddCollector
+ */
+ private $nodesToAddCollector;
+
+ public function __construct(AppAssignFactory $appAssignFactory, NodesToAddCollector $nodesToAddCollector)
+ {
+ $this->appAssignFactory = $appAssignFactory;
+ $this->nodesToAddCollector = $nodesToAddCollector;
$this->serviceNameTypeAndVariableNames[] = new ServiceNameTypeAndVariableName(
'validator',
'Illuminate\Validation\Factory',
diff --git a/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php b/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php
index 5c0d6ee1..7567b2af 100644
--- a/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php
+++ b/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php
@@ -23,12 +23,12 @@ final class AddArgumentDefaultValueRector extends AbstractRector implements Conf
/**
* @var string
*/
- final public const ADDED_ARGUMENTS = 'added_arguments';
+ public const ADDED_ARGUMENTS = 'added_arguments';
/**
* @var AddArgumentDefaultValue[]
*/
- private array $addedArguments = [];
+ private $addedArguments = [];
public function getRuleDefinition(): RuleDefinition
{
diff --git a/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php b/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php
index a3350346..73dd1f5a 100644
--- a/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php
+++ b/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php
@@ -38,9 +38,15 @@ class AddGenericReturnTypeToRelationsRector extends AbstractScopeAwareRector
// Relation methods which need the class as TChildModel.
private const RELATION_WITH_CHILD_METHODS = ['belongsTo', 'morphTo'];
- public function __construct(
- private readonly TypeComparator $typeComparator
- ) {
+ /**
+ * @readonly
+ * @var \Rector\NodeTypeResolver\TypeComparator\TypeComparator
+ */
+ private $typeComparator;
+
+ public function __construct(TypeComparator $typeComparator)
+ {
+ $this->typeComparator = $typeComparator;
}
public function getRuleDefinition(): RuleDefinition
@@ -162,10 +168,12 @@ public function refactorWithScope(Node $node, Scope $scope): ?Node
return null;
}
- $genericTypeNode = new GenericTypeNode(
- new FullyQualifiedIdentifierTypeNode($methodReturnTypeName),
- $this->getGenericTypes($relatedClass, $classForChildGeneric),
- );
+ $genericTypeNode = new GenericTypeNode(new FullyQualifiedIdentifierTypeNode(
+ $methodReturnTypeName
+ ), $this->getGenericTypes(
+ $relatedClass,
+ $classForChildGeneric
+ ));
// Update or add return tag
if ($phpDocInfo->getReturnTagValue() !== null) {
@@ -203,7 +211,9 @@ private function getRelationMethodCall(ClassMethod $classMethod): ?MethodCall
{
$node = $this->betterNodeFinder->findFirstInFunctionLikeScoped(
$classMethod,
- fn (Node $subNode): bool => $subNode instanceof Return_
+ function (Node $subNode): bool {
+ return $subNode instanceof Return_;
+ }
);
if (! $node instanceof Return_) {
@@ -240,7 +250,7 @@ private function getClassForChildGeneric(Scope $scope, MethodCall $methodCall):
$classReflection = $scope->getClassReflection();
- return $classReflection?->getName();
+ return ($classReflection2 = $classReflection) ? $classReflection2->getName() : null;
}
private function areNativeTypeAndPhpDocReturnTypeEqual(
@@ -260,10 +270,7 @@ private function areNativeTypeAndPhpDocReturnTypeEqual(
$methodReturnTypePHPStanType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($node);
- return $this->typeComparator->areTypesEqual(
- $methodReturnTypePHPStanType,
- $phpDocPHPStanTypeWithoutGenerics,
- );
+ return $this->typeComparator->areTypesEqual($methodReturnTypePHPStanType, $phpDocPHPStanTypeWithoutGenerics);
}
private function areGenericTypesEqual(
diff --git a/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php b/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php
index 54fb27f9..8c7dee5a 100644
--- a/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php
+++ b/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php
@@ -26,9 +26,15 @@ final class AddParentBootToModelClassMethodRector extends AbstractRector
*/
private const BOOT = 'boot';
- public function __construct(
- private readonly StaticCallAnalyzer $staticCallAnalyzer
- ) {
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeAnalyzer\StaticCallAnalyzer
+ */
+ private $staticCallAnalyzer;
+
+ public function __construct(StaticCallAnalyzer $staticCallAnalyzer)
+ {
+ $this->staticCallAnalyzer = $staticCallAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php b/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php
index 34c081b1..b6f2c8d0 100644
--- a/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php
+++ b/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php
@@ -26,9 +26,15 @@ final class AddParentRegisterToEventServiceProviderRector extends AbstractRector
*/
private const REGISTER = 'register';
- public function __construct(
- private readonly StaticCallAnalyzer $staticCallAnalyzer
- ) {
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeAnalyzer\StaticCallAnalyzer
+ */
+ private $staticCallAnalyzer;
+
+ public function __construct(StaticCallAnalyzer $staticCallAnalyzer)
+ {
+ $this->staticCallAnalyzer = $staticCallAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php b/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php
index 408c32e6..7bc73805 100644
--- a/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php
+++ b/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php
@@ -253,12 +253,20 @@ private function createAttributeClassMethod(
private function isAccessor(string $nodeName): bool
{
- return str_starts_with($nodeName, 'get') && str_ends_with($nodeName, 'Attribute');
+ return strncmp($nodeName, 'get', strlen('get')) === 0 && substr_compare(
+ $nodeName,
+ 'Attribute',
+ -strlen('Attribute')
+ ) === 0;
}
private function isMutator(string $nodeName): bool
{
- return str_starts_with($nodeName, 'set') && str_ends_with($nodeName, 'Attribute');
+ return strncmp($nodeName, 'set', strlen('set')) === 0 && substr_compare(
+ $nodeName,
+ 'Attribute',
+ -strlen('Attribute')
+ ) === 0;
}
private function findPossibleAccessor(ClassLike $classLike, string $attributeName): ?ClassMethod
diff --git a/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php b/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php
index 66a01afc..3653e92f 100644
--- a/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php
+++ b/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php
@@ -31,11 +31,32 @@
*/
final class AddMockConsoleOutputFalseToConsoleTestsRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \Rector\Core\NodeAnalyzer\PropertyFetchAnalyzer
+ */
+ private $propertyFetchAnalyzer;
+
+ /**
+ * @readonly
+ * @var \Rector\PHPUnit\NodeAnalyzer\SetUpMethodDecorator
+ */
+ private $setUpMethodDecorator;
+
+ /**
+ * @readonly
+ * @var \Rector\Privatization\NodeManipulator\VisibilityManipulator
+ */
+ private $visibilityManipulator;
+
public function __construct(
- private readonly PropertyFetchAnalyzer $propertyFetchAnalyzer,
- private readonly SetUpMethodDecorator $setUpMethodDecorator,
- private readonly VisibilityManipulator $visibilityManipulator
+ PropertyFetchAnalyzer $propertyFetchAnalyzer,
+ SetUpMethodDecorator $setUpMethodDecorator,
+ VisibilityManipulator $visibilityManipulator
) {
+ $this->propertyFetchAnalyzer = $propertyFetchAnalyzer;
+ $this->setUpMethodDecorator = $setUpMethodDecorator;
+ $this->visibilityManipulator = $visibilityManipulator;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/Class_/AnonymousMigrationsRector.php b/src/Rector/Class_/AnonymousMigrationsRector.php
index 8ca6cd0a..3643e520 100644
--- a/src/Rector/Class_/AnonymousMigrationsRector.php
+++ b/src/Rector/Class_/AnonymousMigrationsRector.php
@@ -22,9 +22,15 @@
*/
final class AnonymousMigrationsRector extends AbstractRector
{
- public function __construct(
- private readonly ClassAnalyzer $classAnalyzer
- ) {
+ /**
+ * @readonly
+ * @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
+ */
+ private $classAnalyzer;
+
+ public function __construct(ClassAnalyzer $classAnalyzer)
+ {
+ $this->classAnalyzer = $classAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/Class_/UnifyModelDatesWithCastsRector.php b/src/Rector/Class_/UnifyModelDatesWithCastsRector.php
index 0dc26af8..9325d4ab 100644
--- a/src/Rector/Class_/UnifyModelDatesWithCastsRector.php
+++ b/src/Rector/Class_/UnifyModelDatesWithCastsRector.php
@@ -24,9 +24,15 @@
*/
final class UnifyModelDatesWithCastsRector extends AbstractRector
{
- public function __construct(
- private readonly ClassInsertManipulator $classInsertManipulator
- ) {
+ /**
+ * @readonly
+ * @var \Rector\Core\NodeManipulator\ClassInsertManipulator
+ */
+ private $classInsertManipulator;
+
+ public function __construct(ClassInsertManipulator $classInsertManipulator)
+ {
+ $this->classInsertManipulator = $classInsertManipulator;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php b/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php
index 098b98ab..f3fb2dcc 100644
--- a/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php
+++ b/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php
@@ -26,9 +26,15 @@
*/
final class ChangeQueryWhereDateValueWithCarbonRector extends AbstractRector
{
- public function __construct(
- private readonly NodesToAddCollector $nodesToAddCollector,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\PostRector\Collector\NodesToAddCollector
+ */
+ private $nodesToAddCollector;
+
+ public function __construct(NodesToAddCollector $nodesToAddCollector)
+ {
+ $this->nodesToAddCollector = $nodesToAddCollector;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/MethodCall/FactoryApplyingStatesRector.php b/src/Rector/MethodCall/FactoryApplyingStatesRector.php
index 8a1b0bfc..d2b49bff 100644
--- a/src/Rector/MethodCall/FactoryApplyingStatesRector.php
+++ b/src/Rector/MethodCall/FactoryApplyingStatesRector.php
@@ -84,6 +84,8 @@ private function getStatesFromArgs(array $args): array
return (array) $this->valueResolver->getValue($args[0]->value);
}
- return array_map(fn ($arg) => $arg instanceof Arg ? $this->valueResolver->getValue($arg->value) : null, $args);
+ return array_map(function ($arg) {
+ return $arg instanceof Arg ? $this->valueResolver->getValue($arg->value) : null;
+ }, $args);
}
}
diff --git a/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php b/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php
index cde75f59..60bc3a2d 100644
--- a/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php
+++ b/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php
@@ -20,21 +20,30 @@
*/
final class LumenRoutesStringActionToUsesArrayRector extends AbstractRector
{
- public function __construct(
- private readonly LumenRouteRegisteringMethodAnalyzer $lumenRouteRegisteringMethodAnalyzer
- ) {
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeAnalyzer\LumenRouteRegisteringMethodAnalyzer
+ */
+ private $lumenRouteRegisteringMethodAnalyzer;
+
+ public function __construct(LumenRouteRegisteringMethodAnalyzer $lumenRouteRegisteringMethodAnalyzer)
+ {
+ $this->lumenRouteRegisteringMethodAnalyzer = $lumenRouteRegisteringMethodAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Changes action in rule definitions from string to array notation.',
- [new CodeSample(<<<'CODE_SAMPLE'
+ [new CodeSample(
+ <<<'CODE_SAMPLE'
$router->get('/user', 'UserController@get');
CODE_SAMPLE
- , <<<'CODE_SAMPLE'
+ ,
+ <<<'CODE_SAMPLE'
$router->get('/user', ['uses => 'UserController@get']);
-CODE_SAMPLE)]
+CODE_SAMPLE
+ )]
);
}
diff --git a/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php b/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php
index a6ed6d87..b99fbebb 100644
--- a/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php
+++ b/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php
@@ -20,24 +20,41 @@
*/
final class LumenRoutesStringMiddlewareToArrayRector extends AbstractRector
{
+ /**
+ * @readonly
+ * @var \Rector\Core\NodeManipulator\ArrayManipulator
+ */
+ private $arrayManipulator;
+
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeAnalyzer\LumenRouteRegisteringMethodAnalyzer
+ */
+ private $lumenRouteRegisteringMethodAnalyzer;
+
public function __construct(
- private readonly ArrayManipulator $arrayManipulator,
- private readonly LumenRouteRegisteringMethodAnalyzer $lumenRouteRegisteringMethodAnalyzer
+ ArrayManipulator $arrayManipulator,
+ LumenRouteRegisteringMethodAnalyzer $lumenRouteRegisteringMethodAnalyzer
) {
+ $this->arrayManipulator = $arrayManipulator;
+ $this->lumenRouteRegisteringMethodAnalyzer = $lumenRouteRegisteringMethodAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Changes middlewares from rule definitions from string to array notation.',
- [new CodeSample(<<<'CODE_SAMPLE'
+ [new CodeSample(
+ <<<'CODE_SAMPLE'
$router->get('/user', ['middleware => 'test']);
$router->post('/user', ['middleware => 'test|authentication']);
CODE_SAMPLE
- , <<<'CODE_SAMPLE'
+ ,
+ <<<'CODE_SAMPLE'
$router->get('/user', ['middleware => ['test']]);
$router->post('/user', ['middleware => ['test', 'authentication']]);
-CODE_SAMPLE)]
+CODE_SAMPLE
+ )]
);
}
diff --git a/src/Rector/MethodCall/RedirectBackToBackHelperRector.php b/src/Rector/MethodCall/RedirectBackToBackHelperRector.php
index 09b95f9a..ad6387ed 100644
--- a/src/Rector/MethodCall/RedirectBackToBackHelperRector.php
+++ b/src/Rector/MethodCall/RedirectBackToBackHelperRector.php
@@ -21,9 +21,15 @@
final class RedirectBackToBackHelperRector extends AbstractRector
{
- public function __construct(
- private readonly FluentChainMethodCallNodeAnalyzer $fluentChainMethodCallNodeAnalyzer,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\Defluent\NodeAnalyzer\FluentChainMethodCallNodeAnalyzer
+ */
+ private $fluentChainMethodCallNodeAnalyzer;
+
+ public function __construct(FluentChainMethodCallNodeAnalyzer $fluentChainMethodCallNodeAnalyzer)
+ {
+ $this->fluentChainMethodCallNodeAnalyzer = $fluentChainMethodCallNodeAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php b/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php
index a6308cd0..f732efd4 100644
--- a/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php
+++ b/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php
@@ -21,9 +21,15 @@
final class RedirectRouteToToRouteHelperRector extends AbstractRector
{
- public function __construct(
- private readonly FluentChainMethodCallNodeAnalyzer $fluentChainMethodCallNodeAnalyzer,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\Defluent\NodeAnalyzer\FluentChainMethodCallNodeAnalyzer
+ */
+ private $fluentChainMethodCallNodeAnalyzer;
+
+ public function __construct(FluentChainMethodCallNodeAnalyzer $fluentChainMethodCallNodeAnalyzer)
+ {
+ $this->fluentChainMethodCallNodeAnalyzer = $fluentChainMethodCallNodeAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/Namespace_/FactoryDefinitionRector.php b/src/Rector/Namespace_/FactoryDefinitionRector.php
index 4d0b22bd..2e93529b 100644
--- a/src/Rector/Namespace_/FactoryDefinitionRector.php
+++ b/src/Rector/Namespace_/FactoryDefinitionRector.php
@@ -30,9 +30,15 @@
*/
final class FactoryDefinitionRector extends AbstractRector
{
- public function __construct(
- private readonly ModelFactoryNodeFactory $modelFactoryNodeFactory
- ) {
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeFactory\ModelFactoryNodeFactory
+ */
+ private $modelFactoryNodeFactory;
+
+ public function __construct(ModelFactoryNodeFactory $modelFactoryNodeFactory)
+ {
+ $this->modelFactoryNodeFactory = $modelFactoryNodeFactory;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/New_/AddGuardToLoginEventRector.php b/src/Rector/New_/AddGuardToLoginEventRector.php
index 78709800..3a9b2fd9 100644
--- a/src/Rector/New_/AddGuardToLoginEventRector.php
+++ b/src/Rector/New_/AddGuardToLoginEventRector.php
@@ -23,9 +23,15 @@
*/
final class AddGuardToLoginEventRector extends AbstractRector
{
- public function __construct(
- private readonly NodesToAddCollector $nodesToAddCollector,
- ) {
+ /**
+ * @readonly
+ * @var \Rector\PostRector\Collector\NodesToAddCollector
+ */
+ private $nodesToAddCollector;
+
+ public function __construct(NodesToAddCollector $nodesToAddCollector)
+ {
+ $this->nodesToAddCollector = $nodesToAddCollector;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php b/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php
index 00329c81..c5dbc023 100644
--- a/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php
+++ b/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php
@@ -38,7 +38,7 @@ final class OptionalToNullsafeOperatorRector extends AbstractRector implements M
/**
* @var string
*/
- final public const EXCLUDE_METHODS = 'exclude_methods';
+ public const EXCLUDE_METHODS = 'exclude_methods';
/**
* @var array>
@@ -48,12 +48,24 @@ final class OptionalToNullsafeOperatorRector extends AbstractRector implements M
/**
* @var string[]
*/
- private array $excludeMethods = [];
+ private $excludeMethods = [];
- public function __construct(
- private readonly MultiInstanceofChecker $multiInstanceofChecker,
- private readonly ArgsAnalyzer $argsAnalyzer
- ) {
+ /**
+ * @readonly
+ * @var \Rector\Core\Util\MultiInstanceofChecker
+ */
+ private $multiInstanceofChecker;
+
+ /**
+ * @readonly
+ * @var \Rector\Core\NodeAnalyzer\ArgsAnalyzer
+ */
+ private $argsAnalyzer;
+
+ public function __construct(MultiInstanceofChecker $multiInstanceofChecker, ArgsAnalyzer $argsAnalyzer)
+ {
+ $this->multiInstanceofChecker = $multiInstanceofChecker;
+ $this->argsAnalyzer = $argsAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
diff --git a/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php b/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php
index 8897967f..0600ecc6 100644
--- a/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php
+++ b/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php
@@ -42,7 +42,7 @@ final class MinutesToSecondsInCacheRector extends AbstractRector
/**
* @var TypeToTimeMethodAndPosition[]
*/
- private array $typeToTimeMethodsAndPositions = [];
+ private $typeToTimeMethodsAndPositions = [];
public function __construct()
{
@@ -133,11 +133,12 @@ public function refactor(Node $node): ?Node
return $node;
}
- private function processArgumentOnPosition(
- StaticCall | MethodCall $node,
- Expr $argExpr,
- int $argumentPosition
- ): StaticCall | MethodCall | null {
+ /**
+ * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall $node
+ * @return \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|null
+ */
+ private function processArgumentOnPosition($node, Expr $argExpr, int $argumentPosition)
+ {
if (! $this->nodeTypeResolver->isNumberType($argExpr)) {
return null;
}
diff --git a/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php b/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php
index 02c90a17..b6baeba9 100644
--- a/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php
+++ b/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php
@@ -22,7 +22,7 @@ final class Redirect301ToPermanentRedirectRector extends AbstractRector
/**
* @var ObjectType[]
*/
- private array $routerObjectTypes = [];
+ private $routerObjectTypes = [];
public function __construct()
{
diff --git a/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php b/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php
index 97c9eff9..37aa7e42 100644
--- a/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php
+++ b/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php
@@ -29,11 +29,17 @@ final class RequestStaticValidateToInjectRector extends AbstractRector
/**
* @var ObjectType[]
*/
- private array $requestObjectTypes = [];
+ private $requestObjectTypes = [];
- public function __construct(
- private readonly ReflectionResolver $reflectionResolver
- ) {
+ /**
+ * @readonly
+ * @var \Rector\Core\Reflection\ReflectionResolver
+ */
+ private $reflectionResolver;
+
+ public function __construct(ReflectionResolver $reflectionResolver)
+ {
+ $this->reflectionResolver = $reflectionResolver;
$this->requestObjectTypes = [new ObjectType('Illuminate\Http\Request'), new ObjectType('Request')];
}
@@ -111,7 +117,10 @@ public function refactor(Node $node): ?Node
return new MethodCall($requestParam->var, new Identifier($methodName), $node->args);
}
- private function shouldSkip(StaticCall|FuncCall $node): bool
+ /**
+ * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\FuncCall $node
+ */
+ private function shouldSkip($node): bool
{
if ($node instanceof StaticCall) {
return ! $this->nodeTypeResolver->isObjectTypes($node->class, $this->requestObjectTypes);
@@ -125,8 +134,8 @@ private function shouldSkip(StaticCall|FuncCall $node): bool
$classMethod = $this->betterNodeFinder->findParentType($node, ClassMethod::class);
if ($classMethod instanceof ClassMethod) {
$classMethodReflection = $this->reflectionResolver->resolveMethodReflectionFromClassMethod($classMethod);
- $classMethodNamespaceName = $classMethodReflection?->getPrototype()?->getDeclaringClass()?->getName();
- $classNamespaceName = $class->namespacedName?->toString();
+ $classMethodNamespaceName = ($getDeclaringClass = ($getPrototype = ($classMethodReflection2 = $classMethodReflection) ? $classMethodReflection2->getPrototype() : null) ? $getPrototype->getDeclaringClass() : null) ? $getDeclaringClass->getName() : null;
+ $classNamespaceName = ($classNamespacedName = $class->namespacedName) ? $classNamespacedName->toString() : null;
if ($classMethodNamespaceName !== $classNamespaceName) {
return true;
}
diff --git a/src/Rector/StaticCall/RouteActionCallableRector.php b/src/Rector/StaticCall/RouteActionCallableRector.php
index 898ccb36..34587587 100644
--- a/src/Rector/StaticCall/RouteActionCallableRector.php
+++ b/src/Rector/StaticCall/RouteActionCallableRector.php
@@ -6,10 +6,8 @@
use PhpParser\Node;
use PhpParser\Node\Arg;
-use PhpParser\Node\Expr;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\StaticCall;
-use PhpParser\Node\Identifier;
use PhpParser\Node\Scalar\String_;
use PHPStan\Analyser\Scope;
use PHPStan\Reflection\Php\PhpMethodReflection;
@@ -32,29 +30,46 @@ final class RouteActionCallableRector extends AbstractRector implements Configur
/**
* @var string
*/
- final public const ROUTES = 'routes';
+ public const ROUTES = 'routes';
/**
* @var string
*/
- final public const NAMESPACE = 'namespace';
+ public const NAMESPACE = 'namespace';
/**
* @var string
*/
private const DEFAULT_NAMESPACE = 'App\Http\Controllers';
- private string $namespace = self::DEFAULT_NAMESPACE;
+ /**
+ * @var string
+ */
+ private $namespace = self::DEFAULT_NAMESPACE;
/**
* @var array
*/
- private array $routes = [];
+ private $routes = [];
+
+ /**
+ * @readonly
+ * @var \Rector\Core\Reflection\ReflectionResolver
+ */
+ private $reflectionResolver;
+
+ /**
+ * @readonly
+ * @var \RectorLaravel\NodeFactory\RouterRegisterNodeAnalyzer
+ */
+ private $routerRegisterNodeAnalyzer;
public function __construct(
- private readonly ReflectionResolver $reflectionResolver,
- private readonly RouterRegisterNodeAnalyzer $routerRegisterNodeAnalyzer
+ ReflectionResolver $reflectionResolver,
+ RouterRegisterNodeAnalyzer $routerRegisterNodeAnalyzer
) {
+ $this->reflectionResolver = $reflectionResolver;
+ $this->routerRegisterNodeAnalyzer = $routerRegisterNodeAnalyzer;
}
public function getRuleDefinition(): RuleDefinition
@@ -153,8 +168,9 @@ public function configure(array $configuration): void
/**
* @return array{string, string}|null
+ * @param mixed $action
*/
- private function resolveControllerFromAction(mixed $action): ?array
+ private function resolveControllerFromAction($action): ?array
{
if (! $this->isActionString($action)) {
return null;
@@ -171,14 +187,17 @@ private function resolveControllerFromAction(mixed $action): ?array
[$controller, $method] = $segments;
$namespace = $this->getNamespace($this->file->getFilePath());
- if (! str_starts_with($controller, '\\')) {
+ if (strncmp($controller, '\\', strlen('\\')) !== 0) {
$controller = $namespace . '\\' . $controller;
}
return [$controller, $method];
}
- private function getActionPosition(Identifier|Expr $name): int
+ /**
+ * @param \PhpParser\Node\Identifier|\PhpParser\Node\Expr $name
+ */
+ private function getActionPosition($name): int
{
if ($this->routerRegisterNodeAnalyzer->isRegisterFallback($name)) {
return 0;
@@ -191,7 +210,10 @@ private function getActionPosition(Identifier|Expr $name): int
return 1;
}
- private function isActionString(mixed $action): bool
+ /**
+ * @param mixed $action
+ */
+ private function isActionString($action): bool
{
if (! is_string($action)) {
if (! is_array($action)) {
@@ -204,7 +226,7 @@ private function isActionString(mixed $action): bool
return $keys === ['as', 'uses'];
}
- return str_contains($action, '@');
+ return strpos($action, '@') !== false;
}
private function getNamespace(string $filePath): string
diff --git a/src/Set/LaravelLevelSetList.php b/src/Set/LaravelLevelSetList.php
index cd85d132..9d5c93f1 100644
--- a/src/Set/LaravelLevelSetList.php
+++ b/src/Set/LaravelLevelSetList.php
@@ -11,65 +11,65 @@ final class LaravelLevelSetList implements SetListInterface
/**
* @var string
*/
- final public const UP_TO_LARAVEL_51 = __DIR__ . '/../../config/sets/level/up-to-laravel-51.php';
+ public const UP_TO_LARAVEL_51 = __DIR__ . '/../../config/sets/level/up-to-laravel-51.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_52 = __DIR__ . '/../../config/sets/level/up-to-laravel-52.php';
+ public const UP_TO_LARAVEL_52 = __DIR__ . '/../../config/sets/level/up-to-laravel-52.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_53 = __DIR__ . '/../../config/sets/level/up-to-laravel-53.php';
+ public const UP_TO_LARAVEL_53 = __DIR__ . '/../../config/sets/level/up-to-laravel-53.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_54 = __DIR__ . '/../../config/sets/level/up-to-laravel-54.php';
+ public const UP_TO_LARAVEL_54 = __DIR__ . '/../../config/sets/level/up-to-laravel-54.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_55 = __DIR__ . '/../../config/sets/level/up-to-laravel-55.php';
+ public const UP_TO_LARAVEL_55 = __DIR__ . '/../../config/sets/level/up-to-laravel-55.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_56 = __DIR__ . '/../../config/sets/level/up-to-laravel-56.php';
+ public const UP_TO_LARAVEL_56 = __DIR__ . '/../../config/sets/level/up-to-laravel-56.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_57 = __DIR__ . '/../../config/sets/level/up-to-laravel-57.php';
+ public const UP_TO_LARAVEL_57 = __DIR__ . '/../../config/sets/level/up-to-laravel-57.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_58 = __DIR__ . '/../../config/sets/level/up-to-laravel-58.php';
+ public const UP_TO_LARAVEL_58 = __DIR__ . '/../../config/sets/level/up-to-laravel-58.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_60 = __DIR__ . '/../../config/sets/level/up-to-laravel-60.php';
+ public const UP_TO_LARAVEL_60 = __DIR__ . '/../../config/sets/level/up-to-laravel-60.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_70 = __DIR__ . '/../../config/sets/level/up-to-laravel-70.php';
+ public const UP_TO_LARAVEL_70 = __DIR__ . '/../../config/sets/level/up-to-laravel-70.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_80 = __DIR__ . '/../../config/sets/level/up-to-laravel-80.php';
+ public const UP_TO_LARAVEL_80 = __DIR__ . '/../../config/sets/level/up-to-laravel-80.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_90 = __DIR__ . '/../../config/sets/level/up-to-laravel-90.php';
+ public const UP_TO_LARAVEL_90 = __DIR__ . '/../../config/sets/level/up-to-laravel-90.php';
/**
* @var string
*/
- final public const UP_TO_LARAVEL_100 = __DIR__ . '/../../config/sets/level/up-to-laravel-100.php';
+ public const UP_TO_LARAVEL_100 = __DIR__ . '/../../config/sets/level/up-to-laravel-100.php';
}
diff --git a/src/Set/LaravelSetList.php b/src/Set/LaravelSetList.php
index 9f7eb477..8ea43e26 100644
--- a/src/Set/LaravelSetList.php
+++ b/src/Set/LaravelSetList.php
@@ -11,95 +11,95 @@ final class LaravelSetList implements SetListInterface
/**
* @var string
*/
- final public const ARRAY_STR_FUNCTIONS_TO_STATIC_CALL = __DIR__ . '/../../config/sets/laravel-array-str-functions-to-static-call.php';
+ public const ARRAY_STR_FUNCTIONS_TO_STATIC_CALL = __DIR__ . '/../../config/sets/laravel-array-str-functions-to-static-call.php';
/**
* @var string
*/
- final public const LARAVEL_50 = __DIR__ . '/../../config/sets/laravel50.php';
+ public const LARAVEL_50 = __DIR__ . '/../../config/sets/laravel50.php';
/**
* @var string
*/
- final public const LARAVEL_51 = __DIR__ . '/../../config/sets/laravel51.php';
+ public const LARAVEL_51 = __DIR__ . '/../../config/sets/laravel51.php';
/**
* @var string
*/
- final public const LARAVEL_52 = __DIR__ . '/../../config/sets/laravel52.php';
+ public const LARAVEL_52 = __DIR__ . '/../../config/sets/laravel52.php';
/**
* @var string
*/
- final public const LARAVEL_53 = __DIR__ . '/../../config/sets/laravel53.php';
+ public const LARAVEL_53 = __DIR__ . '/../../config/sets/laravel53.php';
/**
* @var string
*/
- final public const LARAVEL_54 = __DIR__ . '/../../config/sets/laravel54.php';
+ public const LARAVEL_54 = __DIR__ . '/../../config/sets/laravel54.php';
/**
* @var string
*/
- final public const LARAVEL_55 = __DIR__ . '/../../config/sets/laravel55.php';
+ public const LARAVEL_55 = __DIR__ . '/../../config/sets/laravel55.php';
/**
* @var string
*/
- final public const LARAVEL_56 = __DIR__ . '/../../config/sets/laravel56.php';
+ public const LARAVEL_56 = __DIR__ . '/../../config/sets/laravel56.php';
/**
* @var string
*/
- final public const LARAVEL_57 = __DIR__ . '/../../config/sets/laravel57.php';
+ public const LARAVEL_57 = __DIR__ . '/../../config/sets/laravel57.php';
/**
* @var string
*/
- final public const LARAVEL_58 = __DIR__ . '/../../config/sets/laravel58.php';
+ public const LARAVEL_58 = __DIR__ . '/../../config/sets/laravel58.php';
/**
* @var string
*/
- final public const LARAVEL_60 = __DIR__ . '/../../config/sets/laravel60.php';
+ public const LARAVEL_60 = __DIR__ . '/../../config/sets/laravel60.php';
/**
* @var string
*/
- final public const LARAVEL_70 = __DIR__ . '/../../config/sets/laravel70.php';
+ public const LARAVEL_70 = __DIR__ . '/../../config/sets/laravel70.php';
/**
* @var string
*/
- final public const LARAVEL_80 = __DIR__ . '/../../config/sets/laravel80.php';
+ public const LARAVEL_80 = __DIR__ . '/../../config/sets/laravel80.php';
/**
* @var string
*/
- final public const LARAVEL_90 = __DIR__ . '/../../config/sets/laravel90.php';
+ public const LARAVEL_90 = __DIR__ . '/../../config/sets/laravel90.php';
/**
* @var string
*/
- final public const LARAVEL_100 = __DIR__ . '/../../config/sets/laravel100.php';
+ public const LARAVEL_100 = __DIR__ . '/../../config/sets/laravel100.php';
/**
* @var string
*/
- final public const LARAVEL_STATIC_TO_INJECTION = __DIR__ . '/../../config/sets/laravel-static-to-injection.php';
+ public const LARAVEL_STATIC_TO_INJECTION = __DIR__ . '/../../config/sets/laravel-static-to-injection.php';
/**
* @var string
*/
- final public const LARAVEL_CODE_QUALITY = __DIR__ . '/../../config/sets/laravel-code-quality.php';
+ public const LARAVEL_CODE_QUALITY = __DIR__ . '/../../config/sets/laravel-code-quality.php';
/**
* @var string
*/
- final public const LARAVEL_ARRAY_STR_FUNCTION_TO_STATIC_CALL = __DIR__ . '/../../config/sets/laravel-array-str-functions-to-static-call.php';
+ public const LARAVEL_ARRAY_STR_FUNCTION_TO_STATIC_CALL = __DIR__ . '/../../config/sets/laravel-array-str-functions-to-static-call.php';
/**
* @var string
*/
- final public const LARAVEL_LEGACY_FACTORIES_TO_CLASSES = __DIR__ . '/../../config/sets/laravel-legacy-factories-to-classes.php';
+ public const LARAVEL_LEGACY_FACTORIES_TO_CLASSES = __DIR__ . '/../../config/sets/laravel-legacy-factories-to-classes.php';
}
diff --git a/src/ValueObject/AddArgumentDefaultValue.php b/src/ValueObject/AddArgumentDefaultValue.php
index e8a55283..98b11e52 100644
--- a/src/ValueObject/AddArgumentDefaultValue.php
+++ b/src/ValueObject/AddArgumentDefaultValue.php
@@ -8,12 +8,39 @@
final class AddArgumentDefaultValue
{
- public function __construct(
- private readonly string $class,
- private readonly string $method,
- private readonly int $position,
- private readonly mixed $defaultValue
- ) {
+ /**
+ * @readonly
+ * @var string
+ */
+ private $class;
+
+ /**
+ * @readonly
+ * @var string
+ */
+ private $method;
+
+ /**
+ * @readonly
+ * @var int
+ */
+ private $position;
+
+ /**
+ * @readonly
+ * @var mixed
+ */
+ private $defaultValue;
+
+ /**
+ * @param mixed $defaultValue
+ */
+ public function __construct(string $class, string $method, int $position, $defaultValue)
+ {
+ $this->class = $class;
+ $this->method = $method;
+ $this->position = $position;
+ $this->defaultValue = $defaultValue;
}
public function getObjectType(): ObjectType
@@ -31,7 +58,10 @@ public function getPosition(): int
return $this->position;
}
- public function getDefaultValue(): mixed
+ /**
+ * @return mixed
+ */
+ public function getDefaultValue()
{
return $this->defaultValue;
}
diff --git a/src/ValueObject/ServiceNameTypeAndVariableName.php b/src/ValueObject/ServiceNameTypeAndVariableName.php
index ca8a4c3e..719a0aa6 100644
--- a/src/ValueObject/ServiceNameTypeAndVariableName.php
+++ b/src/ValueObject/ServiceNameTypeAndVariableName.php
@@ -6,11 +6,29 @@
final class ServiceNameTypeAndVariableName
{
- public function __construct(
- private readonly string $serviceName,
- private readonly string $type,
- private readonly string $variableName
- ) {
+ /**
+ * @readonly
+ * @var string
+ */
+ private $serviceName;
+
+ /**
+ * @readonly
+ * @var string
+ */
+ private $type;
+
+ /**
+ * @readonly
+ * @var string
+ */
+ private $variableName;
+
+ public function __construct(string $serviceName, string $type, string $variableName)
+ {
+ $this->serviceName = $serviceName;
+ $this->type = $type;
+ $this->variableName = $variableName;
}
public function getServiceName(): string
diff --git a/src/ValueObject/TypeToTimeMethodAndPosition.php b/src/ValueObject/TypeToTimeMethodAndPosition.php
index 83b9d5d3..93520f95 100644
--- a/src/ValueObject/TypeToTimeMethodAndPosition.php
+++ b/src/ValueObject/TypeToTimeMethodAndPosition.php
@@ -8,11 +8,29 @@
final class TypeToTimeMethodAndPosition
{
- public function __construct(
- private readonly string $type,
- private readonly string $methodName,
- private readonly int $position
- ) {
+ /**
+ * @readonly
+ * @var string
+ */
+ private $type;
+
+ /**
+ * @readonly
+ * @var string
+ */
+ private $methodName;
+
+ /**
+ * @readonly
+ * @var int
+ */
+ private $position;
+
+ public function __construct(string $type, string $methodName, int $position)
+ {
+ $this->type = $type;
+ $this->methodName = $methodName;
+ $this->position = $position;
}
public function getObjectType(): ObjectType
diff --git a/stubs/Carbon/Carbon.php b/stubs/Carbon/Carbon.php
deleted file mode 100644
index 71c0e2bc..00000000
--- a/stubs/Carbon/Carbon.php
+++ /dev/null
@@ -1,29 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/Fixture/some_fixture.php.inc b/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/Fixture/some_fixture.php.inc
deleted file mode 100644
index bcb0d919..00000000
--- a/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/Fixture/some_fixture.php.inc
+++ /dev/null
@@ -1,43 +0,0 @@
-app['validator']->make('...');
- }
-}
-
-?>
------
-app['validator'];
- $validator = $validationFactory->make('...');
- }
-}
-
-?>
diff --git a/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/config/configured_rule.php b/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/config/configured_rule.php
deleted file mode 100644
index a838c7e5..00000000
--- a/tests/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(CallOnAppArrayAccessToStandaloneAssignRector::class);
-};
diff --git a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/AddArgumentDefaultValueRectorTest.php b/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/AddArgumentDefaultValueRectorTest.php
deleted file mode 100644
index 003c0b2b..00000000
--- a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/AddArgumentDefaultValueRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture.php.inc b/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture.php.inc
deleted file mode 100644
index e7a487bc..00000000
--- a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture2.php.inc b/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture2.php.inc
deleted file mode 100644
index f5d062cf..00000000
--- a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/Fixture/fixture2.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/config/configured_rule.php b/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/config/configured_rule.php
deleted file mode 100644
index b4befadc..00000000
--- a/tests/Rector/ClassMethod/AddArgumentDefaultValueRector/config/configured_rule.php
+++ /dev/null
@@ -1,15 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->ruleWithConfiguration(AddArgumentDefaultValueRector::class, [
- new AddArgumentDefaultValue('Illuminate\Contracts\Events\Dispatcher', 'listen', 1, null),
- ]);
-};
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/AddGenericReturnTypeToRelationsRectorTest.php b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/AddGenericReturnTypeToRelationsRectorTest.php
deleted file mode 100644
index 3eab5fd7..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/AddGenericReturnTypeToRelationsRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/empty-phpdoc.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/empty-phpdoc.php.inc
deleted file mode 100644
index a3c29254..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/empty-phpdoc.php.inc
+++ /dev/null
@@ -1,42 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/no-phpdoc.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/no-phpdoc.php.inc
deleted file mode 100644
index ffa906d4..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/no-phpdoc.php.inc
+++ /dev/null
@@ -1,40 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-existing-return.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-existing-return.php.inc
deleted file mode 100644
index 9e5112c4..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-existing-return.php.inc
+++ /dev/null
@@ -1,43 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-supported-return.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-supported-return.php.inc
deleted file mode 100644
index 0d3294f5..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-with-supported-return.php.inc
+++ /dev/null
@@ -1,43 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-without-return.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-without-return.php.inc
deleted file mode 100644
index 8a145a57..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/phpdoc-without-return.php.inc
+++ /dev/null
@@ -1,44 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-in-trait.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-in-trait.php.inc
deleted file mode 100644
index 5e5e0ffa..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-in-trait.php.inc
+++ /dev/null
@@ -1,50 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-class User extends Model
-{
- use AccountTrait;
-}
-
-?>
------
-
- */
- public function accounts(): HasMany
- {
- return $this->hasMany(Account::class);
- }
-}
-
-class User extends Model
-{
- use AccountTrait;
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-child-generics.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-child-generics.php.inc
deleted file mode 100644
index 3069de72..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-child-generics.php.inc
+++ /dev/null
@@ -1,40 +0,0 @@
-belongsTo(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): BelongsTo
- {
- return $this->belongsTo(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-existing-child-generic.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-existing-child-generic.php.inc
deleted file mode 100644
index e44dd060..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-with-existing-child-generic.php.inc
+++ /dev/null
@@ -1,43 +0,0 @@
-
- */
- public function accounts(): BelongsTo
- {
- return $this->belongsTo(Account::class);
- }
-}
-
-?>
------
-
- */
- public function accounts(): BelongsTo
- {
- return $this->belongsTo(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-without-return-type.php.inc b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-without-return-type.php.inc
deleted file mode 100644
index 9b7a1ccb..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/Fixture/relation-without-return-type.php.inc
+++ /dev/null
@@ -1,37 +0,0 @@
-hasMany(Account::class);
- }
-}
-
-?>
------
-hasMany(Account::class);
- }
-}
-
-?>
diff --git a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/config/configured_rule.php b/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/config/configured_rule.php
deleted file mode 100644
index db746339..00000000
--- a/tests/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddGenericReturnTypeToRelationsRector::class);
-};
diff --git a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php b/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php
deleted file mode 100644
index f4cd2580..00000000
--- a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/AddParentBootToModelClassMethodRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/fixture.php.inc b/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/fixture.php.inc
deleted file mode 100644
index c9d237bc..00000000
--- a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/on_the_last_line.php.inc b/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/on_the_last_line.php.inc
deleted file mode 100644
index 4a10668c..00000000
--- a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/Fixture/on_the_last_line.php.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/config/configured_rule.php b/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/config/configured_rule.php
deleted file mode 100644
index 5f7dd24e..00000000
--- a/tests/Rector/ClassMethod/AddParentBootToModelClassMethodRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddParentBootToModelClassMethodRector::class);
-};
diff --git a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/AddParentRegisterToEventServiceProviderRectorTest.php b/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/AddParentRegisterToEventServiceProviderRectorTest.php
deleted file mode 100644
index a7c57abf..00000000
--- a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/AddParentRegisterToEventServiceProviderRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/fixture.php.inc b/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/fixture.php.inc
deleted file mode 100644
index eee28d2a..00000000
--- a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/on_the_last_line.php.inc b/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/on_the_last_line.php.inc
deleted file mode 100644
index ce1e78e9..00000000
--- a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/Fixture/on_the_last_line.php.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/config/configured_rule.php b/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/config/configured_rule.php
deleted file mode 100644
index e790bc0d..00000000
--- a/tests/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddParentRegisterToEventServiceProviderRector::class);
-};
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-with-value-parameter.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-with-value-parameter.php.inc
deleted file mode 100644
index c602020a..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-with-value-parameter.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-
------
-
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-without-value-parameter.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-without-value-parameter.php.inc
deleted file mode 100644
index 7ea407de..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-accessors-without-value-parameter.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-first_name);
- }
-}
-?>
------
-first_name);
- });
- }
-}
-?>
\ No newline at end of file
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-and-preserve-doc-blocks.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-and-preserve-doc-blocks.php.inc
deleted file mode 100644
index 92d5f3f6..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-and-preserve-doc-blocks.php.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-first_name);
- }
-}
-?>
------
-first_name);
- });
- }
-}
-?>
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-multiple-mutators.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-multiple-mutators.php.inc
deleted file mode 100644
index 065d3918..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-multiple-mutators.php.inc
+++ /dev/null
@@ -1,42 +0,0 @@
-test = 'asdf';
- $this->attributes['first_name'] = strtolower($value);
- $this->attributes['first_name_upper'] = strtoupper($value);
- }
-}
-?>
------
-test = 'asdf';
- return ['first_name' => strtolower($value), 'first_name_upper' => strtoupper($value)];
- });
- }
-}
-?>
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators-and-accessors-in-the-same-method.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators-and-accessors-in-the-same-method.php.inc
deleted file mode 100644
index 21ee9257..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators-and-accessors-in-the-same-method.php.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-attributes['first_name'] = strtolower($value);
- $this->attributes['first_name_upper'] = strtoupper($value);
- }
-}
-?>
------
- strtolower($value), 'first_name_upper' => strtoupper($value)];
- });
- }
-}
-?>
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators.php.inc
deleted file mode 100644
index 2e235e36..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/migrate-mutators.php.inc
+++ /dev/null
@@ -1,37 +0,0 @@
-attributes['first_name'] = strtolower($value);
- }
-}
-?>
------
- strtolower($value)];
- });
- }
-}
-?>
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-are-not-eloquent-models.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-are-not-eloquent-models.php.inc
deleted file mode 100644
index ff5290bb..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-are-not-eloquent-models.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-have-no-parents.php.inc b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-have-no-parents.php.inc
deleted file mode 100644
index 2e5325e9..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/Fixture/skip-classes-that-have-no-parents.php.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/MigrateToSimplifiedAttributeRectorTest.php b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/MigrateToSimplifiedAttributeRectorTest.php
deleted file mode 100644
index fcef320c..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/MigrateToSimplifiedAttributeRectorTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-doTestFile($filePath);
- }
-
- /**
- * @return Iterator
- */
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/config/configured_rule.php b/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/config/configured_rule.php
deleted file mode 100644
index 2601381a..00000000
--- a/tests/Rector/ClassMethod/MigrateToSimplifiedAttributeRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(MigrateToSimplifiedAttributeRector::class);
-};
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php
deleted file mode 100644
index 3da07d4f..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/AddMockConsoleOutputFalseToConsoleTestsRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/existing_set_up.php.inc b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/existing_set_up.php.inc
deleted file mode 100644
index ef56deee..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/existing_set_up.php.inc
+++ /dev/null
@@ -1,44 +0,0 @@
-assertEquals('content', \trim(Artisan::output()));
- }
-}
-
-?>
------
-mockConsoleOutput = false;
- }
-
- public function test(): void
- {
- $this->assertEquals('content', \trim(Artisan::output()));
- }
-}
-
-?>
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/fixture.php.inc b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/fixture.php.inc
deleted file mode 100644
index 81be8f20..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,38 +0,0 @@
-assertEquals('content', \trim(Artisan::output()));
- }
-}
-
-?>
------
-mockConsoleOutput = false;
- }
- public function test(): void
- {
- $this->assertEquals('content', \trim(Artisan::output()));
- }
-}
-
-?>
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/new_artisan.php.inc b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/new_artisan.php.inc
deleted file mode 100644
index ca7b9915..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/new_artisan.php.inc
+++ /dev/null
@@ -1,38 +0,0 @@
-assertEquals('content', \trim((new Artisan())::output()));
- }
-}
-
-?>
------
-mockConsoleOutput = false;
- }
- public function test(): void
- {
- $this->assertEquals('content', \trim((new Artisan())::output()));
- }
-}
-
-?>
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/skip_already_set.php.inc b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/skip_already_set.php.inc
deleted file mode 100644
index 2069d659..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/Fixture/skip_already_set.php.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-mockConsoleOutput = false;
- }
-
- public function test(): void
- {
- $this->assertEquals('content', \trim(Artisan::output()));
- }
-}
diff --git a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/config/configured_rule.php b/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/config/configured_rule.php
deleted file mode 100644
index d524d808..00000000
--- a/tests/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddMockConsoleOutputFalseToConsoleTestsRector::class);
-};
diff --git a/tests/Rector/Class_/AnonymousMigrationsRector/AnonymousMigrationsRectorTest.php b/tests/Rector/Class_/AnonymousMigrationsRector/AnonymousMigrationsRectorTest.php
deleted file mode 100644
index 2f1eb6b7..00000000
--- a/tests/Rector/Class_/AnonymousMigrationsRector/AnonymousMigrationsRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/fixture.php.inc b/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/fixture.php.inc
deleted file mode 100644
index 8b4d6952..00000000
--- a/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-
------
-
diff --git a/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/skip_abstract_migration.php.inc b/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/skip_abstract_migration.php.inc
deleted file mode 100644
index 35ccd96c..00000000
--- a/tests/Rector/Class_/AnonymousMigrationsRector/Fixture/skip_abstract_migration.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AnonymousMigrationsRector::class);
-};
diff --git a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/fixture.php.inc b/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/fixture.php.inc
deleted file mode 100644
index cfc54a3e..00000000
--- a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-
diff --git a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/skip_false_defer.php.inc b/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/skip_false_defer.php.inc
deleted file mode 100644
index 8d9351af..00000000
--- a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/Fixture/skip_false_defer.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/config/configured_rule.php b/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/config/configured_rule.php
deleted file mode 100644
index 468295ec..00000000
--- a/tests/Rector/Class_/PropertyDeferToDeferrableProviderToRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(PropertyDeferToDeferrableProviderToRector::class);
-};
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/casts_property_not_exists.php.inc b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/casts_property_not_exists.php.inc
deleted file mode 100644
index ec98d0b8..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/casts_property_not_exists.php.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-
------
- 'datetime'];
-}
-
-?>
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/dates_exists_in_casts.php.inc b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/dates_exists_in_casts.php.inc
deleted file mode 100644
index 8fdf6a1a..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/dates_exists_in_casts.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 'date:Y-m',
- ];
-
- protected $dates = ['birthday'];
-}
-
-?>
------
- 'date:Y-m',
- ];
-}
-
-?>
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/fixture.php.inc b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/fixture.php.inc
deleted file mode 100644
index 5c08fa03..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 'integer',
- ];
-
- protected $dates = ['birthday', 'created_at'];
-}
-
-?>
------
- 'integer', 'birthday' => 'datetime', 'created_at' => 'datetime',
- ];
-}
-
-?>
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/UnifyModelDatesWithCastsRectorTest.php b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/UnifyModelDatesWithCastsRectorTest.php
deleted file mode 100644
index 755607bb..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/UnifyModelDatesWithCastsRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/config/configured_rule.php b/tests/Rector/Class_/UnifyModelDatesWithCastsRector/config/configured_rule.php
deleted file mode 100644
index 9a3c7ca9..00000000
--- a/tests/Rector/Class_/UnifyModelDatesWithCastsRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(UnifyModelDatesWithCastsRector::class);
-};
diff --git a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/FactoryFuncCallToStaticCallRectorTest.php b/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/FactoryFuncCallToStaticCallRectorTest.php
deleted file mode 100644
index b9a34d8a..00000000
--- a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/FactoryFuncCallToStaticCallRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/Fixture/fixture.php.inc
deleted file mode 100644
index 51133d7d..00000000
--- a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-
------
-
diff --git a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/config/configured_rule.php b/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/config/configured_rule.php
deleted file mode 100644
index caaabed0..00000000
--- a/tests/Rector/FuncCall/FactoryFuncCallToStaticCallRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(FactoryFuncCallToStaticCallRector::class);
-};
diff --git a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/fixture.php.inc
deleted file mode 100644
index ed5bf67a..00000000
--- a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-trans('value');
- }
-}
-
-?>
------
-trans('value');
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/skip_with_args.php.inc b/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/skip_with_args.php.inc
deleted file mode 100644
index ac866df5..00000000
--- a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/Fixture/skip_with_args.php.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/config/configured_rule.php b/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/config/configured_rule.php
deleted file mode 100644
index 9520208c..00000000
--- a/tests/Rector/FuncCall/HelperFuncCallToFacadeClassRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(HelperFuncCallToFacadeClassRector::class);
-};
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/fixture.php.inc b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/fixture.php.inc
deleted file mode 100644
index 22dbe30b..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-
------
-
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_as_if_condition.php.inc b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_as_if_condition.php.inc
deleted file mode 100644
index 1526b724..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_as_if_condition.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_object_call.php.inc b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_object_call.php.inc
deleted file mode 100644
index cd5490b8..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_object_call.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-dd();
-
- return true;
- }
-}
-
-?>
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_relevant_name.php.inc b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_relevant_name.php.inc
deleted file mode 100644
index 9762d81b..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/Fixture/skip_with_relevant_name.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/RemoveDumpDataDeadCodeRectorTest.php b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/RemoveDumpDataDeadCodeRectorTest.php
deleted file mode 100644
index 4dcc4d41..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/RemoveDumpDataDeadCodeRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/config/configured_rule.php b/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/config/configured_rule.php
deleted file mode 100644
index bb9b9708..00000000
--- a/tests/Rector/FuncCall/RemoveDumpDataDeadCodeRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RemoveDumpDataDeadCodeRector::class);
-};
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php
deleted file mode 100644
index b0cbafed..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/ChangeQueryWhereDateValueWithCarbonRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/bigger_than.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/bigger_than.php.inc
deleted file mode 100644
index 4b28ea99..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/bigger_than.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-whereDate('created_at', '>', Carbon::now());
- }
-}
-
-?>
------
-whereDate('created_at', '>=', $dateTime);
- $query->whereTime('created_at', '>=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/carbon_now_with_call.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/carbon_now_with_call.php.inc
deleted file mode 100644
index 743c9448..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/carbon_now_with_call.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-whereDate('created_at', '>', Carbon::now()->subDays(10000));
- }
-}
-
-?>
------
-subDays(10000);
- $query->whereDate('created_at', '>=', $dateTime);
- $query->whereTime('created_at', '>=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/date_time_only.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/date_time_only.php.inc
deleted file mode 100644
index 89143b46..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/date_time_only.php.inc
+++ /dev/null
@@ -1,32 +0,0 @@
-whereDate('created_at', '>', $dateTime);
- }
-}
-
-?>
------
-whereDate('created_at', '>=', $dateTime);
- $query->whereTime('created_at', '>=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/fixture.php.inc
deleted file mode 100644
index 9a7804f1..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,35 +0,0 @@
-whereDate('created_at', '<', Carbon::now());
- }
-}
-
-?>
------
-whereDate('created_at', '<=', $dateTime);
- $query->whereTime('created_at', '<=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_already_equal.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_already_equal.php.inc
deleted file mode 100644
index 30a17e83..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_already_equal.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-whereDate('created_at', '<=', $dateTime);
- }
-}
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_carbon_today.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_carbon_today.php.inc
deleted file mode 100644
index b10cbe15..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_carbon_today.php.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-whereDate('created_at', '>', Carbon::today());
- }
-}
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_two_args_only.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_two_args_only.php.inc
deleted file mode 100644
index 32761ebf..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/skip_two_args_only.php.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-whereDate('created_at', Carbon::now());
- }
-}
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/variable_date_time.php.inc b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/variable_date_time.php.inc
deleted file mode 100644
index 19754fb9..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/Fixture/variable_date_time.php.inc
+++ /dev/null
@@ -1,36 +0,0 @@
-whereDate('created_at', '<', $dateTime);
- }
-}
-
-?>
------
-whereDate('created_at', '<=', $dateTime);
- $query->whereTime('created_at', '<=', $dateTime);
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/config/configured_rule.php b/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/config/configured_rule.php
deleted file mode 100644
index 03a73ca3..00000000
--- a/tests/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ChangeQueryWhereDateValueWithCarbonRector::class);
-};
diff --git a/tests/Rector/MethodCall/FactoryApplyingStatesRector/FactoryApplyingStatesRectorTest.php b/tests/Rector/MethodCall/FactoryApplyingStatesRector/FactoryApplyingStatesRectorTest.php
deleted file mode 100644
index 4c415894..00000000
--- a/tests/Rector/MethodCall/FactoryApplyingStatesRector/FactoryApplyingStatesRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/FactoryApplyingStatesRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/FactoryApplyingStatesRector/Fixture/fixture.php.inc
deleted file mode 100644
index a472ce83..00000000
--- a/tests/Rector/MethodCall/FactoryApplyingStatesRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-states([]);
-$factory->state('delinquent');
-$factory->states('delinquent');
-$factory->states('premium', 'delinquent');
-
-?>
------
-delinquent();
-$factory->delinquent();
-$factory->premium()->delinquent();
-
-?>
diff --git a/tests/Rector/MethodCall/FactoryApplyingStatesRector/config/configured_rule.php b/tests/Rector/MethodCall/FactoryApplyingStatesRector/config/configured_rule.php
deleted file mode 100644
index c81f6292..00000000
--- a/tests/Rector/MethodCall/FactoryApplyingStatesRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(FactoryApplyingStatesRector::class);
-};
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/routes_action_string.php.inc b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/routes_action_string.php.inc
deleted file mode 100644
index 288657d5..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/routes_action_string.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-get('/', 'HomeController@home');
-
-?>
------
-get('/', ['uses' => 'HomeController@home']);
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_anonymous_function.php.inc b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_anonymous_function.php.inc
deleted file mode 100644
index b67cd7e3..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_anonymous_function.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-get('foo', function () {
- return 'Hello World';
-});
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_array.php.inc
deleted file mode 100644
index 41bfa4c0..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/Fixture/skip_routes_action_array.php.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-get('foo', []);
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/LumenRoutesStringActionToUsesArrayRectorTest.php b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/LumenRoutesStringActionToUsesArrayRectorTest.php
deleted file mode 100644
index c96a4337..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/LumenRoutesStringActionToUsesArrayRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/config/configured_rule.php b/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/config/configured_rule.php
deleted file mode 100644
index f7e10cab..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(LumenRoutesStringActionToUsesArrayRector::class);
-};
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/group_method_middleware_not_an_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/group_method_middleware_not_an_array.php.inc
deleted file mode 100644
index 4b4f5dd5..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/group_method_middleware_not_an_array.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-group(['middleware' => 'auth'], function () use ($router) {
- $router->get('/', 'HomeController@home');
-});
-
-?>
------
-group(['middleware' => ['auth']], function () use ($router) {
- $router->get('/', 'HomeController@home');
-});
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_not_an_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_not_an_array.php.inc
deleted file mode 100644
index 22c9dd0f..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_not_an_array.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-get('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->post('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->put('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->delete('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->options('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-$router->patch('/', ['uses' => 'HomeController@home', 'middleware' => 'auth']);
-
-?>
------
-get('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->post('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->put('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->delete('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->options('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->patch('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_string_array_notation.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_string_array_notation.php.inc
deleted file mode 100644
index c76fca30..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/routes_method_middleware_string_array_notation.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-group(['middleware' => 'first|second'], function () use ($router) {
- $router->get('/', ['uses' => 'HomeController@home', 'middleware' => 'third|fourth']);
-});
-
-?>
------
-group(['middleware' => ['first', 'second']], function () use ($router) {
- $router->get('/', ['uses' => 'HomeController@home', 'middleware' => ['third', 'fourth']]);
-});
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_group_method_middleware_an_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_group_method_middleware_an_array.php.inc
deleted file mode 100644
index a64d6238..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_group_method_middleware_an_array.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-group(['middleware' => ['auth']], function () use ($router) {
- $router->get('/', 'HomeController@home');
-});
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_routes_method_middleware_an_array.php.inc b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_routes_method_middleware_an_array.php.inc
deleted file mode 100644
index 4b385f7a..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/Fixture/skip_routes_method_middleware_an_array.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-get('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->post('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->put('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->delete('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->options('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-$router->patch('/', ['uses' => 'HomeController@home', 'middleware' => ['auth']]);
-
-?>
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/LumenRoutesStringMiddlewareToArrayRectorTest.php b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/LumenRoutesStringMiddlewareToArrayRectorTest.php
deleted file mode 100644
index 28849523..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/LumenRoutesStringMiddlewareToArrayRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/config/configured_rule.php b/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/config/configured_rule.php
deleted file mode 100644
index cdc53ba7..00000000
--- a/tests/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(LumenRoutesStringMiddlewareToArrayRector::class);
-};
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture.php.inc
deleted file mode 100644
index fc5b8301..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-back()->with('error', 'Incorrect credential.');
- }
-
- public function update()
- {
- return Redirect::back()->with('error', 'Incorrect credential.');
- }
-}
-
-?>
------
-with('error', 'Incorrect credential.');
- }
-
- public function update()
- {
- return back()->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_arguments.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_arguments.php.inc
deleted file mode 100644
index bc0348f2..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_arguments.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-back()->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_object_call.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_object_call.php.inc
deleted file mode 100644
index 6427cf1c..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_object_call.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-back()->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_only_back.php.inc b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_only_back.php.inc
deleted file mode 100644
index 88b173fc..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/Fixture/skip_with_only_back.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/RedirectBackToBackHelperRectorTest.php b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/RedirectBackToBackHelperRectorTest.php
deleted file mode 100644
index ea6b819e..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/RedirectBackToBackHelperRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/config/configured_rule.php b/tests/Rector/MethodCall/RedirectBackToBackHelperRector/config/configured_rule.php
deleted file mode 100644
index d1285ae5..00000000
--- a/tests/Rector/MethodCall/RedirectBackToBackHelperRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RedirectBackToBackHelperRector::class);
-};
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/fixture.php.inc b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/fixture.php.inc
deleted file mode 100644
index 2d8c9d1b..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-route('home')->with('error', 'Incorrect credential.');
- }
-
- public function update()
- {
- return Redirect::route('home')->with('error', 'Incorrect credential.');
- }
-}
-
-?>
------
-with('error', 'Incorrect credential.');
- }
-
- public function update()
- {
- return to_route('home')->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_object_call.php.inc b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_object_call.php.inc
deleted file mode 100644
index d2989286..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_object_call.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-route('home')->with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_only_back.php.inc b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_only_back.php.inc
deleted file mode 100644
index 1f20c6f4..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/Fixture/skip_with_only_back.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-with('error', 'Incorrect credential.');
- }
-}
-
-?>
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/RedirectRouteToToRouteHelperRectorTest.php b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/RedirectRouteToToRouteHelperRectorTest.php
deleted file mode 100644
index c6733ee7..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/RedirectRouteToToRouteHelperRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/config/configured_rule.php b/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/config/configured_rule.php
deleted file mode 100644
index 066c7e0b..00000000
--- a/tests/Rector/MethodCall/RedirectRouteToToRouteHelperRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RedirectRouteToToRouteHelperRector::class);
-};
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/FactoryDefinitionRectorTest.php b/tests/Rector/Namespace_/FactoryDefinitionRector/FactoryDefinitionRectorTest.php
deleted file mode 100644
index 3493b4c5..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/FactoryDefinitionRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/fixture.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/fixture.php.inc
deleted file mode 100644
index 9a0b84a5..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,77 +0,0 @@
-define(Model::class, function ($faker) {
- return [
- 'name' => $faker->name,
- 'email' => $faker->unique()->safeEmail,
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
- ];
-});
-
-$factory->state(Model::class, 'address', function ($faker) {
- return [
- 'address' => $faker->address,
- ];
-});
-
-$factory->state(Model::class, 'delinquent', [
- 'account_status' => 'delinquent',
-]);
-
-$factory->afterMaking(Model::class, function (Model $user, $faker) {
- $user->name = $faker->name;
-});
-
-$factory->afterCreating(Model::class, function ($user, $faker) {
- $user->name = $faker->name;
- $user->accounts()->save(factory(\App\Account::class)->make());
-});
-
-?>
------
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
- ];
- }
- public function address()
- {
- return $this->state(function () {
- return [
- 'address' => $this->faker->address,
- ];
- });
- }
- public function delinquent()
- {
- return $this->state([
- 'account_status' => 'delinquent',
- ]);
- }
- public function configure()
- {
- return $this->afterMaking(function (Model $user) {
- $user->name = $this->faker->name;
- })->afterCreating(function ($user) {
- $user->name = $this->faker->name;
- $user->accounts()->save(factory(\App\Account::class)->make());
- });
- }
-}
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/mutli_definition.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/mutli_definition.php.inc
deleted file mode 100644
index 60b93583..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/mutli_definition.php.inc
+++ /dev/null
@@ -1,61 +0,0 @@
-define(User::class, function (\Faker\Generator $faker) {
- return [
- 'name' => $faker->name,
- 'email' => $faker->unique()->safeEmail,
- 'email_verified_at' => now(),
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
- 'remember_token' => Str::random(10),
- ];
-});
-
-$factory->define(Account::class, function (\Faker\Generator $faker) {
- return [
- 'account' => Str::random(10),
- ];
-});
-
-?>
------
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- 'email_verified_at' => now(),
- 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
- 'remember_token' => Str::random(10),
- ];
- }
-}
-
-class AccountFactory extends \Illuminate\Database\Eloquent\Factories\Factory
-{
- protected $model = Account::class;
- public function definition()
- {
- return [
- 'account' => Str::random(10),
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/skip_reassign_factory.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/skip_reassign_factory.php.inc
deleted file mode 100644
index 11e947c3..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/skip_reassign_factory.php.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-define(\App\User::class, function (\Faker\Generator $faker) {
- return [];
-});
-
-?>
------
-define(\App\User::class, function (\Faker\Generator $faker) {
- return [];
-});
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_args.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_args.php.inc
deleted file mode 100644
index 9e483649..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_args.php.inc
+++ /dev/null
@@ -1,53 +0,0 @@
-define(Model::class, function () {
- // ...
-});
-
-$factory->state(Model::class, 'address', function () {
- // ...
-});
-
-$factory->afterMaking(Model::class, function (Model $user) {
- // ...
-});
-
-$factory->afterCreating(Model::class, function () {
- // ...
-});
-
-?>
------
-state(function () {
- // ...
- });
- }
- public function configure()
- {
- return $this->afterMaking(function (Model $user) {
- // ...
- })->afterCreating(function () {
- // ...
- });
- }
-}
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_namespace.php.inc b/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_namespace.php.inc
deleted file mode 100644
index e3d23ec1..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Fixture/without_namespace.php.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-define(RectorLaravel\Tests\Rector\Namespace_\FactoryDefinitionRector\Source\Model::class, function ($faker) {
- return [
- 'name' => $faker->name,
- 'email' => $faker->unique()->safeEmail,
- ];
-});
-
-?>
------
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- ];
- }
-}
-
-?>
diff --git a/tests/Rector/Namespace_/FactoryDefinitionRector/Source/Model.php b/tests/Rector/Namespace_/FactoryDefinitionRector/Source/Model.php
deleted file mode 100644
index f116d54e..00000000
--- a/tests/Rector/Namespace_/FactoryDefinitionRector/Source/Model.php
+++ /dev/null
@@ -1,8 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(FactoryDefinitionRector::class);
-};
diff --git a/tests/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php b/tests/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php
deleted file mode 100644
index d141bc38..00000000
--- a/tests/Rector/New_/AddGuardToLoginEventRector/AddGuardToLoginEventRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/fixture.php.inc b/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/fixture.php.inc
deleted file mode 100644
index ea972771..00000000
--- a/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,32 +0,0 @@
-
------
-
diff --git a/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/skip_already.php.inc b/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/skip_already.php.inc
deleted file mode 100644
index 07844356..00000000
--- a/tests/Rector/New_/AddGuardToLoginEventRector/Fixture/skip_already.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(AddGuardToLoginEventRector::class);
-};
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/fixture.php.inc b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/fixture.php.inc
deleted file mode 100644
index 48a6447d..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-something();
-optional($value)->something(true);
-optional($value)->foo;
-optional(request()->user())->getKey();
-
-?>
------
-something();
-$value?->something(true);
-$value?->foo;
-request()->user()?->getKey();
-
-?>
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_callback.php.inc b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_callback.php.inc
deleted file mode 100644
index 5c29e22b..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_callback.php.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-something();
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_macro_methods.php.inc b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_macro_methods.php.inc
deleted file mode 100644
index bfcd05da..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_macro_methods.php.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-present()->something();
-
-?>
------
-present()->something();
-
-?>
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_values.php.inc b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_values.php.inc
deleted file mode 100644
index df26b9f4..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Fixture/skip_values.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-something();
-optional(null)->something();
-optional(5)->something();
-optional(['present' => 'here'])->missing;
-optional((object) ['foo' => 'bar'])->foo;
-optional((object) ['foo' => 'bar'])->bar;
-
-?>
------
-something();
-optional(null)->something();
-optional(5)->something();
-optional(['present' => 'here'])->missing;
-((object) ['foo' => 'bar'])?->foo;
-((object) ['foo' => 'bar'])?->bar;
-
-?>
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/OptionalToNullsafeOperatorRectorTest.php b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/OptionalToNullsafeOperatorRectorTest.php
deleted file mode 100644
index 6fa85b1c..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/OptionalToNullsafeOperatorRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Source/SomeClass.php b/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Source/SomeClass.php
deleted file mode 100644
index 2079826d..00000000
--- a/tests/Rector/PropertyFetch/OptionalToNullsafeOperatorRector/Source/SomeClass.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
- $rectorConfig->ruleWithConfiguration(
- OptionalToNullsafeOperatorRector::class,
- [
- OptionalToNullsafeOperatorRector::EXCLUDE_METHODS => ['present'],
- ],
- );
-};
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/fixture.php.inc b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/fixture.php.inc
deleted file mode 100644
index 50527503..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,29 +0,0 @@
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- ];
- }
-}
-?>
------
- fake()->name,
- 'email' => fake()->unique()->safeEmail,
- ];
- }
-}
-?>
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_already.php.inc b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_already.php.inc
deleted file mode 100644
index e229948e..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_already.php.inc
+++ /dev/null
@@ -1,15 +0,0 @@
- fake()->name,
- 'email' => fake()->unique()->safeEmail,
- 'test' => $this->test,
- ];
- }
-}
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_other_than_model_factories.php.inc b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_other_than_model_factories.php.inc
deleted file mode 100644
index 14a3e317..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_other_than_model_factories.php.inc
+++ /dev/null
@@ -1,12 +0,0 @@
- $this->faker->name,
- 'email' => $this->faker->unique()->safeEmail,
- ];
- }
-}
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_spatie_enum_helper.php.inc b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_spatie_enum_helper.php.inc
deleted file mode 100644
index 29b27edb..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/Fixture/skip_spatie_enum_helper.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
- $this->faker->randomEnum(SomeEnum::class),
- ];
- }
-}
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/ReplaceFakerInstanceWithHelperRectorTest.php b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/ReplaceFakerInstanceWithHelperRectorTest.php
deleted file mode 100644
index d98eb7cb..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/ReplaceFakerInstanceWithHelperRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/config/configured_rule.php b/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/config/configured_rule.php
deleted file mode 100644
index 245e8c65..00000000
--- a/tests/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector/config/configured_rule.php
+++ /dev/null
@@ -1,12 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(ReplaceFakerInstanceWithHelperRector::class);
-};
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/cache_static_call.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/cache_static_call.php.inc
deleted file mode 100644
index 37dd1884..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/cache_static_call.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/fixture.php.inc
deleted file mode 100644
index cdbe08fe..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,61 +0,0 @@
-arrayStore = $arrayStore;
- }
-
- public function run()
- {
- \Illuminate\Support\Facades\Cache::put('key', 'value', 60);
-
- $this->arrayStore->put('key', 'value', 60);
-
- $seconds = 60;
- $this->arrayStore->putMany(['key' => 'value'], $seconds);
- }
-}
-
-?>
------
-arrayStore = $arrayStore;
- }
-
- public function run()
- {
- \Illuminate\Support\Facades\Cache::put('key', 'value', 60 * 60);
-
- $this->arrayStore->put('key', 'value', 60 * 60);
-
- $seconds = 60;
- $this->arrayStore->putMany(['key' => 'value'], $seconds * 60);
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/only_one.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/only_one.php.inc
deleted file mode 100644
index 9e82b3a8..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/only_one.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/remember_cache.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/remember_cache.php.inc
deleted file mode 100644
index cf9686b0..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/remember_cache.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-remember('key', 'value', 60);
- }
-}
-
-?>
------
-remember('key', 'value', 60 * 60);
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/skip_call.php.inc b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/skip_call.php.inc
deleted file mode 100644
index fd63f735..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/Fixture/skip_call.php.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/config/configured_rule.php b/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/config/configured_rule.php
deleted file mode 100644
index eebd204f..00000000
--- a/tests/Rector/StaticCall/MinutesToSecondsInCacheRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(MinutesToSecondsInCacheRector::class);
-};
diff --git a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Fixture/fixture.php.inc
deleted file mode 100644
index 5c880be9..00000000
--- a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php b/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php
deleted file mode 100644
index 32749158..00000000
--- a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/Redirect301ToPermanentRedirectRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/config/configured_rule.php b/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/config/configured_rule.php
deleted file mode 100644
index f5e23de7..00000000
--- a/tests/Rector/StaticCall/Redirect301ToPermanentRedirectRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(Redirect301ToPermanentRedirectRector::class);
-};
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture.php.inc
deleted file mode 100644
index e2ef8848..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 'required']);
- }
-}
-
-?>
------
-validate(['some_attribute' => 'required']);
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture_alias.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture_alias.php.inc
deleted file mode 100644
index a91e26cd..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture_alias.php.inc
+++ /dev/null
@@ -1,31 +0,0 @@
- 'required']);
- }
-}
-
-?>
------
-validate(['some_attribute' => 'required']);
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function.php.inc
deleted file mode 100644
index b8a8e14e..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-get('foo');
- }
-}
-
-?>
------
-get('foo');
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function2.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function2.php.inc
deleted file mode 100644
index 1504c4ed..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function2.php.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-
------
-input('foo');
- }
-}
-
-?>
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function_extends.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function_extends.php.inc
deleted file mode 100644
index f8ec08fc..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function_extends.php.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function_trait.php.inc b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function_trait.php.inc
deleted file mode 100644
index ea7d8e68..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/function_trait.php.inc
+++ /dev/null
@@ -1,45 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php
deleted file mode 100644
index e92cd834..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/RequestStaticValidateToInjectRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/config/configured_rule.php b/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/config/configured_rule.php
deleted file mode 100644
index a34e62d7..00000000
--- a/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/config/configured_rule.php
+++ /dev/null
@@ -1,13 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
-
- $rectorConfig->rule(RequestStaticValidateToInjectRector::class);
-};
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/fixture.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/fixture.php.inc
deleted file mode 100644
index ebb8f606..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/fixture.php.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-options('/users', 'SomeController@index');
-
-?>
------
-options('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index']);
-
-?>
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/named_route.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/named_route.php.inc
deleted file mode 100644
index fe295bcf..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/named_route.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
- 'users.index', 'uses' => 'SomeController@index']);
-Route::get('/users', ['uses' => 'SomeController@index', 'as' => 'users.index']);
-
-?>
------
-name('users.index');
-Route::get('/users', [\RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source\SomeController::class, 'index'])->name('users.index');
-
-?>
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_method_not_exists.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_method_not_exists.php.inc
deleted file mode 100644
index 27e24cdf..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_method_not_exists.php.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_multiple_at.php.inc b/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_multiple_at.php.inc
deleted file mode 100644
index 2125fba1..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Fixture/skip_multiple_at.php.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-
------
-
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/RouteActionCallableRectorTest.php b/tests/Rector/StaticCall/RouteActionCallableRector/RouteActionCallableRectorTest.php
deleted file mode 100644
index e40245e1..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/RouteActionCallableRectorTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-doTestFile($filePath);
- }
-
- public static function provideData(): Iterator
- {
- return self::yieldFilesFromDirectory(__DIR__ . '/Fixture');
- }
-
- public function provideConfigFilePath(): string
- {
- return __DIR__ . '/config/configured_rule.php';
- }
-}
diff --git a/tests/Rector/StaticCall/RouteActionCallableRector/Source/SomeController.php b/tests/Rector/StaticCall/RouteActionCallableRector/Source/SomeController.php
deleted file mode 100644
index 406774e0..00000000
--- a/tests/Rector/StaticCall/RouteActionCallableRector/Source/SomeController.php
+++ /dev/null
@@ -1,11 +0,0 @@
-import(__DIR__ . '/../../../../../config/config.php');
- $rectorConfig->ruleWithConfiguration(RouteActionCallableRector::class, [
- RouteActionCallableRector::NAMESPACE => 'RectorLaravel\Tests\Rector\StaticCall\RouteActionCallableRector\Source',
- ]);
-};