Chris@0: getTokens(); Chris@0: // Get the first argument passed to l(). Chris@0: $argument = $this->getArgument(1); Chris@0: if ($tokens[$argument['start']]['code'] === T_CONSTANT_ENCAPSED_STRING Chris@0: // If the string starts with a HTML tag we don't complain. Chris@0: && $tokens[$argument['start']]['content']{1} !== '<' Chris@0: ) { Chris@0: $error = 'The $text argument to l() should be enclosed within t() so that it is translatable'; Chris@0: $phpcsFile->addError($error, $stackPtr, 'LArg'); Chris@0: } Chris@0: Chris@0: }//end processFunctionCall() Chris@0: Chris@0: Chris@0: }//end class