getTokens(); $prevPtr = $stackPtr - 1; $nextPtr = $stackPtr + 1; if (($tokens[$prevPtr]['code'] !== T_WHITESPACE) || ($tokens[$nextPtr]['code'] !== T_WHITESPACE)) { $phpcsFile->addError('Spaces should be before and after combinators', $stackPtr, 'NoSpaces'); } } }