Commit 3f336783 authored by Aria's avatar Aria

changed method name, added comment

parent 7ccaea08
......@@ -51,7 +51,7 @@ class UpdateKelkooFeed extends Command
$this->deleteOldArchives();
$this->downloadNewFeeds();
if($this->checkMD5()) {
$this->extractFeedFiles();
$this->extractReplaceFeedFiles();
}
}
......@@ -113,7 +113,10 @@ class UpdateKelkooFeed extends Command
return true;
}
private function extractFeedFiles() {
/**
* Extracts the previously downloaded archives into one .xml file and after that deletes the old previous one
*/
private function extractReplaceFeedFiles() {
$archivesInDirectory = scandir($this->localFeedFilePath);
$archiveFileMatches = preg_grep("/[\w\d]*Catalog[\S.]*\.xml\.gz/i", $archivesInDirectory);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment