original_string: 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)));
              }
          }
      }
code: 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)));
              }
          }
      }
code_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 ) ) ) ; } } }
docstring: Add messages about finding or not finding tokens in a file.
  
  @param string     $type
  @param FileTokens $fileTokens
docstring_tokens: Add messages about finding or not finding tokens in a file .