original_string: public function files(FileCollection $files)
      {
          foreach ($files as $key => $file) {
              $this->getReporter()->progress($key + 1, count($files));
  
              foreach ($this->getReviews()->forFile($file) as $review) {
                  $review->review($this->getReporter(), $file);
              }
          }
  
          return $this;
      }
code: public function files(FileCollection $files)
      {
          foreach ($files as $key => $file) {
              $this->getReporter()->progress($key + 1, count($files));
  
              foreach ($this->getReviews()->forFile($file) as $review) {
                  $review->review($this->getReporter(), $file);
              }
          }
  
          return $this;
      }
code_tokens: public function files ( FileCollection $ files ) { foreach ( $ files as $ key => $ file ) { $ this -> getReporter ( ) -> progress ( $ key + 1 , count ( $ files ) ) ; foreach ( $ this -> getReviews ( ) -> forFile ( $ file ) as $ review ) { $ review -> review ( $ this -> getReporter ( ) , $ file ) ; } } return $ this ; }
docstring: Runs through each review on each file, collecting any errors.
  
  @return StaticReview
docstring_tokens: Runs through each review on each file collecting any errors .