Chris@0: getTokens(); Chris@0: $namePtr = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); Chris@0: $name = $tokens[$namePtr]['content']; Chris@0: if (substr($name, -9) !== 'Interface') { Chris@0: $warn = 'Interface names should always have the suffix "Interface"'; Chris@0: $phpcsFile->addWarning($warn, $namePtr, 'InterfaceSuffix'); Chris@0: } Chris@0: Chris@0: }//end process() Chris@0: Chris@0: Chris@0: }//end class