Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rules/Arguments/Rector/ClassMethod/ArgumentAdderRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'This Rector adds new default arguments in calls of defined methods and class types.',
'Add new default arguments in calls of defined methods and class types',
[
new ConfiguredCodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Replaces defined map of arguments in defined methods and their calls.',
'Replace defined map of arguments in defined methods and their calls',
[
new ConfiguredCodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require being changed depends on the current working directory.',
'Migrate 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 @@ -30,7 +30,7 @@ public function __construct(

public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Remove duplicated key in defined arrays.', [
return new RuleDefinition('Remove duplicated key in defined arrays', [
new CodeSample(
<<<'CODE_SAMPLE'
$item = [
Expand Down
2 changes: 1 addition & 1 deletion rules/Php70/Rector/ClassMethod/Php4ConstructorRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function provideMinPhpVersion(): int
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Changes PHP 4 style constructor to __construct.',
'Change PHP 4 style constructor to `__construct`',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class ExceptionHandlerTypehintRector extends AbstractRector implements Min
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Change typehint from `Exception` to `Throwable`.',
'Change typehint from `Exception` to `Throwable`',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down
2 changes: 1 addition & 1 deletion rules/Php71/Rector/TryCatch/MultiExceptionCatchRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Changes multi catch of same exception to single one | separated.',
'Change multiple catch statements of the same exception to a single one `|` separated',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down
2 changes: 1 addition & 1 deletion rules/Php72/Rector/While_/WhileEachToForeachRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function provideMinPhpVersion(): int
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'each() function is deprecated, use foreach() instead.',
'Use `foreach()` instead of deprecated `each()`',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function provideMinPhpVersion(): int
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Changes case insensitive constants to sensitive ones.',
'Change case insensitive constants to sensitive ones',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down
2 changes: 1 addition & 1 deletion rules/Php73/Rector/FuncCall/SensitiveDefineRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function provideMinPhpVersion(): int
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Changes case insensitive constants to sensitive ones.',
'Change case insensitive constant definition to sensitive one',
[new CodeSample(
<<<'CODE_SAMPLE'
define('FOO', 42, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function provideMinPhpVersion(): int
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Change money_format() to equivalent number_format()',
'Change `money_format()` to equivalent `number_format()`',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Prior PHP 8.2 FilesystemIterator::SKIP_DOTS was always set and could not be removed, therefore FilesystemIterator::SKIP_DOTS is added in order to keep this behaviour.',
'Prior PHP 8.2 FilesystemIterator::SKIP_DOTS was always set and could not be removed, therefore FilesystemIterator::SKIP_DOTS is added in order to keep this behaviour',
[
new CodeSample(
'new FilesystemIterator(__DIR__, FilesystemIterator::KEY_AS_FILENAME);',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class RemoveGetClassGetParentClassNoArgsRector extends AbstractRector impl
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Replace calls to get_class() and get_parent_class() without arguments with self::class and parent::class.',
'Replace calls to `get_class()` and `get_parent_class()` without arguments with `self::class` and `parent::class`',
[
new CodeSample(
<<<'OLD_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(
'Removes defined arguments in defined methods and their calls.',
'Remove defined arguments in defined methods and their calls',
[
new ConfiguredCodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class RenameClassConstFetchRector extends AbstractRector implements Config
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Replaces defined class constants in their calls.',
'Replace defined class constants in their calls',
[
new ConfiguredCodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Turns defined annotations above properties and methods to their new values.',
'Turn defined annotations above properties and methods to their new values',
[
new ConfiguredCodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Change visibility of constant from parent class.',
'Change visibility of constant from parent class',
[
new ConfiguredCodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Change visibility of method from parent class.',
'Change visibility of method from parent class',
[
new ConfiguredCodeSample(
<<<'CODE_SAMPLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Add explicit public method visibility.',
'Add explicit public method visibility',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand Down
Loading