Code Duplication    Length = 9-9 lines in 2 locations

Sniffs/PHP/ValidIntegersSniff.php 2 locations

@@ 180-188 (lines=9) @@
177
     *
178
     * @return bool
179
     */
180
    private function isInvalidOctalInteger($tokens, $stackPtr) {
181
        $token = $tokens[$stackPtr];
182
183
        if ($token['code'] === T_LNUMBER && preg_match('`^0[0-7]*[8-9]+[0-9]*$`D', $token['content']) === 1) {
184
            return true;
185
        }
186
187
        return false;
188
    }
189
190
    /**
191
     * Is the current token a hexidecimal numeric string ?
@@ 198-206 (lines=9) @@
195
     *
196
     * @return bool
197
     */
198
    private function isHexidecimalNumericString($tokens, $stackPtr) {
199
        $token = $tokens[$stackPtr];
200
201
        if ($token['code'] === T_CONSTANT_ENCAPSED_STRING && preg_match('`^([\'"])0x[a-f0-9]+\1$`iD', $token['content']) === 1) {
202
            return true;
203
        }
204
205
        return false;
206
    }
207
208
}//end class
209