diff --git a/.github/typos.toml b/.github/typos.toml index 4ffe548d3fc..fe1504d9f91 100644 --- a/.github/typos.toml +++ b/.github/typos.toml @@ -1,5 +1,9 @@ [default.extend-words] Symplify = "Symplify" +Invokable = "Invokable" + +# as in 2nd +nd = "nd" # plurals Identicals = "Identicals" diff --git a/.github/workflows/typos.yaml b/.github/workflows/typos.yaml index 0d3b61e0994..39effe89c1a 100644 --- a/.github/workflows/typos.yaml +++ b/.github/workflows/typos.yaml @@ -21,4 +21,4 @@ jobs: uses: "crate-ci/typos@v1.40.0" with: config: .github/typos.toml - files: "README.md src rules tests" + files: "README.md src config rules tests rules-tests templates" diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPromotedPropertyRector/Fixture/some_private_roperty_readonly.php.inc b/rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPromotedPropertyRector/Fixture/some_private_property_readonly.php.inc similarity index 100% rename from rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPromotedPropertyRector/Fixture/some_private_roperty_readonly.php.inc rename to rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPromotedPropertyRector/Fixture/some_private_property_readonly.php.inc diff --git a/rules-tests/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector/Fixture/merge_comment.php.inc b/rules-tests/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector/Fixture/merge_comment.php.inc index 8cd0ba5f37f..a476acd339b 100644 --- a/rules-tests/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector/Fixture/merge_comment.php.inc +++ b/rules-tests/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector/Fixture/merge_comment.php.inc @@ -8,7 +8,7 @@ class MergeComments { // toplevel if (true) { - // first innner + // first inner f(); // second inner } @@ -26,7 +26,7 @@ class MergeComments public function run() { // toplevel - // first innner + // first inner f(); // second inner } diff --git a/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/Fixture/skip_asssign_union.php.inc b/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/Fixture/skip_assign_union.php.inc similarity index 100% rename from rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/Fixture/skip_asssign_union.php.inc rename to rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/Fixture/skip_assign_union.php.inc diff --git a/rules-tests/DeadCode/Rector/MethodCall/RemoveNullArgOnNullDefaultParamRector/Fixture/skip_named_argument_position_not_match.php.inc b/rules-tests/DeadCode/Rector/MethodCall/RemoveNullArgOnNullDefaultParamRector/Fixture/skip_named_argument_position_not_match.php.inc index 76ab5f89e5b..e01aef962e8 100644 --- a/rules-tests/DeadCode/Rector/MethodCall/RemoveNullArgOnNullDefaultParamRector/Fixture/skip_named_argument_position_not_match.php.inc +++ b/rules-tests/DeadCode/Rector/MethodCall/RemoveNullArgOnNullDefaultParamRector/Fixture/skip_named_argument_position_not_match.php.inc @@ -6,7 +6,7 @@ namespace Rector\Tests\DeadCode\Rector\MethodCall\RemoveNullArgOnNullDefaultPara use Rector\Tests\DeadCode\Rector\MethodCall\RemoveNullArgOnNullDefaultParamRector\Source\SomeExternalClass; -final class SkipNamedArgumentPostitionNotMatch +final class SkipNamedArgumentPositionNotMatch { public function get() { diff --git a/rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_missmatching_getter_setter_names.php.inc b/rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_mismatching_getter_setter_names.php.inc similarity index 86% rename from rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_missmatching_getter_setter_names.php.inc rename to rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_mismatching_getter_setter_names.php.inc index f9eb33fd00f..e5bc9900851 100644 --- a/rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_missmatching_getter_setter_names.php.inc +++ b/rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_mismatching_getter_setter_names.php.inc @@ -2,7 +2,7 @@ namespace Rector\Tests\Php84\Rector\Class_\PropertyHookRector\Fixture; -final class SkipMissmatchingGetterSetterNames +final class SkipMismatchingGetterSetterNames { private string $name; diff --git a/rules-tests/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector/Fixture/partial_tranformation.php.inc b/rules-tests/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector/Fixture/partial_transformation.php.inc similarity index 100% rename from rules-tests/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector/Fixture/partial_tranformation.php.inc rename to rules-tests/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector/Fixture/partial_transformation.php.inc diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/FixtureTreatClassesAsFinal/skip_abstract_class.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/FixtureTreatClassesAsFinal/skip_abstract_class.php.inc index 2f61c133eb7..1a5842c68d6 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/FixtureTreatClassesAsFinal/skip_abstract_class.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/FixtureTreatClassesAsFinal/skip_abstract_class.php.inc @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector\FixtureTreatClassesAsFinal; -// both classses here on purpose as the abstract class is subject to test +// both classes here on purpose as the abstract class is subject to test // with child class override abstract class SkipAbstractClass { diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Fixture/skip_just_spreaded_arg.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Fixture/skip_just_spread_arg.php.inc similarity index 82% rename from rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Fixture/skip_just_spreaded_arg.php.inc rename to rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Fixture/skip_just_spread_arg.php.inc index afe60b7bf9c..11f59310e20 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Fixture/skip_just_spreaded_arg.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Fixture/skip_just_spread_arg.php.inc @@ -4,7 +4,7 @@ namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\ParamTypeByParentCallT use Rector\Tests\TypeDeclaration\Rector\ClassMethod\ParamTypeByParentCallTypeRector\Source\ParentClassWithArraySpread; -final class SkipJustSPreadedArg extends ParentClassWithArraySpread +final class SkipJustSpreadArg extends ParentClassWithArraySpread { public function __construct($items) { diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Source/ParentClassWithArraySpread.php b/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Source/ParentClassWithArraySpread.php index a475ce00e37..547e1e2a693 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Source/ParentClassWithArraySpread.php +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByParentCallTypeRector/Source/ParentClassWithArraySpread.php @@ -6,7 +6,7 @@ class ParentClassWithArraySpread { - public function __construct(string $spreadedItem) + public function __construct(string $spreadItem) { } } diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector/Fixture/return_anonymous_class_variable.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector/Fixture/return_anonymous_class_variable.php.inc index df6a0d56610..d4ccb006a21 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector/Fixture/return_anonymous_class_variable.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector/Fixture/return_anonymous_class_variable.php.inc @@ -13,7 +13,7 @@ final class ReturnAnonymousClassVariable // any properties }; - // some bussines logic to fill the data + // some business logic to fill the data return $data; } @@ -36,7 +36,7 @@ final class ReturnAnonymousClassVariable // any properties }; - // some bussines logic to fill the data + // some business logic to fill the data return $data; } diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/Fixture/return_in_test_metohd.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/Fixture/return_in_test_method.php.inc similarity index 100% rename from rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/Fixture/return_in_test_metohd.php.inc rename to rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector/Fixture/return_in_test_method.php.inc diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_bool.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_bool.php.inc index aed2e1e3b06..eda3ac9f6ed 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_bool.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_bool.php.inc @@ -13,7 +13,7 @@ final class SkipIsBool return ''; } - if ('alle' === $ids[0]) { + if ('value' === $ids[0]) { return $ids[0]; } } diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_float.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_float.php.inc index cbbd9dda259..83dd1808602 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_float.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_float.php.inc @@ -13,7 +13,7 @@ final class SkipIsFloat return ''; } - if ('alle' === $ids[0]) { + if ('value' === $ids[0]) { return $ids[0]; } } diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_int.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_int.php.inc index 0f8809c2edf..025255e6542 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_int.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_int.php.inc @@ -13,7 +13,7 @@ final class SkipIsInt return ''; } - if ('alle' === $ids[0]) { + if ('value' === $ids[0]) { return $ids[0]; } } diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_string.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_string.php.inc index 9e95c0b54c8..7fcd93239e2 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_string.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_is_string.php.inc @@ -13,7 +13,7 @@ final class SkipIsString return ''; } - if ('alle' === $ids[0]) { + if ('value' === $ids[0]) { return $ids[0]; } } diff --git a/rules-tests/TypeDeclarationDocblocks/Rector/ClassMethod/AddParamArrayDocblockFromAssignsParamToParamReferenceRector/Fixture/skip_dim_fetch_assign_deep.php.inc b/rules-tests/TypeDeclarationDocblocks/Rector/ClassMethod/AddParamArrayDocblockFromAssignsParamToParamReferenceRector/Fixture/skip_dim_fetch_assign_deep.php.inc index f79a3ed5cfd..11c8bba2802 100644 --- a/rules-tests/TypeDeclarationDocblocks/Rector/ClassMethod/AddParamArrayDocblockFromAssignsParamToParamReferenceRector/Fixture/skip_dim_fetch_assign_deep.php.inc +++ b/rules-tests/TypeDeclarationDocblocks/Rector/ClassMethod/AddParamArrayDocblockFromAssignsParamToParamReferenceRector/Fixture/skip_dim_fetch_assign_deep.php.inc @@ -2,7 +2,7 @@ namespace Rector\Tests\TypeDeclarationDocblocks\Rector\ClassMethod\AddParamArrayDocblockFromAssignsParamToParamReferenceRector\Fixture; -final class SkipDimFetchAssingDeep +final class SkipDimFetchAssignDeep { public function run(array &$items) {