Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function save() { |
||
20 | foreach ($this->files as $resource) { |
||
21 | $resource = trim($resource, '/'); |
||
22 | $publicResourcePath = "{$this->browser->getPublicDir()}/{$resource}"; |
||
23 | |||
24 | if ($this->enableCache && file_exists($publicResourcePath)) { |
||
25 | continue; |
||
26 | } |
||
27 | |||
28 | $sourceResourcePath = "{$this->browser->getSrcDir()}/{$resource}"; |
||
29 | $this->copyCdnFiles($sourceResourcePath, $publicResourcePath); |
||
30 | } |
||
31 | } |
||
32 | |||
43 |