| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function compile(): string |
||
| 52 | { |
||
| 53 | $this->validateBag(); |
||
| 54 | $assets = $this->bag->allWithWeight(); |
||
| 55 | if ($this->combine) { |
||
| 56 | $assets = $this->merger->merge($assets); |
||
| 57 | } |
||
| 58 | $scripts = ''; |
||
| 59 | foreach ($assets as $asset => $weight) { |
||
| 60 | $scripts .= '<script src="' . $asset . '"></script>' . "\n"; |
||
| 61 | } |
||
| 62 | |||
| 63 | return $scripts; |
||
| 64 | } |
||
| 84 |