getTokens(); $prevPtr = $phpcsFile->findPrevious(T_SEMICOLON, ($stackPtr - 1)); if (false === $prevPtr) { return; } if ($tokens[$prevPtr]['line'] === $tokens[$stackPtr]['line']) { $error = 'Each property must be on a line by itself'; $phpcsFile->addError($error, $stackPtr, 'SameLine'); } } }