Code Duplication    Length = 3-3 lines in 2 locations

Sniff.php 2 locations

@@ 957-959 (lines=3) @@
954
        $tokens = $phpcsFile->getTokens();
955
956
        // Check for the existence of the token.
957
        if ($stackPtr === false || isset($tokens[$stackPtr]) === false) {
958
            return false;
959
        }
960
961
        if ($tokens[$stackPtr]['code'] !== T_NAMESPACE) {
962
            return false;
@@ 1066-1068 (lines=3) @@
1063
    {
1064
        $tokens = $phpcsFile->getTokens();
1065
1066
        if (isset($tokens[$stackPtr]) === false || $tokens[$stackPtr]['code'] !== T_VARIABLE) {
1067
            return false;
1068
        }
1069
1070
        if ($this->inClassScope($phpcsFile, $stackPtr, false) === false) {
1071
            return false;