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
27
$model = new FormSettings($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
34
$this->/** @scrutinizer ignore-call */
35
setConfigs($model->getAllProperties());
Loading history...
35
App::$Session->getFlashBag()->add('success', __('Settings is successful updated'));
36
$this->response->redirect('feedback/index');
37
} else {
38
App::$Session->getFlashBag()->add('error', __('Form validation is failed'));