| Conditions | 4 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function process() |
||
| 38 | { |
||
| 39 | call_user_func_array($this->builder->getMessageCb(), ['COPY', 'Copying cache']); |
||
| 40 | |||
| 41 | $cacheDirImages = $this->config->getDestinationDir().'/'.$this->config->get('cache.dir').'/'.$this->config->get('cache.images.dir'); |
||
| 42 | if ($this->config->get('cache.external')) { |
||
| 43 | $cacheDirImages = $this->config->get('cache.dir').'/'.$this->config->get('cache.images.dir'); |
||
| 44 | } |
||
| 45 | if ($this->copy($cacheDirImages, 'images')) { |
||
| 46 | if ((bool) $this->config->get('cache.enabled') === false) { |
||
| 47 | Util::getFS()->remove($cacheDirImages); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | call_user_func_array($this->builder->getMessageCb(), ['COPY_PROGRESS', 'Start copy', 0, $this->count]); |
||
| 52 | call_user_func_array($this->builder->getMessageCb(), ['COPY_PROGRESS', 'Copied', $this->count, $this->count]); |
||
| 53 | } |
||
| 55 |