| Total Complexity | 3 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class MonitoringSettingsForm extends Widget |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | public $title; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | public $validationUrl; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | public $breadcrumbsLabel; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var Server|Hub |
||
| 35 | */ |
||
| 36 | public $model; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var array |
||
| 40 | */ |
||
| 41 | public $nicMediaOptions; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function run() |
||
| 47 | { |
||
| 48 | return $this->render('MonitoringSettingsForm', [ |
||
| 49 | 'label' => $this->breadcrumbsLabel, |
||
| 50 | 'model' => $this->model, |
||
| 51 | 'title' => $this->title ?? Yii::t('hipanel:server', 'Monitoring properties'), |
||
| 52 | 'nicMediaOptions' => $this->nicMediaOptions, |
||
| 53 | ]); |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | private function getActionUrl(): string |
||
|
|
|||
| 60 | { |
||
| 61 | return $this->actionUrl; |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | private function getValidationUrl(): string |
||
| 70 | } |
||
| 71 | } |
||
| 72 |
This check looks for private methods that have been defined, but are not used inside the class.