Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ class FixmeUnitTest extends AbstractSniffUnitTest
* The key of the array should represent the line number and the value
* should represent the number of errors that should occur on that line.
*
* @param string $testFile The name of the file being tested.
*
* @return array<int, int>
*/
public function getErrorList($testFile='FixmeUnitTest.inc')
public function getErrorList()
{
return [
3 => 1,
Expand All @@ -53,11 +51,9 @@ public function getErrorList($testFile='FixmeUnitTest.inc')
* The key of the array should represent the line number and the value
* should represent the number of warnings that should occur on that line.
*
* @param string $testFile The name of the file being tested.
*
* @return array<int, int>
*/
public function getWarningList($testFile='FixmeUnitTest.inc')
public function getWarningList()
{
return [];

Expand Down
8 changes: 2 additions & 6 deletions src/Standards/Generic/Tests/Commenting/TodoUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ class TodoUnitTest extends AbstractSniffUnitTest
* The key of the array should represent the line number and the value
* should represent the number of errors that should occur on that line.
*
* @param string $testFile The name of the file being tested.
*
* @return array<int, int>
*/
public function getErrorList($testFile='TodoUnitTest.inc')
public function getErrorList()
{
return [];

Expand All @@ -43,11 +41,9 @@ public function getErrorList($testFile='TodoUnitTest.inc')
* The key of the array should represent the line number and the value
* should represent the number of warnings that should occur on that line.
*
* @param string $testFile The name of the file being tested.
*
* @return array<int, int>
*/
public function getWarningList($testFile='TodoUnitTest.inc')
public function getWarningList()
{
return [
3 => 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class InlineControlStructureUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='InlineControlStructureUnitTest.1.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'InlineControlStructureUnitTest.1.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getErrorList()
*
* @return array<int, int>
*/
public function getWarningList($testFile='MultipleStatementAlignmentUnitTest.inc')
public function getWarningList($testFile='')
{
switch ($testFile) {
case 'MultipleStatementAlignmentUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class LowerCaseConstantUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'LowerCaseConstantUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class UnnecessaryStringConcatUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='UnnecessaryStringConcatUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'UnnecessaryStringConcatUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GitMergeConflictUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='GitMergeConflictUnitTest.1.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'GitMergeConflictUnitTest.1.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function setCliValues($testFile, $config)
*
* @return array<int, int>
*/
public function getErrorList($testFile='DisallowSpaceIndentUnitTest.1.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'DisallowSpaceIndentUnitTest.1.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class IncrementDecrementSpacingUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='IncrementDecrementSpacingUnitTest.inc')
public function getErrorList($testFile='')
{
$errors = [
5 => 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function setCliValues($testFile, $config)
*
* @return array<int, int>
*/
public function getErrorList($testFile='ScopeIndentUnitTest.inc')
public function getErrorList($testFile='')
{
if ($testFile === 'ScopeIndentUnitTest.1.js') {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FirebugConsoleUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='FirebugConsoleUnitTest.js')
public function getErrorList($testFile='')
{
if ($testFile !== 'FirebugConsoleUnitTest.js') {
return [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AssignThisUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='AssignThisUnitTest.js')
public function getErrorList($testFile='')
{
if ($testFile !== 'AssignThisUnitTest.js') {
return [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ class CreateWidgetTypeCallbackUnitTest extends AbstractSniffUnitTest
* The key of the array should represent the line number and the value
* should represent the number of errors that should occur on that line.
*
* @param string $testFile The name of the file being tested.
*
* @return array<int, int>
*/
public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js')
public function getErrorList()
{
return [
18 => 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class JoinStringsUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='JoinStringsUnitTest.js')
public function getErrorList($testFile='')
{
if ($testFile !== 'JoinStringsUnitTest.js') {
return [];
Expand Down
4 changes: 2 additions & 2 deletions src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FileCommentUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='FileCommentUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'FileCommentUnitTest.1.inc':
Expand Down Expand Up @@ -74,7 +74,7 @@ public function getErrorList($testFile='FileCommentUnitTest.inc')
*
* @return array<int, int>
*/
public function getWarningList($testFile='FileCommentUnitTest.inc')
public function getWarningList($testFile='')
{
switch ($testFile) {
case 'FileCommentUnitTest.1.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MultiLineConditionUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='MultiLineConditionUnitTest.inc')
public function getErrorList($testFile='')
{
$errors = [
21 => 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='FunctionCallSignatureUnitTest.inc')
public function getErrorList($testFile='')
{
if ($testFile === 'FunctionCallSignatureUnitTest.js') {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FunctionDeclarationUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='FunctionDeclarationUnitTest.inc')
public function getErrorList($testFile='')
{
if ($testFile === 'FunctionDeclarationUnitTest.inc') {
$errors = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DocCommentAlignmentUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='DocCommentAlignmentUnitTest.inc')
public function getErrorList($testFile='')
{
$errors = [
3 => 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FileCommentUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='FileCommentUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'FileCommentUnitTest.1.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class InlineCommentUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='InlineCommentUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'InlineCommentUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class LongConditionClosingCommentUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='LongConditionClosingCommentUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'LongConditionClosingCommentUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PostStatementCommentUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='PostStatementCommentUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'PostStatementCommentUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ControlSignatureUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='ControlSignatureUnitTest.inc')
public function getErrorList($testFile='')
{
$errors = [
7 => 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ForLoopDeclarationUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='ForLoopDeclarationUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'ForLoopDeclarationUnitTest.inc':
Expand Down Expand Up @@ -118,7 +118,7 @@ public function getErrorList($testFile='ForLoopDeclarationUnitTest.inc')
*
* @return array<int, int>
*/
public function getWarningList($testFile='ForLoopDeclarationUnitTest.inc')
public function getWarningList($testFile='')
{
switch ($testFile) {
case 'ForLoopDeclarationUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SwitchDeclarationUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='SwitchDeclarationUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'SwitchDeclarationUnitTest.inc':
Expand Down Expand Up @@ -143,7 +143,7 @@ public function getErrorList($testFile='SwitchDeclarationUnitTest.inc')
*
* @return array<int, int>
*/
public function getWarningList($testFile='SwitchDeclarationUnitTest.inc')
public function getWarningList($testFile='')
{
if ($testFile === 'SwitchDeclarationUnitTest.js') {
return [273 => 1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class OperatorBracketUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='OperatorBracketUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'OperatorBracketUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MultiLineFunctionDeclarationUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='MultiLineFunctionDeclarationUnitTest.inc')
public function getErrorList($testFile='')
{
if ($testFile === 'MultiLineFunctionDeclarationUnitTest.inc') {
$errors = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DisallowObjectStringIndexUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='DisallowObjectStringIndexUnitTest.js')
public function getErrorList($testFile='')
{
if ($testFile !== 'DisallowObjectStringIndexUnitTest.js') {
return [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ComparisonOperatorUsageUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='ComparisonOperatorUsageUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'ComparisonOperatorUsageUnitTest.inc':
Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getErrorList()
*
* @return array<int, int>
*/
public function getWarningList($testFile='CommentedOutCodeUnitTest.inc')
public function getWarningList($testFile='')
{
switch ($testFile) {
case 'CommentedOutCodeUnitTest.inc':
Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DisallowInlineIfUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='DisallowInlineIfUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'DisallowInlineIfUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DisallowSizeFunctionsInLoopsUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='DisallowSizeFunctionsInLoopsUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='ControlStructureSpacingUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'ControlStructureSpacingUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FunctionClosingBraceSpaceUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='FunctionClosingBraceSpaceUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'FunctionClosingBraceSpaceUnitTest.inc':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FunctionOpeningBraceSpaceUnitTest extends AbstractSniffUnitTest
*
* @return array<int, int>
*/
public function getErrorList($testFile='FunctionOpeningBraceSpaceUnitTest.inc')
public function getErrorList($testFile='')
{
switch ($testFile) {
case 'FunctionOpeningBraceSpaceUnitTest.inc':
Expand Down
Loading