Skip to content

Commit e50e738

Browse files
committed
Rename all operations to CaseChanged
1 parent 667e0be commit e50e738

10 files changed

+15
-15
lines changed

src/PHPSemVerChecker/Analyzer/ClassAnalyzer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PHPSemVerChecker\Operation\ClassAdded;
66
use PHPSemVerChecker\Operation\ClassRemoved;
7-
use PHPSemVerChecker\Operation\ClassRenamedCaseOnly;
7+
use PHPSemVerChecker\Operation\ClassCaseChanged;
88
use PHPSemVerChecker\Registry\Registry;
99
use PHPSemVerChecker\Report\Report;
1010

@@ -72,7 +72,7 @@ public function analyze(Registry $registryBefore, Registry $registryAfter)
7272
if ($classBefore->name !== $classAfter->name) {
7373
$report->add(
7474
$this->context,
75-
new ClassRenamedCaseOnly(
75+
new ClassCaseChanged(
7676
$fileBefore,
7777
$classBefore,
7878
$fileAfter,

src/PHPSemVerChecker/Analyzer/ClassMethodAnalyzer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use PHPSemVerChecker\Operation\ClassMethodParameterTypingAdded;
1818
use PHPSemVerChecker\Operation\ClassMethodParameterTypingRemoved;
1919
use PHPSemVerChecker\Operation\ClassMethodRemoved;
20-
use PHPSemVerChecker\Operation\ClassMethodRenamedCaseOnly;
20+
use PHPSemVerChecker\Operation\ClassMethodCaseChanged;
2121
use PHPSemVerChecker\Report\Report;
2222

2323
class ClassMethodAnalyzer {
@@ -97,7 +97,7 @@ public function analyze(Stmt $contextBefore, Stmt $contextAfter)
9797
if ($methodBefore->name !== $methodAfter->name) {
9898
$report->add(
9999
$this->context,
100-
new ClassMethodRenamedCaseOnly(
100+
new ClassMethodCaseChanged(
101101
$this->context,
102102
$this->fileBefore,
103103
$contextAfter,

src/PHPSemVerChecker/Analyzer/FunctionAnalyzer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use PHPSemVerChecker\Operation\FunctionParameterTypingAdded;
1818
use PHPSemVerChecker\Operation\FunctionParameterTypingRemoved;
1919
use PHPSemVerChecker\Operation\FunctionRemoved;
20-
use PHPSemVerChecker\Operation\FunctionRenamedCaseOnly;
20+
use PHPSemVerChecker\Operation\FunctionCaseChanged;
2121
use PHPSemVerChecker\Registry\Registry;
2222
use PHPSemVerChecker\Report\Report;
2323

@@ -83,7 +83,7 @@ public function analyze(Registry $registryBefore, Registry $registryAfter)
8383
// If we entered this section then the normalized names (lowercase) were equal.
8484
if ($functionBefore->name !== $functionAfter->name) {
8585
$report->addFunction(
86-
new FunctionRenamedCaseOnly(
86+
new FunctionCaseChanged(
8787
$fileBefore,
8888
$functionBefore,
8989
$fileAfter,

src/PHPSemVerChecker/Analyzer/InterfaceAnalyzer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PHPSemVerChecker\Operation\InterfaceAdded;
66
use PHPSemVerChecker\Operation\InterfaceRemoved;
7-
use PHPSemVerChecker\Operation\InterfaceRenamedCaseOnly;
7+
use PHPSemVerChecker\Operation\InterfaceCaseChanged;
88
use PHPSemVerChecker\Registry\Registry;
99
use PHPSemVerChecker\Report\Report;
1010

@@ -72,7 +72,7 @@ public function analyze(Registry $registryBefore, Registry $registryAfter)
7272
if ($interfaceBefore->name !== $interfaceAfter->name) {
7373
$report->add(
7474
'interface',
75-
new InterfaceRenamedCaseOnly(
75+
new InterfaceCaseChanged(
7676
$fileBefore,
7777
$interfaceBefore,
7878
$fileAfter,

src/PHPSemVerChecker/Analyzer/TraitAnalyzer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PHPSemVerChecker\Operation\TraitAdded;
66
use PHPSemVerChecker\Operation\TraitRemoved;
7-
use PHPSemVerChecker\Operation\TraitRenamedCaseOnly;
7+
use PHPSemVerChecker\Operation\TraitCaseChanged;
88
use PHPSemVerChecker\Registry\Registry;
99
use PHPSemVerChecker\Report\Report;
1010

@@ -70,7 +70,7 @@ public function analyze(Registry $registryBefore, Registry $registryAfter)
7070
if ($traitBefore->name !== $traitAfter->name) {
7171
$report->add(
7272
$this->context,
73-
new TraitRenamedCaseOnly(
73+
new TraitCaseChanged(
7474
$fileBefore,
7575
$traitBefore,
7676
$fileAfter,

src/PHPSemVerChecker/Operation/ClassRenamedCaseOnly.php renamed to src/PHPSemVerChecker/Operation/ClassCaseChanged.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use PhpParser\Node\Stmt\Class_;
66
use PHPSemVerChecker\Node\Statement\Class_ as PClass;
77

8-
class ClassRenamedCaseOnly extends ClassOperationDelta {
8+
class ClassCaseChanged extends ClassOperationDelta {
99
/**
1010
* @var string
1111
*/

src/PHPSemVerChecker/Operation/ClassMethodRenamedCaseOnly.php renamed to src/PHPSemVerChecker/Operation/ClassMethodCaseChanged.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace PHPSemVerChecker\Operation;
44

5-
class ClassMethodRenamedCaseOnly extends ClassMethodOperationDelta
5+
class ClassMethodCaseChanged extends ClassMethodOperationDelta
66
{
77
/**
88
* @var array

src/PHPSemVerChecker/Operation/FunctionRenamedCaseOnly.php renamed to src/PHPSemVerChecker/Operation/FunctionCaseChanged.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace PHPSemVerChecker\Operation;
44

5-
class FunctionRenamedCaseOnly extends FunctionOperationDelta
5+
class FunctionCaseChanged extends FunctionOperationDelta
66
{
77
/**
88
* @var string

src/PHPSemVerChecker/Operation/InterfaceRenamedCaseOnly.php renamed to src/PHPSemVerChecker/Operation/InterfaceCaseChanged.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace PHPSemVerChecker\Operation;
44

5-
class InterfaceRenamedCaseOnly extends InterfaceOperationDelta {
5+
class InterfaceCaseChanged extends InterfaceOperationDelta {
66
/**
77
* @var string
88
*/

src/PHPSemVerChecker/Operation/TraitRenamedCaseOnly.php renamed to src/PHPSemVerChecker/Operation/TraitCaseChanged.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use PhpParser\Node\Stmt\Trait_;
66
use PHPSemVerChecker\Node\Statement\Trait_ as PTrait;
77

8-
class TraitRenamedCaseOnly extends TraitOperationDelta {
8+
class TraitCaseChanged extends TraitOperationDelta {
99
/**
1010
* @var string
1111
*/

0 commit comments

Comments
 (0)