protected function isValidAssignment(File $phpcsFile, $stackPtr, $end)
    {
        $tokens = $phpcsFile->getTokens();
        $next   = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), $end, true);
        if ($next === false || $tokens[$next]['code'] !== \T_EQUAL) {
            // No value assigned.
            return true;
        }

        return $this->isStaticValue($phpcsFile, $tokens, ($next + 1), ($end - 1));
    }
protected function isValidAssignment(File $phpcsFile, $stackPtr, $end)
    {
        $tokens = $phpcsFile->getTokens();
        $next   = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), $end, true);
        if ($next === false || $tokens[$next]['code'] !== \T_EQUAL) {
            // No value assigned.
            return true;
        }

        return $this->isStaticValue($phpcsFile, $tokens, ($next + 1), ($end - 1));
    }
protected function isValidAssignment ( File $ phpcsFile , $ stackPtr , $ end ) { $ tokens = $ phpcsFile -> getTokens ( ) ; $ next = $ phpcsFile -> findNext ( Tokens :: $ emptyTokens , ( $ stackPtr + 1 ) , $ end , true ) ; if ( $ next === false || $ tokens [ $ next ] [ 'code' ] !== \ T_EQUAL ) { // No value assigned. return true ; } return $ this -> isStaticValue ( $ phpcsFile , $ tokens , ( $ next + 1 ) , ( $ end - 1 ) ) ; }
Is a value declared and is the value declared valid pre-PHP 5.6 ?

@param \PHP_CodeSniffer_File $phpcsFile The file being scanned.
@param int                   $stackPtr  The position of the current token in the
stack passed in $tokens.
@param int                   $end       The end of the value definition.
This will normally be a comma or semi-colon.

@return bool
Is a value declared and is the value declared valid pre - PHP 5 . 6 ?