mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
[fixtures] Enable validate-fixture-skip-naming check (#5081)
* [fixtures] Enable validate-fixture-skip-naming check * full path vendor vendor/symplify/easy-testing/bin/easy-testing validate-fixture-skip-naming rules tests * 21 files * more fixture * various fix * various fix * more fixtures * apply to packages rules tests utils * more fixtures * more fixtures * more fixtures * more fixtures * more fixtures * more fixtures * more fixtures * fixture fix * done * fixture fix
This commit is contained in:
parent
17f47bd5c4
commit
e1c89d17f6
6
.github/workflows/code_analysis.yaml
vendored
6
.github/workflows/code_analysis.yaml
vendored
@ -34,9 +34,9 @@ jobs:
|
||||
run: bin/rector validate-fixture-classname --ansi
|
||||
|
||||
# make sure skipped files have "skip_" prefix
|
||||
# -
|
||||
# name: Validate Fixtures skip file prefix
|
||||
# run: vendor/bin/easy-testing validate-fixture-skip-naming rules tests
|
||||
-
|
||||
name: Validate Fixtures skip file prefix
|
||||
run: vendor/symplify/easy-testing/bin/easy-testing validate-fixture-skip-naming rules tests
|
||||
|
||||
-
|
||||
name: 'Validate Sets Loading'
|
||||
|
@ -183,7 +183,7 @@
|
||||
"rules/coding-style/tests/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source/YetAnotherClass.php",
|
||||
"rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Source/i_throw_an_exception.func.php",
|
||||
"rules/dead-code/tests/Rector/MethodCall/RemoveDefaultArgumentValueRector/Source/UserDefined.php",
|
||||
"rules/naming/tests/ValueObjectFactory/PropertyRenameFactory/Fixture/SomeClass.php.inc",
|
||||
"rules/naming/tests/ValueObjectFactory/PropertyRenameFactory/Fixture/skip_some_class.php.inc",
|
||||
"rules/renaming/tests/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Source/ChangeMeAnotherNamespace.php",
|
||||
"rules/renaming/tests/Rector/Name/RenameClassRector/Source/SkipClassImportingSameName.php",
|
||||
"rules/renaming/tests/Rector/Name/RenameClassRector/Source/SkipSameNamedInterface.php",
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector\Fixture;
|
||||
|
||||
class Fixture3
|
||||
class SkipFixture3
|
||||
{
|
||||
public function isntEmptyArray($values): bool
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\BooleanNot\SimplifyDeMorganBinaryRector\Fixture;
|
||||
|
||||
class BinaryAnd
|
||||
class SkipBinaryAnd
|
||||
{
|
||||
public static function chr_to_decimal(string $char): int
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\FuncCall\AddPregQuoteDelimiterRector\Fixture;
|
||||
|
||||
class UnknownDelimiter
|
||||
class SkipUnknownDelimiter
|
||||
{
|
||||
public function test()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\FuncCall\SetTypeToCastRector\Fixture;
|
||||
|
||||
class Assign
|
||||
class SkipAssign
|
||||
{
|
||||
public function run($foo)
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\Identical\SimplifyConditionsRector\Fixture;
|
||||
|
||||
class DualNull
|
||||
class SkipDualNull
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\If_\CombineIfRector\Fixture;
|
||||
|
||||
class ChildElse
|
||||
class SkipChildElse
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\If_\CombineIfRector\Fixture;
|
||||
|
||||
class ChildElseif
|
||||
class SkipChildElseif
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\If_\CombineIfRector\Fixture;
|
||||
|
||||
class MoreStatements
|
||||
class SkipMoreStatements
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\If_\CombineIfRector\Fixture;
|
||||
|
||||
class ParentElse
|
||||
class SkipParentElse
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\If_\CombineIfRector\Fixture;
|
||||
|
||||
class ParentElseif
|
||||
class SkipParentElseif
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -4,7 +4,7 @@ namespace Rector\CodeQuality\Tests\Rector\If_\ExplicitBoolCompareRector\Fixture;
|
||||
|
||||
use PhpParser\Node\Stmt\If_;
|
||||
|
||||
final class IfElse
|
||||
final class SkipIfElse
|
||||
{
|
||||
public function run(If_ $if)
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfElseToTernaryRector\Fixture;
|
||||
|
||||
class TooLong
|
||||
class SkipTooLong
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -5,7 +5,7 @@ namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRector\Fixture
|
||||
use PHPStan\Type\ConstantScalarType;
|
||||
use PHPStan\Type\NullType;
|
||||
|
||||
class BooleanNullableButNonTruableType
|
||||
class ConstantScalarType_
|
||||
{
|
||||
public function run(ConstantScalarType $type)
|
||||
{
|
||||
@ -30,7 +30,7 @@ namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRector\Fixture
|
||||
use PHPStan\Type\ConstantScalarType;
|
||||
use PHPStan\Type\NullType;
|
||||
|
||||
class BooleanNullableButNonTruableType
|
||||
class ConstantScalarType_
|
||||
{
|
||||
public function run(ConstantScalarType $type)
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRector\Fixture;
|
||||
|
||||
class NullableToFalse
|
||||
class SkipNullableToFalse
|
||||
{
|
||||
public function run(string $someString)
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Fixture;
|
||||
|
||||
class Fixture2
|
||||
class SkipFixture2
|
||||
{
|
||||
private $noError = 'noError';
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodingStyle\Tests\Rector\ClassMethod\ReturnArrayClassMethodToYieldRector\Fixture;
|
||||
|
||||
final class ShouldNotApplyWhenClassNameDiffers
|
||||
final class SkipShouldNotApplyWhenClassNameDiffers
|
||||
{
|
||||
public function getSubscribedEvents(): array
|
||||
{
|
@ -4,7 +4,7 @@ namespace Rector\CodingStyle\Tests\Rector\ClassMethod\ReturnArrayClassMethodToYi
|
||||
|
||||
use Rector\CodingStyle\Tests\Rector\ClassMethod\ReturnArrayClassMethodToYieldRector\Source\ParentTestCase;
|
||||
|
||||
final class ShouldNotApplyWhenMethodNameDiffers extends ParentTestCase
|
||||
final class SkipShouldNotApplyWhenMethodNameDiffers extends ParentTestCase
|
||||
{
|
||||
public function getSomePublicData(): array
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\CodingStyle\Tests\Rector\If_\NullableCompareToNullRector\Fixture;
|
||||
|
||||
class NullableScalars
|
||||
class SkipNullableScalars
|
||||
{
|
||||
public function run(?array $arrayOrNull)
|
||||
{
|
@ -5,7 +5,7 @@ namespace Rector\CodingStyle\Tests\Rector\Namespace_\ImportFullyQualifiedNamesRe
|
||||
use Elasticr\FoRest\Request\ApiRequest;
|
||||
use Tests\Elasticr\FoRest\Request\ArticleRequest;
|
||||
|
||||
final class AlreadyClassExists
|
||||
final class SkipAlreadyClassExists
|
||||
{
|
||||
/**
|
||||
* @return \Tests\Elasticr\FoRest\App\Request\AlreadyClassExists
|
@ -9,7 +9,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
* @ORM\Entity()
|
||||
* @ORM\InheritanceType("SINGLE_TABLE")
|
||||
*/
|
||||
class ShouldKeepAllDocBlocksAnnotationsParameters
|
||||
class SkipShouldKeepAllDocBlocksAnnotationsParameters
|
||||
{
|
||||
public function nothing(): void
|
||||
{
|
@ -4,7 +4,7 @@ namespace Rector\CodingStyle\Tests\Rector\Namespace_\ImportFullyQualifiedNamesRe
|
||||
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class SymfonyRoute
|
||||
class SkipSymfonyRoute
|
||||
{
|
||||
/**
|
||||
* @Route(
|
@ -4,7 +4,7 @@ namespace Rector\CodingStyle\Tests\Rector\Use_\RemoveUnusedAliasRector\Fixture;
|
||||
|
||||
use Rector\CodingStyle\Tests\Rector\Use_\RemoveUnusedAliasRector\Source\Mapping as ORM;
|
||||
|
||||
class DocBlock
|
||||
class SkipDocBlock
|
||||
{
|
||||
/**
|
||||
* @ORM\Id
|
@ -5,7 +5,7 @@ namespace Rector\CodingStyle\Tests\Rector\Use_\RemoveUnusedAliasRector\Fixture;
|
||||
use DateTime as PhpDateTime;
|
||||
use DateTimeImmutable as PhpDateTimeImmutable;
|
||||
|
||||
class DocBlockUniontype
|
||||
class SkipDocBlockUniontype
|
||||
{
|
||||
/**
|
||||
* @var PhpDateTime|bool
|
@ -6,7 +6,7 @@ use Nette\Utils\FileSystem as NetteFileSystem;
|
||||
use Symfony\Component\Filesystem\Filesystem;
|
||||
use Symplify\ConsoleColorDiff\Console\Output\ConsoleDiffer;
|
||||
|
||||
final class NetteSymfonyFilesystemAlias
|
||||
final class SkipNetteSymfonyFilesystemAlias
|
||||
{
|
||||
/**
|
||||
* @var Filesystem
|
@ -5,7 +5,7 @@ namespace Rector\CodingStyle\Tests\Rector\Use_\RemoveUnusedAliasRector\Fixture;
|
||||
use Rector\CodingStyle\Tests\Rector\Use_\RemoveUnusedAliasRector\Source\AbstractKernel as BaseKernel;
|
||||
use Rector\CodingStyle\Tests\Rector\Use_\RemoveUnusedAliasRector\Source\Another\AbstractKernel;
|
||||
|
||||
class Used extends BaseKernel
|
||||
class SkipUsed extends BaseKernel
|
||||
{
|
||||
public function run(BaseKernel $baseKernel, AbstractKernel $abstractKernel)
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\Assign\RemoveDoubleAssignRector\Fixture;
|
||||
|
||||
class Calls
|
||||
class SkipCalls
|
||||
{
|
||||
public function functions()
|
||||
{
|
@ -6,7 +6,7 @@ use PhpParser\Node\Expr\StaticCall;
|
||||
use PhpParser\Node\Identifier;
|
||||
use PhpParser\Node\Name;
|
||||
|
||||
class InsideIfElse
|
||||
class SkipInsideIfElse
|
||||
{
|
||||
public function callMe(StaticCall $staticCall, $newMethod): StaticCall
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\BooleanAnd\RemoveAndTrueRector\Fixture;
|
||||
|
||||
class KeepSomething
|
||||
class Something
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
@ -18,7 +18,7 @@ class KeepSomething
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\BooleanAnd\RemoveAndTrueRector\Fixture;
|
||||
|
||||
class KeepSomething
|
||||
class Something
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\ClassConst\RemoveUnusedPrivateConstantRector\Fixture;
|
||||
|
||||
final class UsedInTrait
|
||||
final class SkipUsedInTrait
|
||||
{
|
||||
use aTrait;
|
||||
private const SOME_CONSTANT = 5;
|
@ -11,7 +11,7 @@ class StrictPapa
|
||||
|
||||
}
|
||||
|
||||
class ParentRequired extends StrictPapa
|
||||
class SkipParentRequired extends StrictPapa
|
||||
{
|
||||
public function getIt($value, $value2)
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\ClassMethod\RemoveUnusedPrivateMethodRector\Fixture;
|
||||
|
||||
final class PrivateConstructor
|
||||
final class SkipPrivateConstructor
|
||||
{
|
||||
private function __construct()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\FunctionLike\RemoveOverriddenValuesRector\Fixture;
|
||||
|
||||
final class Issue1093
|
||||
final class SkipIssue1093
|
||||
{
|
||||
public function run($themes = [])
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\FunctionLike\RemoveOverriddenValuesRector\Fixture;
|
||||
|
||||
final class Issue1286
|
||||
final class SkipIssue1286
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -3,7 +3,7 @@
|
||||
namespace Rector\DeadCode\Tests\Rector\Plus\RemoveDeadZeroAndOneOperationRector\Fixture;
|
||||
|
||||
|
||||
class NoUnintended
|
||||
class SkipNoUnintended
|
||||
{
|
||||
private function do(int $var)
|
||||
{
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class SkipDoctrineEntityProperty
|
||||
class DoctrineEntityProperty
|
||||
{
|
||||
private $unusedProperty;
|
||||
|
||||
@ -28,7 +28,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class SkipDoctrineEntityProperty
|
||||
class DoctrineEntityProperty
|
||||
{
|
||||
/**
|
||||
* @ORM\Column
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\Property\RemoveUnusedPrivatePropertyRector\Fixture;
|
||||
|
||||
class KeepFunctionCall
|
||||
class FunctionCall
|
||||
{
|
||||
private $prop;
|
||||
|
||||
@ -22,7 +22,7 @@ class KeepFunctionCall
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\Property\RemoveUnusedPrivatePropertyRector\Fixture;
|
||||
|
||||
class KeepFunctionCall
|
||||
class FunctionCall
|
||||
{
|
||||
public function doThing()
|
||||
{
|
@ -8,7 +8,7 @@ Trait SomeTrait {
|
||||
return $this->a;
|
||||
}
|
||||
}
|
||||
class WithTrait
|
||||
class SkipWithTrait
|
||||
{
|
||||
use SomeTrait;
|
||||
private $a;
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\PropertyProperty\RemoveNullPropertyInitializationRector\Fixture;
|
||||
|
||||
class TypedPropertyClass
|
||||
class SkipTypedPropertyClass
|
||||
{
|
||||
private ?string $lowerCase = null;
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\StaticCall\RemoveParentCallWithoutParentRector\Fixture;
|
||||
|
||||
class AnonymousClassWithParent
|
||||
class SkipAnonymousClassWithParent
|
||||
{
|
||||
public function foo()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\StaticCall\RemoveParentCallWithoutParentRector\Fixture;
|
||||
|
||||
class EdgeCase extends AbstractFilterFactory
|
||||
class SkipEdgeCase extends AbstractFilterFactory
|
||||
{
|
||||
public function getOrderByIdDesc()
|
||||
{
|
@ -6,7 +6,7 @@ namespace Rector\Defluent\Tests\NodeFactory\FluentChainMethodCallRootExtractor\F
|
||||
|
||||
use Rector\Defluent\Tests\NodeFactory\FluentChainMethodCallRootExtractor\Source\AnotherTypeFactory;
|
||||
|
||||
final class IsFactoryVariableDoubleMethodCall
|
||||
final class SkipIsFactoryVariableDoubleMethodCall
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -6,7 +6,7 @@ namespace Rector\Defluent\Tests\NodeFactory\FluentChainMethodCallRootExtractor\F
|
||||
|
||||
use Rector\Defluent\Tests\NodeFactory\FluentChainMethodCallRootExtractor\Source\SomeClassWithFluentMethods;
|
||||
|
||||
final class ReturnNewDoubleMethodCall
|
||||
final class SkipReturnNewDoubleMethodCall
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -6,7 +6,7 @@ namespace Rector\Defluent\Tests\NodeFactory\FluentChainMethodCallRootExtractor\F
|
||||
|
||||
use Rector\Defluent\Tests\NodeFactory\FluentChainMethodCallRootExtractor\Source\SomeClassWithFluentMethods;
|
||||
|
||||
final class VariableDoubleMethodCall
|
||||
final class SkipVariableDoubleMethodCall
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -35,7 +35,7 @@ final class FluentChainMethodCallRootExtractorTest extends AbstractKernelTestCas
|
||||
public function test(): void
|
||||
{
|
||||
$assignAndRootExpr = $this->parseFileAndCreateAssignAndRootExprForSure(
|
||||
__DIR__ . '/Fixture/variable_double_method_call.php.inc'
|
||||
__DIR__ . '/Fixture/skip_variable_double_method_call.php.inc'
|
||||
);
|
||||
|
||||
$this->assertFalse($assignAndRootExpr->isFirstCallFactory());
|
||||
@ -46,7 +46,7 @@ final class FluentChainMethodCallRootExtractorTest extends AbstractKernelTestCas
|
||||
public function testFactory(): void
|
||||
{
|
||||
$assignAndRootExpr = $this->parseFileAndCreateAssignAndRootExprForSure(
|
||||
__DIR__ . '/Fixture/is_factory_variable_double_method_call.php.inc'
|
||||
__DIR__ . '/Fixture/skip_is_factory_variable_double_method_call.php.inc'
|
||||
);
|
||||
|
||||
$this->assertTrue($assignAndRootExpr->isFirstCallFactory());
|
||||
@ -55,7 +55,7 @@ final class FluentChainMethodCallRootExtractorTest extends AbstractKernelTestCas
|
||||
public function testNew(): void
|
||||
{
|
||||
$assignAndRootExpr = $this->parseFileAndCreateAssignAndRootExprForSure(
|
||||
__DIR__ . '/Fixture/return_new_double_method_call.php.inc'
|
||||
__DIR__ . '/Fixture/skip_return_new_double_method_call.php.inc'
|
||||
);
|
||||
|
||||
$this->assertFalse($assignAndRootExpr->isFirstCallFactory());
|
||||
|
@ -7,7 +7,7 @@ use DateTimeZone;
|
||||
use Rector\Defluent\Tests\Rector\MethodCall\InArgChainFluentMethodCallToStandaloneMethodCallRectorTest\Source\SetGetDateTime;
|
||||
use Nette\Utils\DateTime as NetteDateTime;
|
||||
|
||||
final class SelfSelf
|
||||
final class SkipSelfSelf
|
||||
{
|
||||
public function run(SetGetDateTime $setGetDateTime, DateTimeZone $dateTimeZone)
|
||||
{
|
@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
/**
|
||||
* @ORM\Entity(readOnly=true)
|
||||
*/
|
||||
class ReadOnlySkipped
|
||||
class SkipReadOnly
|
||||
{
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class NullableSkipped
|
||||
class SkipNullable
|
||||
{
|
||||
/**
|
||||
* @ORM\Column(type="string", nullable=true)
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class PrecisionSkipped
|
||||
class SkipPrecision
|
||||
{
|
||||
/**
|
||||
* @ORM\Column(type="integer", precision=1)
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class ScaleSkipped
|
||||
class SkipScale
|
||||
{
|
||||
/**
|
||||
* @ORM\Column(type="decimal", precision=1)
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class UniqueSkipped
|
||||
class SkipUnique
|
||||
{
|
||||
/**
|
||||
* @ORM\Column(type="string", unique=true)
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class StrategySkipped
|
||||
class SkipStrategy
|
||||
{
|
||||
/**
|
||||
* @ORM\Id
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class NullableFalseSkipped
|
||||
class SkipNullable
|
||||
{
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity=Training::class)
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class ReferencedColumnNameSkipped
|
||||
class SkipReferencedColumnName
|
||||
{
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity=Training::class)
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class UniqueSkipped
|
||||
class SkipUnique
|
||||
{
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity=Training::class)
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class FetchSkipped
|
||||
class SkipFetch
|
||||
{
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity=Training::class, fetch="AUTO")
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class OrphanRemovalSkipped
|
||||
class SkipOrphanRemoval
|
||||
{
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity=Training::class, orphanRemoval=true)
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class FetchSkipped
|
||||
class SkipFetch
|
||||
{
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity=Training::class, fetch="AUTO")
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class FetchSkipped
|
||||
class SkipFetch
|
||||
{
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity=Training::class, fetch="AUTO")
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class OrphanRemovalSkipped
|
||||
class SkipOrphanRemoval
|
||||
{
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity=Training::class, orphanRemoval=true)
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class FetchSkipped
|
||||
class SkipFetch
|
||||
{
|
||||
/**
|
||||
* @ORM\OneToOne(targetEntity=Training::class, fetch="AUTO")
|
@ -8,7 +8,7 @@ use Rector\DoctrineCodeQuality\Tests\Rector\Property\RemoveRedundantDefaultPrope
|
||||
/**
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class OrphanRemovalSkipped
|
||||
class SkipOrphanRemoval
|
||||
{
|
||||
/**
|
||||
* @ORM\OneToOne(targetEntity=Training::class, orphanRemoval=true)
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DowngradePhp70\Tests\Rector\FunctionLike\DowngradeTypeParamDeclarationRector\Fixture;
|
||||
|
||||
class ArrayFunctionParam
|
||||
class SkipArray
|
||||
{
|
||||
public function run(array $value)
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DowngradePhp70\Tests\Rector\FunctionLike\DowngradeTypeParamDeclarationRector\Fixture;
|
||||
|
||||
class CallableFunctionParam
|
||||
class SkipCallable
|
||||
{
|
||||
public function run(callable $value)
|
||||
{
|
@ -7,7 +7,7 @@ interface NothingHappensInterface
|
||||
public function test(array $input);
|
||||
}
|
||||
|
||||
class NothingHappens implements NothingHappensInterface
|
||||
class SkipNothingHappens implements NothingHappensInterface
|
||||
{
|
||||
public function test(array $input)
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DowngradePhp73\Tests\Rector\List_\DowngradeListReferenceAssignmentRector\Fixture;
|
||||
|
||||
class SkippedValues
|
||||
class Values
|
||||
{
|
||||
public function run($string)
|
||||
{
|
||||
@ -17,7 +17,7 @@ class SkippedValues
|
||||
|
||||
namespace Rector\DowngradePhp73\Tests\Rector\List_\DowngradeListReferenceAssignmentRector\Fixture;
|
||||
|
||||
class SkippedValues
|
||||
class Values
|
||||
{
|
||||
public function run($string)
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DowngradePhp74\Tests\Rector\Array_\DowngradeArraySpreadRector\Fixture;
|
||||
|
||||
class NoUnpacks
|
||||
class SkipNoUnpacks
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -4,7 +4,7 @@ namespace Rector\DowngradePhp74\Tests\Rector\ClassMethod\DowngradeContravariantA
|
||||
|
||||
use Exception;
|
||||
|
||||
final class SetNotFoundException extends Exception
|
||||
final class SkipConstruct extends Exception
|
||||
{
|
||||
private $setName;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\DowngradePhp74\Tests\Rector\LNumber\DowngradeNumericLiteralSeparatorRector\Fixture;
|
||||
|
||||
class NoChange
|
||||
class SkipNoChange
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\EarlyReturn\Tests\Rector\If_\ChangeAndIfToEarlyReturnRector\Fixture;
|
||||
|
||||
class KeepCommentOfRemovedNode
|
||||
class DontRemoveCommentOfRemovedNode
|
||||
{
|
||||
public function canDrive(Car $car): void
|
||||
{
|
||||
@ -21,7 +21,7 @@ class KeepCommentOfRemovedNode
|
||||
|
||||
namespace Rector\EarlyReturn\Tests\Rector\If_\ChangeAndIfToEarlyReturnRector\Fixture;
|
||||
|
||||
class KeepCommentOfRemovedNode
|
||||
class DontRemoveCommentOfRemovedNode
|
||||
{
|
||||
public function canDrive(Car $car): void
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\EarlyReturn\Tests\Rector\If_\RemoveAlwaysElseRector\Fixture;
|
||||
|
||||
class EmptyIf
|
||||
class SkipEmptyIf
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\EarlyReturn\Tests\Rector\If_\RemoveAlwaysElseRector\Fixture;
|
||||
|
||||
class NoBreak
|
||||
class SkipNoBreak
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\EarlyReturn\Tests\Rector\If_\RemoveAlwaysElseRector\Fixture;
|
||||
|
||||
class SimpleIf
|
||||
class SkipSimpleIf
|
||||
{
|
||||
public function run()
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Rector\EarlyReturn\Tests\Rector\Return_\ReturnBinaryAndToEarlyReturnRector\Fixture;
|
||||
|
||||
class KeepComment
|
||||
class Comment
|
||||
{
|
||||
public function accept($something, $somethingelse, $anotherelse, $last)
|
||||
{
|
||||
@ -23,7 +23,7 @@ class KeepComment
|
||||
|
||||
namespace Rector\EarlyReturn\Tests\Rector\Return_\ReturnBinaryAndToEarlyReturnRector\Fixture;
|
||||
|
||||
class KeepComment
|
||||
class Comment
|
||||
{
|
||||
public function accept($something, $somethingelse, $anotherelse, $last)
|
||||
{
|
@ -4,7 +4,7 @@ namespace Rector\Generic\Tests\Rector\ClassMethod\ArgumentAdderRector\Fixture;
|
||||
|
||||
use Rector\Generic\Tests\Rector\ClassMethod\ArgumentAdderRector\Source\SomeContainerBuilder;
|
||||
|
||||
class AlreadyAdded extends SomeContainerBuilder
|
||||
class SkipAlreadyAdded extends SomeContainerBuilder
|
||||
{
|
||||
public function addCompilerPass($pass, $type, int $priority = 10)
|
||||
{
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user