It seems like getConfigs() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
29
$model = new FormUserSettings($this->/** @scrutinizer ignore-call */ getConfigs());
It seems like setConfigs() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
33
$this->/** @scrutinizer ignore-call */
34
setConfigs($model->getAllProperties());
Loading history...
34
App::$Session->getFlashBag()->add('success', __('Settings is successful updated'));
35
$this->response->redirect('user/index');
36
} else {
37
App::$Session->getFlashBag()->add('error', __('Form validation is failed'));