| Total Complexity | 7 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class CacheCopy extends StaticCopy |
||
| 17 | { |
||
| 18 | protected $count = 0; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function init($options) |
||
| 24 | { |
||
| 25 | $cacheDir = $this->config->getDestinationDir().'/'.$this->config->get('cache.dir'); |
||
|
|
|||
| 26 | if ($this->config->get('cache.external')) { |
||
| 27 | $cacheDir = $this->config->get('cache.dir'); |
||
| 28 | } |
||
| 29 | if (Util::getFS()->exists($cacheDir)) { |
||
| 30 | $this->process = true; |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function process() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |