public function addMessagesFromTokens($type, FileTokens $fileTokens)
    {
        foreach ($fileTokens->tokens as $token) {
            if ($token->hasTokenBeenFound()) {
                $this->addSuccess(sprintf('In %s, found %s %s', $fileTokens->file, $type, implode(' OR ', $token->tokens)));
            } else {
                $this->addError(sprintf('In %s, failed to find %s %s', $fileTokens->file, $type, implode(' OR ', $token->tokens)));
            }
        }
    }
public function addMessagesFromTokens($type, FileTokens $fileTokens)
    {
        foreach ($fileTokens->tokens as $token) {
            if ($token->hasTokenBeenFound()) {
                $this->addSuccess(sprintf('In %s, found %s %s', $fileTokens->file, $type, implode(' OR ', $token->tokens)));
            } else {
                $this->addError(sprintf('In %s, failed to find %s %s', $fileTokens->file, $type, implode(' OR ', $token->tokens)));
            }
        }
    }
public function addMessagesFromTokens ( $ type , FileTokens $ fileTokens ) { foreach ( $ fileTokens -> tokens as $ token ) { if ( $ token -> hasTokenBeenFound ( ) ) { $ this -> addSuccess ( sprintf ( 'In %s, found %s %s' , $ fileTokens -> file , $ type , implode ( ' OR ' , $ token -> tokens ) ) ) ; } else { $ this -> addError ( sprintf ( 'In %s, failed to find %s %s' , $ fileTokens -> file , $ type , implode ( ' OR ' , $ token -> tokens ) ) ) ; } } }
Add messages about finding or not finding tokens in a file.

@param string     $type
@param FileTokens $fileTokens
Add messages about finding or not finding tokens in a file .