| Conditions | 6 |
| Paths | 14 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function index() |
||
| 44 | { |
||
| 45 | if (presenter()->theme) { |
||
| 46 | if (presenter()->theme->hasLayout('maintenance')) { |
||
| 47 | presenter()->theme->setLayout('maintenance'); |
||
| 48 | } |
||
| 49 | |||
| 50 | if (false !== ($layout = presenter()->theme->getLayout())) { |
||
|
|
|||
| 51 | if ($layout->getFilename() === 'theme') { |
||
| 52 | presenter()->setTheme(false); |
||
| 53 | } |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 | if (cache()->hasItem('maintenance')) { |
||
| 58 | $maintenanceInfo = cache()->getItem('maintenance')->get(); |
||
| 59 | view()->load('maintenance', $maintenanceInfo); |
||
| 60 | } |
||
| 62 | } |