Commit 6516b060 authored by Klaus Purer's avatar Klaus Purer
Browse files

refactor(phpstan): Fix PHPStan reports for level 2 (#3104477)

parent c509b86d
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ class FunctionTriggerErrorSniff extends FunctionCall
    /**
     * Processes this function call.
     *
     * @param PHP_CodeSniffer_File $phpcsFile    The file being scanned.
     * @param \PHP_CodeSniffer\Files\File $phpcsFile    The file being scanned.
     * @param int                         $stackPtr     The position of the function call in
     *                                                  the stack.
     * @param int                         $openBracket  The position of the opening
+3 −3
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ class RemoteAddressSniff implements Sniff
    /**
     * Processes this test, when one of its tokens is encountered.
     *
     * @param \HP_CodeSniffer\Files\File $phpcsFile The current file being processed.
     * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being processed.
     * @param int                         $stackPtr  The position of the current token
     *                                               in the stack passed in $tokens.
     *
+4 −2
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ class ArrayUnitTest extends CoderSniffUnitTest
            ];
        }

        return [];

    }//end getErrorList()


@@ -64,10 +66,10 @@ class ArrayUnitTest extends CoderSniffUnitTest
                59 => 1,
                76 => 1,
            ];
        case 'ArrayUnitTest.1.inc':
            return [];
        }

        return [];

    }//end getWarningList()


+2 −6
Original line number Diff line number Diff line
@@ -23,14 +23,10 @@ class ClassFileNameUnitTest extends CoderSniffUnitTest
        switch ($testFile) {
        case 'ClassFileNameUnitTest.php':
            return [3 => 1];
        case 'drupal8.behat.inc':
            return [];
        case 'class_fle_name_test.module':
            return [];
        case 'markdownFile.md':
            return [];
        }

        return [];

    }//end getErrorList()


+2 −2
Original line number Diff line number Diff line
@@ -23,10 +23,10 @@ class FullyQualifiedNamespaceUnitTest extends CoderSniffUnitTest
        switch ($testFile) {
        case 'FullyQualifiedNamespaceUnitTest.inc':
            return [3 => 1];
        case 'FullyQualifiedNamespaceUnitTest.api.php':
            return [];
        }

        return [];

    }//end getErrorList()


Loading