mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-22 18:54:39 +01:00
Move SimplifyBinarySwitchRector to BinarySwitchToIfElseRector in CodingStyle level
This commit is contained in:
parent
4f58034c93
commit
5eb323638f
@ -1,2 +0,0 @@
|
||||
services:
|
||||
Rector\CodeQuality\Rector\Switch_\SimplifyBinarySwitchRector: ~
|
@ -1,6 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Rector\CodeQuality\Rector\Switch_;
|
||||
namespace Rector\CodingStyle\Rector\Switch_;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\BinaryOp\Equal;
|
||||
@ -15,7 +15,7 @@ use Rector\Rector\AbstractRector;
|
||||
use Rector\RectorDefinition\CodeSample;
|
||||
use Rector\RectorDefinition\RectorDefinition;
|
||||
|
||||
final class SimplifyBinarySwitchRector extends AbstractRector
|
||||
final class BinarySwitchToIfElseRector extends AbstractRector
|
||||
{
|
||||
public function getDefinition(): RectorDefinition
|
||||
{
|
@ -1,14 +1,14 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\Switch_\SimplifyBinarySwitchRector;
|
||||
namespace Rector\CodingStyle\Tests\Rector\Switch_\BinarySwitchToIfElseRector;
|
||||
|
||||
use Iterator;
|
||||
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
|
||||
|
||||
/**
|
||||
* @covers \Rector\CodeQuality\Rector\Switch_\SimplifyBinarySwitchRector
|
||||
* @covers \Rector\CodingStyle\Rector\Switch_\BinarySwitchToIfElseRector
|
||||
*/
|
||||
final class SimplifyBinarySwitchRectorTest extends AbstractRectorTestCase
|
||||
final class BinarySwitchToIfElseRectorTest extends AbstractRectorTestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider provideWrongToFixedFiles()
|
@ -0,0 +1,2 @@
|
||||
services:
|
||||
Rector\CodingStyle\Rector\Switch_\BinarySwitchToIfElseRector: ~
|
Loading…
x
Reference in New Issue
Block a user