| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | public function run() |
||
| 24 | { |
||
| 25 | $icon = 'exclamation-triangle'; |
||
| 26 | $alert = $this->model->invalidation_count < 3 ? 'warning' : 'danger'; |
||
| 27 | |||
| 28 | return $this->render('invalid-alert', [ |
||
| 29 | 'alert' => $alert, |
||
| 30 | 'icon' => $icon, |
||
| 31 | 'header' => 'Invalid tag', |
||
| 32 | 'lines' => $this->lines(), |
||
| 33 | 'updateUrl' => ['tag/force-update', 'id' => $this->model->id], |
||
| 34 | ]); |
||
| 48 | } |