Skip to content

Commit

Permalink
[Order] Drop OrderPublicInterfaceMethodRector as not practical for us…
Browse files Browse the repository at this point in the history
…e and too much opinionated scope
  • Loading branch information
TomasVotruba committed Jan 22, 2021
1 parent e17fce3 commit d0ae8d2
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 251 deletions.
6 changes: 0 additions & 6 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@
]]);

$services->set(AutoInPhpSymfonyConfigRector::class);
$services->set(OrderPublicInterfaceMethodRector::class)
->call('configure', [[
OrderPublicInterfaceMethodRector::METHOD_ORDER_BY_INTERFACES => [
PhpRectorInterface::class => ['getNodeTypes', 'getRuleDefinition', 'refactor'],
],
]]);

$parameters = $containerConfigurator->parameters();

Expand Down
4 changes: 1 addition & 3 deletions rules/coding-style/src/Node/NameImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@ private function isFunctionOrConstantImportWithSingleName(Name $name): bool
if ($autoImportNames && ! $parentNode instanceof Node && ! Strings::contains(
$fullName,
'\\'
) && function_exists(
$fullName
)) {
) && function_exists($fullName)) {
return true;
}

Expand Down
153 changes: 0 additions & 153 deletions rules/order/src/Rector/Class_/OrderPublicInterfaceMethodRector.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit d0ae8d2

Please sign in to comment.