From 254e8162e6972f9a2d50083e455d4bb999c9faf4 Mon Sep 17 00:00:00 2001 From: Simon Schaufelberger Date: Thu, 22 Oct 2026 11:21:41 +0200 Subject: [PATCH] Use active voice and improve rule definitions Rename: - "Changes" to "Change" - "Renames" to "Rename" - "Removes" to "Remove" - "Shortens" to "Shorten" Improve a few rule definitions and apply code style formatting for php methods --- .../Rector/Foreach_/SimplifyForeachToCoalescingRector.php | 2 +- .../CodeQuality/Rector/FuncCall/SimplifyInArrayValuesRector.php | 2 +- .../Rector/FuncCall/SingleInArrayToCompareRector.php | 2 +- .../Rector/Identical/StrlenZeroToIdenticalEmptyStringRector.php | 2 +- rules/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector.php | 2 +- rules/CodeQuality/Rector/If_/SimplifyIfNotNullReturnRector.php | 2 +- rules/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector.php | 2 +- .../Rector/ArrowFunction/StaticArrowFunctionRector.php | 2 +- rules/CodingStyle/Rector/Closure/StaticClosureRector.php | 2 +- rules/CodingStyle/Rector/FuncCall/ConsistentImplodeRector.php | 2 +- .../Rector/FuncCall/VersionCompareFuncCallToConstantRector.php | 2 +- rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php | 2 +- .../Rector/FuncCall/RemoveFilterVarOnExactTypeRector.php | 2 +- .../Rector/Node/RemoveNonExistingVarAnnotationRector.php | 2 +- .../Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php | 2 +- ...ameForeachValueVariableToMatchMethodCallReturnTypeRector.php | 2 +- rules/Php56/Rector/FuncCall/PowToExpRector.php | 2 +- rules/Php70/Rector/FuncCall/CallUserMethodRector.php | 2 +- rules/Php70/Rector/FuncCall/EregToPregMatchRector.php | 2 +- rules/Php70/Rector/FuncCall/MultiDirnameRector.php | 2 +- rules/Php70/Rector/FuncCall/RandomFunctionRector.php | 2 +- .../Rector/FuncCall/RenameMktimeWithoutArgsToTimeRector.php | 2 +- rules/Php70/Rector/If_/IfToSpaceshipRector.php | 2 +- rules/Php70/Rector/List_/EmptyListRector.php | 2 +- .../MethodCall/ThisCallOnStaticMethodToStaticCallRector.php | 2 +- .../StaticCall/StaticCallOnNonStaticToInstanceCallRector.php | 2 +- rules/Php70/Rector/Ternary/TernaryToNullCoalescingRector.php | 2 +- rules/Php71/Rector/BooleanOr/IsIterableRector.php | 2 +- rules/Php73/Rector/BooleanOr/IsCountableRector.php | 2 +- rules/Php73/Rector/String_/SensitiveHereNowDocRector.php | 2 +- rules/Renaming/Rector/Cast/RenameCastRector.php | 2 +- rules/Transform/Rector/FuncCall/FuncCallToConstFetchRector.php | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector.php b/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector.php index bfc3860e372..a1b5717ac2f 100644 --- a/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector.php +++ b/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToCoalescingRector.php @@ -31,7 +31,7 @@ final class SimplifyForeachToCoalescingRector extends AbstractRector implements public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes foreach that returns set value to ??', + 'Change foreach that returns set value to ??', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodeQuality/Rector/FuncCall/SimplifyInArrayValuesRector.php b/rules/CodeQuality/Rector/FuncCall/SimplifyInArrayValuesRector.php index d3d65e1ddd5..b7c248a17a5 100644 --- a/rules/CodeQuality/Rector/FuncCall/SimplifyInArrayValuesRector.php +++ b/rules/CodeQuality/Rector/FuncCall/SimplifyInArrayValuesRector.php @@ -19,7 +19,7 @@ final class SimplifyInArrayValuesRector extends AbstractRector public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Removes unneeded array_values() in in_array() call', + 'Remove unneeded `array_values()` in `in_array()` call', [new CodeSample('in_array("key", array_values($array), true);', 'in_array("key", $array, true);')] ); } diff --git a/rules/CodeQuality/Rector/FuncCall/SingleInArrayToCompareRector.php b/rules/CodeQuality/Rector/FuncCall/SingleInArrayToCompareRector.php index 473c59ae096..5922cf59315 100644 --- a/rules/CodeQuality/Rector/FuncCall/SingleInArrayToCompareRector.php +++ b/rules/CodeQuality/Rector/FuncCall/SingleInArrayToCompareRector.php @@ -26,7 +26,7 @@ final class SingleInArrayToCompareRector extends AbstractRector public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes in_array() with single element to ===', + 'Change `in_array()` with single element to ===', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodeQuality/Rector/Identical/StrlenZeroToIdenticalEmptyStringRector.php b/rules/CodeQuality/Rector/Identical/StrlenZeroToIdenticalEmptyStringRector.php index 2e46aa47b04..19ac6311e0c 100644 --- a/rules/CodeQuality/Rector/Identical/StrlenZeroToIdenticalEmptyStringRector.php +++ b/rules/CodeQuality/Rector/Identical/StrlenZeroToIdenticalEmptyStringRector.php @@ -30,7 +30,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes strlen comparison to 0 to direct empty string compare', + 'Change `strlen()` comparison to 0 to direct empty string compare', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector.php b/rules/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector.php index 9ba612819de..2aab10b415f 100644 --- a/rules/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector.php +++ b/rules/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector.php @@ -20,7 +20,7 @@ final class SimplifyIfElseToTernaryRector extends AbstractRector implements Depr public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes if/else for same value as assign to ternary', + 'Change if/else for same value as assign to ternary', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodeQuality/Rector/If_/SimplifyIfNotNullReturnRector.php b/rules/CodeQuality/Rector/If_/SimplifyIfNotNullReturnRector.php index 74bb48e64fe..2fbec891c97 100644 --- a/rules/CodeQuality/Rector/If_/SimplifyIfNotNullReturnRector.php +++ b/rules/CodeQuality/Rector/If_/SimplifyIfNotNullReturnRector.php @@ -30,7 +30,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes redundant null check to instant return', + 'Change redundant null check to instant return', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector.php b/rules/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector.php index c3bdaa05d9f..33931135791 100644 --- a/rules/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector.php +++ b/rules/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector.php @@ -39,7 +39,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Shortens if return false/true to direct return', + 'Shorten if return false/true to direct return', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodingStyle/Rector/ArrowFunction/StaticArrowFunctionRector.php b/rules/CodingStyle/Rector/ArrowFunction/StaticArrowFunctionRector.php index 878ba298788..2b99ad4007b 100644 --- a/rules/CodingStyle/Rector/ArrowFunction/StaticArrowFunctionRector.php +++ b/rules/CodingStyle/Rector/ArrowFunction/StaticArrowFunctionRector.php @@ -20,7 +20,7 @@ final class StaticArrowFunctionRector extends AbstractRector implements Deprecat public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes ArrowFunction to be static when possible', + 'Change ArrowFunction to be static when possible', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodingStyle/Rector/Closure/StaticClosureRector.php b/rules/CodingStyle/Rector/Closure/StaticClosureRector.php index 805f1ee2297..48c9f80cb95 100644 --- a/rules/CodingStyle/Rector/Closure/StaticClosureRector.php +++ b/rules/CodingStyle/Rector/Closure/StaticClosureRector.php @@ -20,7 +20,7 @@ final class StaticClosureRector extends AbstractRector implements DeprecatedInte public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes Closure to be static when possible', + 'Change Closure to be static when possible', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodingStyle/Rector/FuncCall/ConsistentImplodeRector.php b/rules/CodingStyle/Rector/FuncCall/ConsistentImplodeRector.php index 07a8128bf3f..93b71b96d95 100644 --- a/rules/CodingStyle/Rector/FuncCall/ConsistentImplodeRector.php +++ b/rules/CodingStyle/Rector/FuncCall/ConsistentImplodeRector.php @@ -26,7 +26,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes various implode forms to consistent one', + 'Change various implode forms to consistent one', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector.php b/rules/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector.php index 12610e48a49..f02d3b91a38 100644 --- a/rules/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector.php +++ b/rules/CodingStyle/Rector/FuncCall/VersionCompareFuncCallToConstantRector.php @@ -51,7 +51,7 @@ final class VersionCompareFuncCallToConstantRector extends AbstractRector public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes use of call to version compare function to use of PHP version constant', + 'Change use of call to version compare function to use of PHP version constant', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php b/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php index 8af5c4ffa9a..205f00f02a2 100644 --- a/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php +++ b/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php @@ -20,7 +20,7 @@ final class NullableCompareToNullRector extends AbstractRector implements Deprec public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes negate of empty comparison of nullable value to explicit === or !== compare', + 'Change negate of empty comparison of nullable value to explicit === or !== compare', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/DeadCode/Rector/FuncCall/RemoveFilterVarOnExactTypeRector.php b/rules/DeadCode/Rector/FuncCall/RemoveFilterVarOnExactTypeRector.php index ce1bb384f2f..e1c78e54ac2 100644 --- a/rules/DeadCode/Rector/FuncCall/RemoveFilterVarOnExactTypeRector.php +++ b/rules/DeadCode/Rector/FuncCall/RemoveFilterVarOnExactTypeRector.php @@ -19,7 +19,7 @@ final class RemoveFilterVarOnExactTypeRector extends AbstractRector public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Removes filter_var() calls with exact type', + 'Remove `filter_var()` calls with exact type', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/DeadCode/Rector/Node/RemoveNonExistingVarAnnotationRector.php b/rules/DeadCode/Rector/Node/RemoveNonExistingVarAnnotationRector.php index b5b73a9c454..e751ae5eff1 100644 --- a/rules/DeadCode/Rector/Node/RemoveNonExistingVarAnnotationRector.php +++ b/rules/DeadCode/Rector/Node/RemoveNonExistingVarAnnotationRector.php @@ -66,7 +66,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Removes non-existing @var annotations above the code', + 'Remove non-existing @var annotations above the code', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php b/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php index 43af54d2a4b..7b2fbb2debb 100644 --- a/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php +++ b/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php @@ -30,7 +30,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - '2 following switch keys with identical will be reduced to one result', + 'Two following switch keys with identical will be reduced to one result', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchMethodCallReturnTypeRector.php b/rules/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchMethodCallReturnTypeRector.php index 2d0aa724caa..df39770d831 100644 --- a/rules/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchMethodCallReturnTypeRector.php +++ b/rules/Naming/Rector/Foreach_/RenameForeachValueVariableToMatchMethodCallReturnTypeRector.php @@ -22,7 +22,7 @@ final class RenameForeachValueVariableToMatchMethodCallReturnTypeRector extends public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Renames value variable name in foreach loop to match method type', + 'Rename value variable name in foreach loop to match method type', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/Php56/Rector/FuncCall/PowToExpRector.php b/rules/Php56/Rector/FuncCall/PowToExpRector.php index c5dc9e4f343..11f8334dd84 100644 --- a/rules/Php56/Rector/FuncCall/PowToExpRector.php +++ b/rules/Php56/Rector/FuncCall/PowToExpRector.php @@ -29,7 +29,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes `pow(val, val2)` to `**` (exp) parameter', + 'Change `pow(val, val2)` to `**` (exp) parameter', [new CodeSample('pow(1, 2);', '1**2;')] ); } diff --git a/rules/Php70/Rector/FuncCall/CallUserMethodRector.php b/rules/Php70/Rector/FuncCall/CallUserMethodRector.php index 799b4f84117..1135c321e98 100644 --- a/rules/Php70/Rector/FuncCall/CallUserMethodRector.php +++ b/rules/Php70/Rector/FuncCall/CallUserMethodRector.php @@ -35,7 +35,7 @@ public function provideMinPhpVersion(): int public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes call_user_method()/call_user_method_array() to call_user_func()/call_user_func_array()', + 'Change `call_user_method()`/`call_user_method_array()` to `call_user_func()`/`call_user_func_array()`', [ new CodeSample( 'call_user_method($method, $obj, "arg1", "arg2");', diff --git a/rules/Php70/Rector/FuncCall/EregToPregMatchRector.php b/rules/Php70/Rector/FuncCall/EregToPregMatchRector.php index b8c60e3f3ed..8a45bedb174 100644 --- a/rules/Php70/Rector/FuncCall/EregToPregMatchRector.php +++ b/rules/Php70/Rector/FuncCall/EregToPregMatchRector.php @@ -54,7 +54,7 @@ public function provideMinPhpVersion(): int public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes ereg*() to preg*() calls', + 'Change `ereg*()` to `preg*()` calls', [new CodeSample('ereg("hi")', 'preg_match("#hi#");')] ); } diff --git a/rules/Php70/Rector/FuncCall/MultiDirnameRector.php b/rules/Php70/Rector/FuncCall/MultiDirnameRector.php index 645e9316f2c..5ab7dda3ca9 100644 --- a/rules/Php70/Rector/FuncCall/MultiDirnameRector.php +++ b/rules/Php70/Rector/FuncCall/MultiDirnameRector.php @@ -26,7 +26,7 @@ final class MultiDirnameRector extends AbstractRector implements MinPhpVersionIn public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes multiple dirname() calls to one with nesting level', + 'Change multiple `dirname()` calls to one with nesting level', [new CodeSample('dirname(dirname($path));', 'dirname($path, 2);')] ); } diff --git a/rules/Php70/Rector/FuncCall/RandomFunctionRector.php b/rules/Php70/Rector/FuncCall/RandomFunctionRector.php index a4c62ff4232..6aab3b40c4b 100644 --- a/rules/Php70/Rector/FuncCall/RandomFunctionRector.php +++ b/rules/Php70/Rector/FuncCall/RandomFunctionRector.php @@ -38,7 +38,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes rand, srand, and getrandmax to newer alternatives', + 'Change `rand()`, `srand()`, and `getrandmax()` to newer alternatives', [new CodeSample('rand();', 'random_int();')] ); } diff --git a/rules/Php70/Rector/FuncCall/RenameMktimeWithoutArgsToTimeRector.php b/rules/Php70/Rector/FuncCall/RenameMktimeWithoutArgsToTimeRector.php index e2eb6641ba8..bc11bfbdc94 100644 --- a/rules/Php70/Rector/FuncCall/RenameMktimeWithoutArgsToTimeRector.php +++ b/rules/Php70/Rector/FuncCall/RenameMktimeWithoutArgsToTimeRector.php @@ -21,7 +21,7 @@ final class RenameMktimeWithoutArgsToTimeRector extends AbstractRector implement public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Renames mktime() without arguments to time()', + 'Rename `mktime()` without arguments to `time()`', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/Php70/Rector/If_/IfToSpaceshipRector.php b/rules/Php70/Rector/If_/IfToSpaceshipRector.php index 109a2f854c0..4223ccbb169 100644 --- a/rules/Php70/Rector/If_/IfToSpaceshipRector.php +++ b/rules/Php70/Rector/If_/IfToSpaceshipRector.php @@ -38,7 +38,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes if/else to spaceship <=> where useful', + 'Change if/else to spaceship <=> where useful', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/Php70/Rector/List_/EmptyListRector.php b/rules/Php70/Rector/List_/EmptyListRector.php index ae8453a9b5c..59006eb74a3 100644 --- a/rules/Php70/Rector/List_/EmptyListRector.php +++ b/rules/Php70/Rector/List_/EmptyListRector.php @@ -22,7 +22,7 @@ final class EmptyListRector extends AbstractRector implements MinPhpVersionInter public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'list() cannot be empty', + 'Add dummy variable to empty `list()`', [new CodeSample( <<<'CODE_SAMPLE' 'list() = $values;' diff --git a/rules/Php70/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector.php b/rules/Php70/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector.php index d7efe8e4e10..7621f4a2b47 100644 --- a/rules/Php70/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector.php +++ b/rules/Php70/Rector/MethodCall/ThisCallOnStaticMethodToStaticCallRector.php @@ -45,7 +45,7 @@ public function provideMinPhpVersion(): int public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes $this->call() to static method to static call', + 'Change `$this->call()` to static method to static call', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector.php b/rules/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector.php index dd7112dc28d..b853f207d1f 100644 --- a/rules/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector.php +++ b/rules/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector.php @@ -27,7 +27,7 @@ public function provideMinPhpVersion(): int public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes static call to instance call, where not useful', + 'Change static call to instance call, where not useful', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/Php70/Rector/Ternary/TernaryToNullCoalescingRector.php b/rules/Php70/Rector/Ternary/TernaryToNullCoalescingRector.php index bc3a9834ab4..a4960eada8b 100644 --- a/rules/Php70/Rector/Ternary/TernaryToNullCoalescingRector.php +++ b/rules/Php70/Rector/Ternary/TernaryToNullCoalescingRector.php @@ -37,7 +37,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes unneeded null check to ?? operator', + 'Change unneeded null check to ?? operator', [ new CodeSample('$value === null ? 10 : $value;', '$value ?? 10;'), new CodeSample('isset($value) ? $value : 10;', '$value ?? 10;'), diff --git a/rules/Php71/Rector/BooleanOr/IsIterableRector.php b/rules/Php71/Rector/BooleanOr/IsIterableRector.php index 1ab116169c6..7f3661e1a33 100644 --- a/rules/Php71/Rector/BooleanOr/IsIterableRector.php +++ b/rules/Php71/Rector/BooleanOr/IsIterableRector.php @@ -36,7 +36,7 @@ public function provideMinPhpVersion(): int public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes is_array + Traversable check to is_iterable', + 'Change is_array + Traversable check to is_iterable', [new CodeSample('is_array($foo) || $foo instanceof Traversable;', 'is_iterable($foo);')] ); } diff --git a/rules/Php73/Rector/BooleanOr/IsCountableRector.php b/rules/Php73/Rector/BooleanOr/IsCountableRector.php index fcac29aa1fc..eb8c8271e4d 100644 --- a/rules/Php73/Rector/BooleanOr/IsCountableRector.php +++ b/rules/Php73/Rector/BooleanOr/IsCountableRector.php @@ -31,7 +31,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes is_array + Countable check to is_countable', + 'Change is_array + Countable check to is_countable', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/Php73/Rector/String_/SensitiveHereNowDocRector.php b/rules/Php73/Rector/String_/SensitiveHereNowDocRector.php index 1f9623b83f8..2b0d02e9dd2 100644 --- a/rules/Php73/Rector/String_/SensitiveHereNowDocRector.php +++ b/rules/Php73/Rector/String_/SensitiveHereNowDocRector.php @@ -28,7 +28,7 @@ public function provideMinPhpVersion(): int public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Changes heredoc/nowdoc that contains closing word to safe wrapper name', + 'Change heredoc/nowdoc that contains closing word to safe wrapper name', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/Renaming/Rector/Cast/RenameCastRector.php b/rules/Renaming/Rector/Cast/RenameCastRector.php index 130f313cc6c..6fb8efa9532 100644 --- a/rules/Renaming/Rector/Cast/RenameCastRector.php +++ b/rules/Renaming/Rector/Cast/RenameCastRector.php @@ -27,7 +27,7 @@ final class RenameCastRector extends AbstractRector implements ConfigurableRecto public function getRuleDefinition(): RuleDefinition { - return new RuleDefinition('Renames casts', [ + return new RuleDefinition('Rename casts', [ new ConfiguredCodeSample( '$real = (real) $real;', '$real = (float) $real;', diff --git a/rules/Transform/Rector/FuncCall/FuncCallToConstFetchRector.php b/rules/Transform/Rector/FuncCall/FuncCallToConstFetchRector.php index 58a470764ac..6bc58f2394b 100644 --- a/rules/Transform/Rector/FuncCall/FuncCallToConstFetchRector.php +++ b/rules/Transform/Rector/FuncCall/FuncCallToConstFetchRector.php @@ -26,7 +26,7 @@ final class FuncCallToConstFetchRector extends AbstractRector implements Configu public function getRuleDefinition(): RuleDefinition { - return new RuleDefinition('Changes use of function calls to use constants', [ + return new RuleDefinition('Change use of function calls to use constants', [ new ConfiguredCodeSample( <<<'CODE_SAMPLE' class SomeClass