function _analyzePhpFiles() { if (!$this->_pf->packagefile) { throw new \Pyrus\PackageFile\Exception('Cannot validate files, no path to package file is set (use setPackageFile())'); } foreach ($this->_pf->contents as $fa) { if (!file_exists($this->_pf->getFilePath($fa->name))) { $this->errors->E_ERROR[] = new \Pyrus\PackageFile\Exception('File "' . $this->_pf->getFilePath($fa->name) . '" in package.xml does not exist'); continue; } $this->analyzeSourceCode($this->_pf->getFilePath($fa->name)); } return !count($this->errors->E_ERROR); }