| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function process() |
||
| 32 | { |
||
| 33 | call_user_func_array($this->builder->getMessageCb(), ['COPY', 'Copying assets']); |
||
| 34 | |||
| 35 | $cacheDirImages = $this->config->getCachePath().'/'.(string) $this->config->get('cache.images.dir'); |
||
| 36 | if ($this->copy($cacheDirImages, 'images')) { |
||
| 37 | if ((bool) $this->config->get('cache.enabled') === false) { |
||
| 38 | Util::getFS()->remove($cacheDirImages); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | call_user_func_array($this->builder->getMessageCb(), ['COPY_PROGRESS', 'Start copy', 0, $this->count]); |
||
| 43 | call_user_func_array($this->builder->getMessageCb(), ['COPY_PROGRESS', 'Copied', $this->count, $this->count]); |
||
| 44 | } |
||
| 46 |