| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | 2 | public function deployAssets(): bool |
|
| 44 | { |
||
| 45 | 2 | foreach ($this->assetFolders as $key => $dir) { |
|
| 46 | 1 | $key = $this->camelCaseToDash($key); |
|
| 47 | 1 | $linkFolder = $this->destinationFolder . '/' . $key; |
|
| 48 | |||
| 49 | 1 | if (!file_exists($linkFolder)) { |
|
| 50 | 1 | symlink($dir, $linkFolder); |
|
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | 2 | return true; |
|
| 55 | } |
||
| 75 | } |