Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function actionIndex() |
||
25 | { |
||
26 | // initialize model and pass configs as arg |
||
27 | $model = new FormSettings($this->getConfigs()); |
||
28 | |||
29 | // check if form of depend model is submited |
||
30 | if ($model->send() && $model->validate()) { |
||
31 | $this->setConfigs($model->getAllProperties()); |
||
|
|||
32 | App::$Session->getFlashBag()->add('success', __('Settings is successful updated')); |
||
33 | } |
||
34 | |||
35 | // render view output |
||
36 | return $this->view->render('contenttag/index', [ |
||
37 | 'model' => $model |
||
38 | ]); |
||
41 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.