Code Duplication    Length = 3-3 lines in 3 locations

Sniff.php 3 locations

@@ 985-987 (lines=3) @@
982
        $tokens = $phpcsFile->getTokens();
983
984
        // Check for the existence of the token.
985
        if ($stackPtr === false || isset($tokens[$stackPtr]) === false) {
986
            return false;
987
        }
988
989
        if ($tokens[$stackPtr]['code'] !== T_NAMESPACE) {
990
            return false;
@@ 1094-1096 (lines=3) @@
1091
    {
1092
        $tokens = $phpcsFile->getTokens();
1093
1094
        if (isset($tokens[$stackPtr]) === false || $tokens[$stackPtr]['code'] !== T_VARIABLE) {
1095
            return false;
1096
        }
1097
1098
        // Note: interfaces can not declare properties.
1099
        $validScopes = array(
@@ 1128-1130 (lines=3) @@
1125
    {
1126
        $tokens = $phpcsFile->getTokens();
1127
1128
        if (isset($tokens[$stackPtr]) === false || $tokens[$stackPtr]['code'] !== T_CONST) {
1129
            return false;
1130
        }
1131
1132
        // Note: traits can not declare constants.
1133
        $validScopes = array(