Skip to content

Commit 925dde5

Browse files
authored
Remove SwitchAnalyzer (#419)
1 parent 45dcb12 commit 925dde5

File tree

11 files changed

+5
-477
lines changed

11 files changed

+5
-477
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## v2.4.0 - [Unreleased]
44
- Update PHP CS Fixer to v2.17
55
- Remove PhpCsFixerCustomFixers\Analyzer\ReferenceAnalyzer - use PhpCsFixer\Tokenizer\Analyzer\ReferenceAnalyzer
6+
- Remove PhpCsFixerCustomFixers\Analyzer\SwitchAnalyzer - use PhpCsFixer\Tokenizer\Analyzer\SwitchAnalyzer
67

78
## v2.3.0 - *2020-07-07*
89
- Add NoUselessParenthesisFixer

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[![CI Status](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions)
1010
[![Code coverage](https://img.shields.io/coveralls/github/kubawerlos/php-cs-fixer-custom-fixers/master.svg)](https://coveralls.io/github/kubawerlos/php-cs-fixer-custom-fixers?branch=master)
11-
![Tests](https://img.shields.io/badge/tests-2260-brightgreen.svg)
11+
![Tests](https://img.shields.io/badge/tests-2235-brightgreen.svg)
1212
[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/kubawerlos/php-cs-fixer-custom-fixers/master)](https://stryker-mutator.github.io)
1313
[![Psalm type coverage](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers/coverage.svg)](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers)
1414

dev-tools/psalm.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
<errorLevel type='suppress'>
3939
<file name='./src/Fixer/OrderedClassElementsInternalFixer.php' />
4040
<file name='../src/Analyzer/Analysis/ArrayElementAnalysis.php' />
41-
<file name='../src/Analyzer/Analysis/SwitchAnalysis.php' />
4241
<file name='../src/Fixer/DeprecatingFixerInterface.php' />
4342
</errorLevel>
4443
</PossiblyUnusedMethod>

src/Analyzer/Analysis/CaseAnalysis.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Analyzer/Analysis/SwitchAnalysis.php

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/Analyzer/SwitchAnalyzer.php

Lines changed: 0 additions & 137 deletions
This file was deleted.

src/Fixer/CommentedOutFunctionFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
use PhpCsFixer\FixerDefinition\FixerDefinitionInterface;
2222
use PhpCsFixer\Preg;
2323
use PhpCsFixer\Tokenizer\Analyzer\FunctionsAnalyzer;
24+
use PhpCsFixer\Tokenizer\Analyzer\SwitchAnalyzer;
2425
use PhpCsFixer\Tokenizer\Token;
2526
use PhpCsFixer\Tokenizer\Tokens;
26-
use PhpCsFixerCustomFixers\Analyzer\SwitchAnalyzer;
2727

2828
final class CommentedOutFunctionFixer extends AbstractFixer implements ConfigurationDefinitionFixerInterface
2929
{

src/Fixer/OperatorLinebreakFixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
use PhpCsFixer\FixerDefinition\FixerDefinition;
2121
use PhpCsFixer\FixerDefinition\FixerDefinitionInterface;
2222
use PhpCsFixer\Preg;
23+
use PhpCsFixer\Tokenizer\Analyzer\Analysis\CaseAnalysis;
2324
use PhpCsFixer\Tokenizer\Analyzer\ReferenceAnalyzer;
25+
use PhpCsFixer\Tokenizer\Analyzer\SwitchAnalyzer;
2426
use PhpCsFixer\Tokenizer\Token;
2527
use PhpCsFixer\Tokenizer\Tokens;
26-
use PhpCsFixerCustomFixers\Analyzer\Analysis\CaseAnalysis;
27-
use PhpCsFixerCustomFixers\Analyzer\SwitchAnalyzer;
2828

2929
final class OperatorLinebreakFixer extends AbstractFixer implements ConfigurationDefinitionFixerInterface, DeprecatingFixerInterface
3030
{

tests/Analyzer/Analysis/CaseAnalysisTest.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

tests/Analyzer/Analysis/SwitchAnalysisTest.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)