| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function init() |
||
| 43 | { |
||
| 44 | parent::init(); |
||
| 45 | $this->state = Yii::$container->get(StateInterface::class); |
||
| 46 | |||
| 47 | if ($this->defaultMessage === null) { |
||
| 48 | $this->defaultMessage = Yii::t('app', $this->state->getParams(FileState::MAINTENANCE_PARAM_CONTENT)); |
||
| 49 | } |
||
| 50 | |||
| 51 | if ($this->defaultName === null) { |
||
| 52 | $this->defaultName = Yii::t('app', $this->state->getParams(FileState::MAINTENANCE_PARAM_TITLE)); |
||
| 53 | } |
||
| 82 |