Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function yandexConnect(): ?string |
||
28 | { |
||
29 | $configs = App::$Properties->getAll('yandex'); |
||
30 | |||
31 | $model = new FormYandexConnect($configs); |
||
|
|||
32 | if ($model->send() && $model->validate()) { |
||
33 | App::$Session->getFlashBag()->add('success', __('Application ID saved')); |
||
34 | $model->make(); |
||
35 | } |
||
36 | |||
37 | return $this->view->render('main/yandex_connect', [ |
||
38 | 'model' => $model |
||
39 | ]); |
||
41 | } |