| Conditions | 4 |
| Paths | 3 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | private function buildAssets(): array |
||
| 45 | { |
||
| 46 | $vasriManifest = []; |
||
| 47 | if ($this->mixManifest === true) { |
||
| 48 | $manifest = $this->manifestReader->getMixManifest(); |
||
| 49 | foreach ($manifest as $key => $val) { |
||
| 50 | $vasriManifest[] = $key; |
||
| 51 | } |
||
| 52 | |||
| 53 | } elseif ( ! empty(config('vasri.assets'))) { |
||
| 54 | |||
| 55 | $vasriManifest = config('vasri.assets'); |
||
| 56 | |||
| 57 | } else { |
||
| 58 | |||
| 59 | throw new Exception('No manifest or assets found'); |
||
| 60 | |||
| 61 | } |
||
| 62 | |||
| 63 | return $vasriManifest; |
||
| 64 | } |
||
| 65 | |||
| 84 |