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;
    }
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;
    }
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 ; }
Runs through each review on each file, collecting any errors.

@return StaticReview
Runs through each review on each file collecting any errors .