Code Duplication    Length = 9-9 lines in 2 locations

Sniffs/PHP/ValidIntegersSniff.php 2 locations

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