Skip to content

Commit

Permalink
Fix typos in Rector descriptions (#4220)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandoba authored Apr 9, 2024
1 parent 0dc9c1b commit da56ecf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/all_rectors_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ Substitute deprecated method calls of class GeneralUtility

### SubstituteResourceFactoryRector

Substitue `ResourceFactory::getInstance()` through GeneralUtility::makeInstance(ResourceFactory::class)
Substitute `ResourceFactory::getInstance()` through GeneralUtility::makeInstance(ResourceFactory::class)

- class: [`Ssch\TYPO3Rector\TYPO310\v3\SubstituteResourceFactoryRector`](../rules/TYPO310/v3/SubstituteResourceFactoryRector.php)

Expand Down Expand Up @@ -858,7 +858,7 @@ Use controller classes when registering extbase plugins/modules

### UseFileGetContentsForGetUrlRector

Rewirte Method Calls of GeneralUtility::getUrl("somefile.csv") to `@file_get_contents`
Rewrite Method Calls of GeneralUtility::getUrl("somefile.csv") to `@file_get_contents`

- class: [`Ssch\TYPO3Rector\TYPO310\v4\UseFileGetContentsForGetUrlRector`](../rules/TYPO310/v4/UseFileGetContentsForGetUrlRector.php)

Expand Down Expand Up @@ -924,7 +924,7 @@ Turns TYPO3\CMS\Extbase\Utility\TypeHandlingUtility::hex2bin calls to native php

### UseTwoLetterIsoCodeFromSiteLanguageRector

The usage of the propery sys_language_isocode is deprecated. Use method getTwoLetterIsoCode of SiteLanguage
The usage of the property sys_language_isocode is deprecated. Use method getTwoLetterIsoCode of SiteLanguage

- class: [`Ssch\TYPO3Rector\TYPO310\v0\UseTwoLetterIsoCodeFromSiteLanguageRector`](../rules/TYPO310/v0/UseTwoLetterIsoCodeFromSiteLanguageRector.php)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function refactor(Node $node): ?Node
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'The usage of the propery sys_language_isocode is deprecated. Use method getTwoLetterIsoCode of SiteLanguage',
'The usage of the property sys_language_isocode is deprecated. Use method getTwoLetterIsoCode of SiteLanguage',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down
2 changes: 1 addition & 1 deletion rules/TYPO310/v3/SubstituteResourceFactoryRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function refactor(Node $node): ?Node
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Substitue ResourceFactory::getInstance() through GeneralUtility::makeInstance(ResourceFactory::class)',
'Substitute ResourceFactory::getInstance() through GeneralUtility::makeInstance(ResourceFactory::class)',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down
2 changes: 1 addition & 1 deletion rules/TYPO310/v4/UseFileGetContentsForGetUrlRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function refactor(Node $node): ?Node
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Rewirte Method Calls of GeneralUtility::getUrl("somefile.csv") to @file_get_contents',
'Rewrite Method Calls of GeneralUtility::getUrl("somefile.csv") to @file_get_contents',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down

0 comments on commit da56ecf

Please sign in to comment.