phpcsFile->findNext( Tokens::$emptyTokens, ( $stackPtr + 1 ), null, true ); if ( false === $nextNonEmpty ) { // Live coding or parse error. return; } if ( \T_INLINE_ELSE !== $this->tokens[ $nextNonEmpty ]['code'] ) { return; } $this->phpcsFile->addError( 'Using short ternaries is not allowed', $stackPtr, 'Found' ); } }