From a66d1fbb9fb40c4894c64d1d0ae75a027368cfb1 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 16 Jan 2022 16:52:32 +0700 Subject: [PATCH] Fix wrong typos rebase (#1686) * Typos (#1684) * Typos * Fix typos on rules to be generated in docs * typo fix simplify Co-authored-by: Phil E. Taylor --- build/target-repository/docs/rector_rules_overview.md | 10 +++++----- .../Fixture/reassign_on_not_typed_param.php.inc | 4 ++-- .../Identical/SimplifyBoolIdenticalTrueRector.php | 2 +- .../Include_/AbsolutizeRequireAndIncludePathRector.php | 2 +- ...rrayKeyExistsTernaryThenValueToCoalescingRector.php | 2 +- .../ConstFetch/RemovePhpVersionIdCheckRector.php | 2 +- .../Rector/Class_/DowngradePropertyPromotionRector.php | 2 +- .../AddVoidReturnTypeWhereNoReturnRector.php | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/build/target-repository/docs/rector_rules_overview.md b/build/target-repository/docs/rector_rules_overview.md index 3ce4d5019dc..c7edbe8011d 100644 --- a/build/target-repository/docs/rector_rules_overview.md +++ b/build/target-repository/docs/rector_rules_overview.md @@ -379,7 +379,7 @@ return static function (ContainerConfigurator $containerConfigurator): void { ### AbsolutizeRequireAndIncludePathRector -include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require beeing changed depends on the current working directory. +include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require being changed depends on the current working directory. - class: [`Rector\CodeQuality\Rector\Include_\AbsolutizeRequireAndIncludePathRector`](../rules/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector.php) @@ -434,7 +434,7 @@ Split 2 assigns ands to separate line ### ArrayKeyExistsTernaryThenValueToCoalescingRector -Change `array_key_exists()` ternary to coalesing +Change `array_key_exists()` ternary to coalescing - class: [`Rector\CodeQuality\Rector\Ternary\ArrayKeyExistsTernaryThenValueToCoalescingRector`](../rules/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector.php) @@ -1261,7 +1261,7 @@ Simplify array_search to in_array ### SimplifyBoolIdenticalTrueRector -Symplify bool value compare to true or false +Simplify bool value compare to true or false - class: [`Rector\CodeQuality\Rector\Identical\SimplifyBoolIdenticalTrueRector`](../rules/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector.php) @@ -3349,7 +3349,7 @@ Remove unused parent call with no parent class ### RemovePhpVersionIdCheckRector -Remove unneded PHP_VERSION_ID check +Remove unneeded PHP_VERSION_ID check :wrench: **configure it!** @@ -5513,7 +5513,7 @@ change instanceof Object to is_resource ### DowngradePropertyPromotionRector -Change constructor property promotion to property asssign +Change constructor property promotion to property assign - class: [`Rector\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector`](../rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php) diff --git a/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/Fixture/reassign_on_not_typed_param.php.inc b/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/Fixture/reassign_on_not_typed_param.php.inc index d013ecfe90e..e1a7c1fcc78 100644 --- a/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/Fixture/reassign_on_not_typed_param.php.inc +++ b/rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/Fixture/reassign_on_not_typed_param.php.inc @@ -8,7 +8,7 @@ use stdClass; /** * @param DateTime|stdClass $value */ -function reasssignOnNotTypedParam($value) +function reassignOnNotTypedParam($value) { $value = rand(0, 1) ? new stdClass @@ -37,7 +37,7 @@ use stdClass; /** * @param DateTime|stdClass $value */ -function reasssignOnNotTypedParam($value) +function reassignOnNotTypedParam($value) { $value = rand(0, 1) ? new stdClass diff --git a/rules/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector.php b/rules/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector.php index 01ae3984de5..28b25077f0a 100644 --- a/rules/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector.php +++ b/rules/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector.php @@ -22,7 +22,7 @@ final class SimplifyBoolIdenticalTrueRector extends AbstractRector public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Symplify bool value compare to true or false', + 'Simplify bool value compare to true or false', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector.php b/rules/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector.php index be67622a609..7c5e6ef1634 100644 --- a/rules/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector.php +++ b/rules/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector.php @@ -24,7 +24,7 @@ final class AbsolutizeRequireAndIncludePathRector extends AbstractRector public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require beeing changed depends on the current working directory.', + 'include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require being changed depends on the current working directory.', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector.php b/rules/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector.php index 75b46e427db..0eb87dd2833 100644 --- a/rules/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector.php +++ b/rules/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector.php @@ -24,7 +24,7 @@ final class ArrayKeyExistsTernaryThenValueToCoalescingRector extends AbstractRec public function getRuleDefinition(): RuleDefinition { return new RuleDefinition( - 'Change array_key_exists() ternary to coalesing', + 'Change array_key_exists() ternary to coalescing', [ new CodeSample( <<<'CODE_SAMPLE' diff --git a/rules/DeadCode/Rector/ConstFetch/RemovePhpVersionIdCheckRector.php b/rules/DeadCode/Rector/ConstFetch/RemovePhpVersionIdCheckRector.php index 3c71d8955f0..ac4cb18c635 100644 --- a/rules/DeadCode/Rector/ConstFetch/RemovePhpVersionIdCheckRector.php +++ b/rules/DeadCode/Rector/ConstFetch/RemovePhpVersionIdCheckRector.php @@ -52,7 +52,7 @@ public function getRuleDefinition(): RuleDefinition self::PHP_VERSION_CONSTRAINT => PhpVersion::PHP_80, ]; return new RuleDefinition( - 'Remove unneded PHP_VERSION_ID check', + 'Remove unneeded PHP_VERSION_ID check', [ new ConfiguredCodeSample( <<<'CODE_SAMPLE' diff --git a/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php b/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php index 3a35520e594..6b405b769bd 100644 --- a/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php +++ b/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php @@ -38,7 +38,7 @@ public function __construct( public function getRuleDefinition(): RuleDefinition { - return new RuleDefinition('Change constructor property promotion to property asssign', [ + return new RuleDefinition('Change constructor property promotion to property assign', [ new CodeSample( <<<'CODE_SAMPLE' class SomeClass diff --git a/rules/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector.php b/rules/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector.php index 14c92a19a20..b7461a00e76 100644 --- a/rules/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector.php +++ b/rules/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector.php @@ -28,7 +28,7 @@ final class AddVoidReturnTypeWhereNoReturnRector extends AbstractRector implements MinPhpVersionInterface, AllowEmptyConfigurableRectorInterface { /** - * @var string using phpdoc instead of a native void type can ease the migration path for consumers of code beeing processed. + * @var string using phpdoc instead of a native void type can ease the migration path for consumers of code being processed. */ final public const USE_PHPDOC = 'use_phpdoc';