getTokens(); if ($tokens[$stackPtr]['content'] !== $this->function) { return; } $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, $stackPtr - 1, null, true); if (in_array($tokens[$prevToken]['code'], $this->ignoreTokens)) { return; } $nextToken = $phpcsFile->findNext([T_WHITESPACE, T_OPEN_PARENTHESIS], $stackPtr + 1, null, true); if (in_array($tokens[$nextToken]['code'], Tokens::$stringTokens) && preg_match('/[#\/|~\}\)][imsxADSUXJu]*e[imsxADSUXJu]*.$/', $tokens[$nextToken]['content']) ) { $phpcsFile->addError( $this->errorMessage, $stackPtr, $this->errorCode, [$tokens[$stackPtr]['content']] ); } } }