Code Duplication    Length = 3-3 lines in 2 locations

Sniff.php 2 locations

@@ 1042-1044 (lines=3) @@
1039
            return $tokens[$stackPtr]['code'];
1040
        }
1041
1042
        if ($tokens[$stackPtr]['code'] !== T_FUNCTION && $tokens[$stackPtr]['code'] !== T_CLOSURE) {
1043
            return false;
1044
        }
1045
1046
        if (isset($tokens[$stackPtr]['parenthesis_closer'], $tokens[$stackPtr]['scope_opener']) === false
1047
            || ($tokens[$stackPtr]['parenthesis_closer'] + 1) === $tokens[$stackPtr]['scope_opener']
@@ 1182-1184 (lines=3) @@
1179
            return false;
1180
        }
1181
1182
        if ($tokens[$stackPtr]['code'] !== T_FUNCTION && $tokens[$stackPtr]['code'] !== T_CLOSURE) {
1183
            throw new PHP_CodeSniffer_Exception('$stackPtr must be of type T_FUNCTION or T_CLOSURE');
1184
        }
1185
1186
        $opener = $tokens[$stackPtr]['parenthesis_opener'];
1187
        $closer = $tokens[$stackPtr]['parenthesis_closer'];