original_string: public function findRequiredFiles(array $files)
      {
          foreach ($files as $file) {
              if (file_exists($this->plugin->directory.'/'.$file)) {
                  $this->addSuccess(sprintf('Found required file: %s', $file));
              } else {
                  $this->addError(sprintf('Failed to find required file: %s', $file));
              }
          }
      }
code: public function findRequiredFiles(array $files)
      {
          foreach ($files as $file) {
              if (file_exists($this->plugin->directory.'/'.$file)) {
                  $this->addSuccess(sprintf('Found required file: %s', $file));
              } else {
                  $this->addError(sprintf('Failed to find required file: %s', $file));
              }
          }
      }
code_tokens: public function findRequiredFiles ( array $ files ) { foreach ( $ files as $ file ) { if ( file_exists ( $ this -> plugin -> directory . '/' . $ file ) ) { $ this -> addSuccess ( sprintf ( 'Found required file: %s' , $ file ) ) ; } else { $ this -> addError ( sprintf ( 'Failed to find required file: %s' , $ file ) ) ; } } }
docstring: Ensure a list of files exists.
  
  @param array $files
docstring_tokens: Ensure a list of files exists .