Skip to content

Commit d463140

Browse files
committed
Run phpcbf - Fix extra lines
1 parent 9dc3579 commit d463140

16 files changed

+3
-32
lines changed

Magento2/Tests/Eslint/AbstractEslintTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
abstract class AbstractEslintTestCase extends TestCase
1818
{
1919
/**
20+
* Assert that file contains a specific error.
21+
*
2022
* @param string $testFile
2123
* @param array $expectedMessages
2224
*/

Magento2/Tests/PHPCompatibility/AbstractPrivateMethodsUnitTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public function dataForbiddenAbstractPrivateMethods()
5656
];
5757
}
5858

59-
6059
/**
6160
* Verify that the sniff throws an error for abstract private methods in traits for PHP 7.4
6261
* and doesn't for PHP 8.0.
@@ -91,7 +90,6 @@ public function dataNewTraitAbstractPrivateMethods()
9190
];
9291
}
9392

94-
9593
/**
9694
* Verify the sniff does not throw false positives for valid code.
9795
*
@@ -128,7 +126,6 @@ public function dataNoFalsePositives()
128126
return $cases;
129127
}
130128

131-
132129
/**
133130
* Verify no notices are thrown at all.
134131
*

Magento2/Tests/PHPCompatibility/BaseSniffTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class BaseSniffTest extends TestCase
3939
*
4040
* @var string
4141
*/
42-
const STANDARD_NAME = 'Magento2';
42+
private const STANDARD_NAME = 'Magento2';
4343

4444
/**
4545
* The PHP_CodeSniffer object used for testing.

Magento2/Tests/PHPCompatibility/ChangedIntToBoolParamTypeUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public function dataChangedIntToBoolParamType()
6363
];
6464
}
6565

66-
6766
/**
6867
* Verify no false positives are thrown for valid code.
6968
*
@@ -98,7 +97,6 @@ public function dataNoFalsePositives()
9897
return $data;
9998
}
10099

101-
102100
/**
103101
* Verify no notices are thrown at all.
104102
*

Magento2/Tests/PHPCompatibility/ForbiddenFinalPrivateMethodsUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public function dataForbiddenFinalPrivateMethods()
5757
];
5858
}
5959

60-
6160
/**
6261
* Verify the sniff does not throw false positives for valid code.
6362
*
@@ -91,7 +90,6 @@ public function dataNoFalsePositives()
9190
return $cases;
9291
}
9392

94-
9593
/**
9694
* Verify no notices are thrown at all.
9795
*

Magento2/Tests/PHPCompatibility/NewAttributesUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ public function dataNewAttributes()
107107
return $data;
108108
}
109109

110-
111110
/**
112111
* Verify the sniff does not throw false positives for valid code.
113112
*
@@ -142,7 +141,6 @@ public function dataNoFalsePositives()
142141
return $data;
143142
}
144143

145-
146144
/**
147145
* Verify no notices are thrown at all.
148146
*

Magento2/Tests/PHPCompatibility/NewMagicClassConstantUnitTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public function dataNewMagicClassConstant()
6262
];
6363
}
6464

65-
6665
/**
6766
* Verify that no false positives are thrown for valid code.
6867
*
@@ -95,7 +94,6 @@ public function dataNoFalsePositives()
9594
];
9695
}
9796

98-
9997
/**
10098
* Test correctly identifying the magic class constant when used on instantiated objects.
10199
*
@@ -135,7 +133,6 @@ public function dataNewMagicClassConstantOnObject()
135133
];
136134
}
137135

138-
139136
/**
140137
* Verify no notices are thrown at all.
141138
*

Magento2/Tests/PHPCompatibility/NewMagicConstantDereferencingUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public function dataNewMagicConstantDereferencing()
5959
];
6060
}
6161

62-
6362
/**
6463
* Verify the sniff does not throw false positives for valid code, nor for code which is still invalid.
6564
*
@@ -98,7 +97,6 @@ public function dataNoFalsePositives()
9897
];
9998
}
10099

101-
102100
/**
103101
* Verify no notices are thrown at all.
104102
*

Magento2/Tests/PHPCompatibility/NewNestedStaticAccessUnitTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public function dataNestedStaticAccess()
6969
];
7070
}
7171

72-
7372
/**
7473
* Verify that class constant dereferencing emits an error in PHP 7.4.
7574
*
@@ -100,7 +99,6 @@ public function dataClassConstantDereferencing()
10099
];
101100
}
102101

103-
104102
/**
105103
* Verify the sniff doesn't throw false positives.
106104
*
@@ -133,7 +131,6 @@ public function dataNoFalsePositives()
133131
];
134132
}
135133

136-
137134
/**
138135
* Verify no notices are thrown at all.
139136
*

Magento2/Tests/PHPCompatibility/NewNonCapturingCatchUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public function dataNewNonCapturingCatch()
5656
];
5757
}
5858

59-
6059
/**
6160
* Verify no false positives are thrown for valid code.
6261
*
@@ -89,7 +88,6 @@ public function dataNoFalsePositives()
8988
];
9089
}
9190

92-
9391
/**
9492
* Verify no notices are thrown at all.
9593
*

Magento2/Tests/PHPCompatibility/NewTrailingCommaUnitTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public function dataTrailingComma()
5858
];
5959
}
6060

61-
6261
/**
6362
* Test correctly identifying trailing comma's in closure use lists.
6463
*
@@ -90,7 +89,6 @@ public function dataTrailingCommaClosureUse()
9089
];
9190
}
9291

93-
9492
/**
9593
* Verify the sniff does not throw false positives for valid code.
9694
*
@@ -127,7 +125,6 @@ public function dataNoFalsePositives()
127125
return $data;
128126
}
129127

130-
131128
/**
132129
* Verify no notices are thrown at all.
133130
*

Magento2/Tests/PHPCompatibility/RemovedAssertStringAssertionUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public function dataRemovedAssertStringAssertion()
6060
];
6161
}
6262

63-
6463
/**
6564
* Verify there are no false positives on code this sniff should ignore.
6665
*

Magento2/Tests/PHPCompatibility/RemovedCallingDestructAfterConstructorExitUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public function dataRemovedCallingDestructAfterConstructorExit()
6565
];
6666
}
6767

68-
6968
/**
7069
* Verify the sniff does not throw false positives for valid code.
7170
*
@@ -106,7 +105,6 @@ public function dataNoFalsePositives()
106105
return $cases;
107106
}
108107

109-
110108
/**
111109
* Verify no notices are thrown at all.
112110
*

Magento2/Tests/PHPCompatibility/RemovedGetDefinedFunctionsExcludeDisabledFalseUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public function dataRemovedGetDefinedFunctionsExcludeDisabledFalse()
5252
];
5353
}
5454

55-
5655
/**
5756
* Verify the sniff does not throw false positives for valid code.
5857
*
@@ -68,7 +67,6 @@ public function testNoFalsePositives()
6867
}
6968
}
7069

71-
7270
/**
7371
* Verify no notices are thrown at all.
7472
*

Magento2/Tests/PHPCompatibility/RemovedOptionalBeforeRequiredParamUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public function dataRemovedOptionalBeforeRequiredParam()
5858
];
5959
}
6060

61-
6261
/**
6362
* Verify the sniff does not throw false positives for valid code.
6463
*
@@ -103,7 +102,6 @@ public function dataNoFalsePositives()
103102
return $cases;
104103
}
105104

106-
107105
/**
108106
* Verify no notices are thrown at all.
109107
*

Magento2/Tests/PHPCompatibility/RemovedSplAutoloadRegisterThrowFalseUnitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public function dataRemovedSplAutoloadRegisterThrowFalse()
5252
];
5353
}
5454

55-
5655
/**
5756
* Verify the sniff does not throw false positives for valid code.
5857
*
@@ -68,7 +67,6 @@ public function testNoFalsePositives()
6867
}
6968
}
7069

71-
7270
/**
7371
* Verify no notices are thrown at all.
7472
*

0 commit comments

Comments
 (0)