From 003ab1aea558085cd27636a0b95a4c9f0e062e9a Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sun, 12 Sep 2021 23:38:50 +0200 Subject: [PATCH] [BCB] Rename rules with typos --- conf/config.level4.neon | 6 +++--- ...hp => CallToFunctionStatementWithoutSideEffectsRule.php} | 2 +- ....php => CallToMethodStatementWithoutSideEffectsRule.php} | 2 +- ...> CallToStaticMethodStatementWithoutSideEffectsRule.php} | 2 +- ...> CallToFunctionStatementWithoutSideEffectsRuleTest.php} | 6 +++--- ... => CallToMethodStatementWithoutSideEffectsRuleTest.php} | 6 +++--- ...llToStaticMethodStatementWithoutSideEffectsRuleTest.php} | 6 +++--- 7 files changed, 15 insertions(+), 15 deletions(-) rename src/Rules/Functions/{CallToFunctionStamentWithoutSideEffectsRule.php => CallToFunctionStatementWithoutSideEffectsRule.php} (96%) rename src/Rules/Methods/{CallToMethodStamentWithoutSideEffectsRule.php => CallToMethodStatementWithoutSideEffectsRule.php} (97%) rename src/Rules/Methods/{CallToStaticMethodStamentWithoutSideEffectsRule.php => CallToStaticMethodStatementWithoutSideEffectsRule.php} (97%) rename tests/PHPStan/Rules/Functions/{CallToFunctionStamentWithoutSideEffectsRuleTest.php => CallToFunctionStatementWithoutSideEffectsRuleTest.php} (83%) rename tests/PHPStan/Rules/Methods/{CallToMethodStamentWithoutSideEffectsRuleTest.php => CallToMethodStatementWithoutSideEffectsRuleTest.php} (86%) rename tests/PHPStan/Rules/Methods/{CallToStaticMethodStamentWithoutSideEffectsRuleTest.php => CallToStaticMethodStatementWithoutSideEffectsRuleTest.php} (87%) diff --git a/conf/config.level4.neon b/conf/config.level4.neon index f0b24f7bab..ef6b167142 100644 --- a/conf/config.level4.neon +++ b/conf/config.level4.neon @@ -8,10 +8,10 @@ rules: - PHPStan\Rules\DeadCode\UnreachableStatementRule - PHPStan\Rules\Exceptions\CatchWithUnthrownExceptionRule - PHPStan\Rules\Exceptions\OverwrittenExitPointByFinallyRule - - PHPStan\Rules\Functions\CallToFunctionStamentWithoutSideEffectsRule + - PHPStan\Rules\Functions\CallToFunctionStatementWithoutSideEffectsRule - PHPStan\Rules\Methods\CallToConstructorStatementWithoutSideEffectsRule - - PHPStan\Rules\Methods\CallToMethodStamentWithoutSideEffectsRule - - PHPStan\Rules\Methods\CallToStaticMethodStamentWithoutSideEffectsRule + - PHPStan\Rules\Methods\CallToMethodStatementWithoutSideEffectsRule + - PHPStan\Rules\Methods\CallToStaticMethodStatementWithoutSideEffectsRule - PHPStan\Rules\Methods\NullsafeMethodCallRule - PHPStan\Rules\Properties\NullsafePropertyFetchRule - PHPStan\Rules\TooWideTypehints\TooWideArrowFunctionReturnTypehintRule diff --git a/src/Rules/Functions/CallToFunctionStamentWithoutSideEffectsRule.php b/src/Rules/Functions/CallToFunctionStatementWithoutSideEffectsRule.php similarity index 96% rename from src/Rules/Functions/CallToFunctionStamentWithoutSideEffectsRule.php rename to src/Rules/Functions/CallToFunctionStatementWithoutSideEffectsRule.php index b38bc1feaa..5c4bc21420 100644 --- a/src/Rules/Functions/CallToFunctionStamentWithoutSideEffectsRule.php +++ b/src/Rules/Functions/CallToFunctionStatementWithoutSideEffectsRule.php @@ -13,7 +13,7 @@ /** * @implements \PHPStan\Rules\Rule<\PhpParser\Node\Stmt\Expression> */ -class CallToFunctionStamentWithoutSideEffectsRule implements Rule +class CallToFunctionStatementWithoutSideEffectsRule implements Rule { private \PHPStan\Reflection\ReflectionProvider $reflectionProvider; diff --git a/src/Rules/Methods/CallToMethodStamentWithoutSideEffectsRule.php b/src/Rules/Methods/CallToMethodStatementWithoutSideEffectsRule.php similarity index 97% rename from src/Rules/Methods/CallToMethodStamentWithoutSideEffectsRule.php rename to src/Rules/Methods/CallToMethodStatementWithoutSideEffectsRule.php index 7592c9bd18..0ade6b4c03 100644 --- a/src/Rules/Methods/CallToMethodStamentWithoutSideEffectsRule.php +++ b/src/Rules/Methods/CallToMethodStatementWithoutSideEffectsRule.php @@ -15,7 +15,7 @@ /** * @implements \PHPStan\Rules\Rule<\PhpParser\Node\Stmt\Expression> */ -class CallToMethodStamentWithoutSideEffectsRule implements Rule +class CallToMethodStatementWithoutSideEffectsRule implements Rule { private \PHPStan\Rules\RuleLevelHelper $ruleLevelHelper; diff --git a/src/Rules/Methods/CallToStaticMethodStamentWithoutSideEffectsRule.php b/src/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRule.php similarity index 97% rename from src/Rules/Methods/CallToStaticMethodStamentWithoutSideEffectsRule.php rename to src/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRule.php index 85d8a47a3b..70d25300bb 100644 --- a/src/Rules/Methods/CallToStaticMethodStamentWithoutSideEffectsRule.php +++ b/src/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRule.php @@ -17,7 +17,7 @@ /** * @implements \PHPStan\Rules\Rule<\PhpParser\Node\Stmt\Expression> */ -class CallToStaticMethodStamentWithoutSideEffectsRule implements Rule +class CallToStaticMethodStatementWithoutSideEffectsRule implements Rule { private \PHPStan\Rules\RuleLevelHelper $ruleLevelHelper; diff --git a/tests/PHPStan/Rules/Functions/CallToFunctionStamentWithoutSideEffectsRuleTest.php b/tests/PHPStan/Rules/Functions/CallToFunctionStatementWithoutSideEffectsRuleTest.php similarity index 83% rename from tests/PHPStan/Rules/Functions/CallToFunctionStamentWithoutSideEffectsRuleTest.php rename to tests/PHPStan/Rules/Functions/CallToFunctionStatementWithoutSideEffectsRuleTest.php index 202ab84ec6..f47f1f4461 100644 --- a/tests/PHPStan/Rules/Functions/CallToFunctionStamentWithoutSideEffectsRuleTest.php +++ b/tests/PHPStan/Rules/Functions/CallToFunctionStatementWithoutSideEffectsRuleTest.php @@ -6,14 +6,14 @@ use PHPStan\Testing\RuleTestCase; /** - * @extends \PHPStan\Testing\RuleTestCase + * @extends \PHPStan\Testing\RuleTestCase */ -class CallToFunctionStamentWithoutSideEffectsRuleTest extends RuleTestCase +class CallToFunctionStatementWithoutSideEffectsRuleTest extends RuleTestCase { protected function getRule(): Rule { - return new CallToFunctionStamentWithoutSideEffectsRule($this->createReflectionProvider()); + return new CallToFunctionStatementWithoutSideEffectsRule($this->createReflectionProvider()); } public function testRule(): void diff --git a/tests/PHPStan/Rules/Methods/CallToMethodStamentWithoutSideEffectsRuleTest.php b/tests/PHPStan/Rules/Methods/CallToMethodStatementWithoutSideEffectsRuleTest.php similarity index 86% rename from tests/PHPStan/Rules/Methods/CallToMethodStamentWithoutSideEffectsRuleTest.php rename to tests/PHPStan/Rules/Methods/CallToMethodStatementWithoutSideEffectsRuleTest.php index 01ac6f193d..a2a63eb692 100644 --- a/tests/PHPStan/Rules/Methods/CallToMethodStamentWithoutSideEffectsRuleTest.php +++ b/tests/PHPStan/Rules/Methods/CallToMethodStatementWithoutSideEffectsRuleTest.php @@ -7,14 +7,14 @@ use PHPStan\Testing\RuleTestCase; /** - * @extends \PHPStan\Testing\RuleTestCase + * @extends \PHPStan\Testing\RuleTestCase */ -class CallToMethodStamentWithoutSideEffectsRuleTest extends RuleTestCase +class CallToMethodStatementWithoutSideEffectsRuleTest extends RuleTestCase { protected function getRule(): Rule { - return new CallToMethodStamentWithoutSideEffectsRule(new RuleLevelHelper($this->createReflectionProvider(), true, false, true, false)); + return new CallToMethodStatementWithoutSideEffectsRule(new RuleLevelHelper($this->createReflectionProvider(), true, false, true, false)); } public function testRule(): void diff --git a/tests/PHPStan/Rules/Methods/CallToStaticMethodStamentWithoutSideEffectsRuleTest.php b/tests/PHPStan/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRuleTest.php similarity index 87% rename from tests/PHPStan/Rules/Methods/CallToStaticMethodStamentWithoutSideEffectsRuleTest.php rename to tests/PHPStan/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRuleTest.php index ec5ade3b82..08832088ee 100644 --- a/tests/PHPStan/Rules/Methods/CallToStaticMethodStamentWithoutSideEffectsRuleTest.php +++ b/tests/PHPStan/Rules/Methods/CallToStaticMethodStatementWithoutSideEffectsRuleTest.php @@ -7,15 +7,15 @@ use PHPStan\Testing\RuleTestCase; /** - * @extends \PHPStan\Testing\RuleTestCase + * @extends \PHPStan\Testing\RuleTestCase */ -class CallToStaticMethodStamentWithoutSideEffectsRuleTest extends RuleTestCase +class CallToStaticMethodStatementWithoutSideEffectsRuleTest extends RuleTestCase { protected function getRule(): Rule { $broker = $this->createReflectionProvider(); - return new CallToStaticMethodStamentWithoutSideEffectsRule( + return new CallToStaticMethodStatementWithoutSideEffectsRule( new RuleLevelHelper($broker, true, false, true, false), $broker );