Code Duplication    Length = 9-9 lines in 2 locations

Sniffs/PHP/ValidIntegersSniff.php 2 locations

@@ 188-196 (lines=9) @@
185
     *
186
     * @return bool
187
     */
188
    private function isInvalidOctalInteger($tokens, $stackPtr)
189
    {
190
        $token = $tokens[$stackPtr];
191
192
        if ($token['code'] === T_LNUMBER && preg_match('`^0[0-7]*[8-9]+[0-9]*$`D', $token['content']) === 1) {
193
            return true;
194
        }
195
196
        return false;
197
    }
198
199
    /**
@@ 207-215 (lines=9) @@
204
     *
205
     * @return bool
206
     */
207
    private function isHexidecimalNumericString($tokens, $stackPtr)
208
    {
209
        $token = $tokens[$stackPtr];
210
211
        if ($token['code'] === T_CONSTANT_ENCAPSED_STRING && preg_match('`^0x[a-f0-9]+$`iD', $this->stripQuotes($token['content'])) === 1) {
212
            return true;
213
        }
214
215
        return false;
216
    }
217
218
}//end class