private function getBinaryInteger(File $phpcsFile, $tokens, $stackPtr)
    {
        $length = 2; // PHP < 5.4 T_LNUMBER + T_STRING.

        if ($this->isLowPHPVersion === false) {
            $i = $stackPtr;
            while ($tokens[$i]['code'] === \T_LNUMBER) {
                $i++;
            }
            $length = ($i - $stackPtr);
        }

        return $phpcsFile->getTokensAsString($stackPtr, $length);
    }
private function getBinaryInteger(File $phpcsFile, $tokens, $stackPtr)
    {
        $length = 2; // PHP < 5.4 T_LNUMBER + T_STRING.

        if ($this->isLowPHPVersion === false) {
            $i = $stackPtr;
            while ($tokens[$i]['code'] === \T_LNUMBER) {
                $i++;
            }
            $length = ($i - $stackPtr);
        }

        return $phpcsFile->getTokensAsString($stackPtr, $length);
    }
private function getBinaryInteger ( File $ phpcsFile , $ tokens , $ stackPtr ) { $ length = 2 ; // PHP < 5.4 T_LNUMBER + T_STRING. if ( $ this -> isLowPHPVersion === false ) { $ i = $ stackPtr ; while ( $ tokens [ $ i ] [ 'code' ] === \ T_LNUMBER ) { $ i ++ ; } $ length = ( $ i - $ stackPtr ) ; } return $ phpcsFile -> getTokensAsString ( $ stackPtr , $ length ) ; }
Retrieve the content of the tokens which together look like a binary integer.

@param \PHP_CodeSniffer_File $phpcsFile The file being scanned.
@param array                 $tokens    Token stack.
@param int                   $stackPtr  The position of the current token in
the stack.

@return string
Retrieve the content of the tokens which together look like a binary integer .