Skip to content

Commit d7049db

Browse files
rodrigoprimodingo-d
authored andcommitted
Remove unused first parameter from getErrorList() and getWarningList()
This commit removes the first paramter from getErrorList() and getWarningList() when the parameter is not used inside the method.
1 parent 6590b7b commit d7049db

File tree

4 files changed

+6
-18
lines changed

4 files changed

+6
-18
lines changed

src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ class FixmeUnitTest extends AbstractSniffUnitTest
2727
* The key of the array should represent the line number and the value
2828
* should represent the number of errors that should occur on that line.
2929
*
30-
* @param string $testFile The name of the file being tested.
31-
*
3230
* @return array<int, int>
3331
*/
34-
public function getErrorList($testFile='FixmeUnitTest.inc')
32+
public function getErrorList()
3533
{
3634
return [
3735
3 => 1,
@@ -53,11 +51,9 @@ public function getErrorList($testFile='FixmeUnitTest.inc')
5351
* The key of the array should represent the line number and the value
5452
* should represent the number of warnings that should occur on that line.
5553
*
56-
* @param string $testFile The name of the file being tested.
57-
*
5854
* @return array<int, int>
5955
*/
60-
public function getWarningList($testFile='FixmeUnitTest.inc')
56+
public function getWarningList()
6157
{
6258
return [];
6359

src/Standards/Generic/Tests/Commenting/TodoUnitTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ class TodoUnitTest extends AbstractSniffUnitTest
2626
* The key of the array should represent the line number and the value
2727
* should represent the number of errors that should occur on that line.
2828
*
29-
* @param string $testFile The name of the file being tested.
30-
*
3129
* @return array<int, int>
3230
*/
33-
public function getErrorList($testFile='TodoUnitTest.inc')
31+
public function getErrorList()
3432
{
3533
return [];
3634

@@ -43,11 +41,9 @@ public function getErrorList($testFile='TodoUnitTest.inc')
4341
* The key of the array should represent the line number and the value
4442
* should represent the number of warnings that should occur on that line.
4543
*
46-
* @param string $testFile The name of the file being tested.
47-
*
4844
* @return array<int, int>
4945
*/
50-
public function getWarningList($testFile='TodoUnitTest.inc')
46+
public function getWarningList()
5147
{
5248
return [
5349
3 => 1,

src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ class CreateWidgetTypeCallbackUnitTest extends AbstractSniffUnitTest
2626
* The key of the array should represent the line number and the value
2727
* should represent the number of errors that should occur on that line.
2828
*
29-
* @param string $testFile The name of the file being tested.
30-
*
3129
* @return array<int, int>
3230
*/
33-
public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js')
31+
public function getErrorList()
3432
{
3533
return [
3634
18 => 1,

src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ class LogicalOperatorSpacingUnitTest extends AbstractSniffUnitTest
2626
* The key of the array should represent the line number and the value
2727
* should represent the number of errors that should occur on that line.
2828
*
29-
* @param string $testFile The name of the file being tested.
30-
*
3129
* @return array<int, int>
3230
*/
33-
public function getErrorList($testFile='LogicalOperatorSpacingUnitTest.inc')
31+
public function getErrorList()
3432
{
3533
return [
3634
4 => 2,

0 commit comments

Comments
 (0)