| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function __construct() |
||
| 14 | { |
||
| 15 | $this->scripts_top = collect(); |
||
| 16 | $this->scripts_bottom = collect(); |
||
| 17 | |||
| 18 | $data = new ScriptRepository(); |
||
| 19 | // $scripts = $data->getScripts(); |
||
| 20 | $scripts = $data->getCacheScripts(); |
||
| 21 | |||
| 22 | if (isset($scripts[1])) { |
||
| 23 | $this->scripts_top = $scripts[1]; |
||
| 24 | } |
||
| 25 | if (isset($scripts[0])) { |
||
| 26 | $this->scripts_top = $scripts[0]; |
||
| 27 | } |
||
| 38 |