Conditions | 4 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4.0218 |
Changes | 0 |
1 | <?php |
||
24 | 2 | public function execute(): void |
|
25 | { |
||
26 | 2 | foreach ($this->staticFiles as $staticFile) { |
|
27 | 2 | $staticFile = trim($staticFile, '/'); |
|
28 | |||
29 | 2 | $publicPath = File::path("{$this->publicDirectory}/{$staticFile}"); |
|
30 | |||
31 | 2 | if ($this->cacheStaticFiles && $this->fs->exists($publicPath)) { |
|
32 | continue; |
||
33 | } |
||
34 | |||
35 | 2 | $sourcePath = File::path($staticFile); |
|
36 | |||
37 | 2 | $this->copyStaticFile($sourcePath, $publicPath); |
|
38 | } |
||
39 | 2 | } |
|
40 | |||
52 |