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));
            }
        }
    }
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));
            }
        }
    }
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 ) ) ; } } }
Ensure a list of files exists.

@param array $files
Ensure a list of files exists .