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