Skip to content

Commit 3c00f7b

Browse files
committed
remove duplicate test case
1 parent c048e00 commit 3c00f7b

3 files changed

Lines changed: 4 additions & 17 deletions

File tree

src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ try {
114114
} catch (Exception | RuntimeException $e) {
115115
}
116116

117-
// Invalid because of no space.
118-
try {
119-
// nothing
120-
} catch (Exception|RuntimeException $e) {
121-
}
122-
123117
// phpcs:set PSR12.Operators.OperatorSpacing perCompatible 3.0
124118

125119
// Valid.
@@ -152,7 +146,7 @@ try {
152146
) {
153147
}
154148

155-
// Invalid becasue of one space.
149+
// Invalid because of one space.
156150
try {
157151
// nothing
158152
} catch (Exception | RuntimeException $e) {

src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc.fixed

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ try {
114114
} catch (Exception | RuntimeException $e) {
115115
}
116116

117-
// Invalid because of no space.
118-
try {
119-
// nothing
120-
} catch (Exception | RuntimeException $e) {
121-
}
122-
123117
// phpcs:set PSR12.Operators.OperatorSpacing perCompatible 3.0
124118

125119
// Valid.
@@ -152,7 +146,7 @@ try {
152146
) {
153147
}
154148

155-
// Invalid becasue of one space.
149+
// Invalid because of one space.
156150
try {
157151
// nothing
158152
} catch (Exception|RuntimeException $e) {

src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ public function getErrorList($testFile = '')
5656
40 => 1,
5757
44 => 2,
5858
47 => 2,
59-
120 => 2,
59+
152 => 2,
6060
158 => 2,
61-
164 => 2,
62-
172 => 2,
61+
166 => 2,
6362
];
6463
default:
6564
return [];

0 commit comments

Comments
 (0)