| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function run() |
||
| 23 | { |
||
| 24 | $icon = $this->model->invalidation_type_id == AccountInvalidationType::IS_PRIVATE ? 'user-secret' : 'exclamation-triangle'; |
||
| 25 | $alert = $this->model->invalidation_count < 3 ? 'warning' : 'danger'; |
||
| 26 | |||
| 27 | return $this->render('invalid-alert', [ |
||
| 28 | 'alert' => $alert, |
||
| 29 | 'icon' => $icon, |
||
| 30 | 'header' => 'Invalid account', |
||
| 31 | 'lines' => $this->lines(), |
||
| 32 | ]); |
||
| 46 | } |