Skip to content

Commit

Permalink
Fix wrong typos rebase (#1686)
Browse files Browse the repository at this point in the history
* Typos (#1684)

* Typos

* Fix typos on rules to be generated in docs

* typo fix simplify

Co-authored-by: Phil E. Taylor <phil@phil-taylor.com>
  • Loading branch information
samsonasik and PhilETaylor committed Jan 16, 2022
1 parent 6b965fe commit a66d1fb
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions build/target-repository/docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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!**

Expand Down Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use stdClass;
/**
* @param DateTime|stdClass $value
*/
function reasssignOnNotTypedParam($value)
function reassignOnNotTypedParam($value)
{
$value = rand(0, 1)
? new stdClass
Expand Down Expand Up @@ -37,7 +37,7 @@ use stdClass;
/**
* @param DateTime|stdClass $value
*/
function reasssignOnNotTypedParam($value)
function reassignOnNotTypedParam($value)
{
$value = rand(0, 1)
? new stdClass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit a66d1fb

Please sign in to comment.