diff --git a/Admin/Update.php b/Admin/Update.php index 666e1fb..db049fc 100644 --- a/Admin/Update.php +++ b/Admin/Update.php @@ -19,7 +19,6 @@ use phpOMS\Module\UpdateAbstract; use phpOMS\System\File\Directory; use phpOMS\Module\InfoManager; - /** * Navigation class. * diff --git a/Controller.php b/Controller.php index 46471e3..bdd0ec2 100644 --- a/Controller.php +++ b/Controller.php @@ -239,8 +239,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateQAQuestionCreate(RequestAbstract $request) : array { $val = []; - if ( - ($val['title'] = empty($request->getData('title'))) + if (($val['title'] = empty($request->getData('title'))) || ($val['plain'] = empty($request->getData('plain'))) || ($val['language'] = empty($request->getData('language'))) || ($val['category'] = empty($request->getData('category'))) @@ -285,8 +284,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateQAAnswerCreate(RequestAbstract $request) : array { $val = []; - if ( - ($val['title'] = empty($request->getData('title'))) + if (($val['title'] = empty($request->getData('title'))) || ($val['plain'] = empty($request->getData('plain'))) || ($val['question'] = empty($request->getData('question'))) || ($val['status'] = ( @@ -327,8 +325,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateQACategoryCreate(RequestAbstract $request) : array { $val = []; - if ( - ($val['title'] = empty($request->getData('title'))) + if (($val['title'] = empty($request->getData('title'))) || ($val['parent'] = empty($request->getData('parent'))) ) { return $val; @@ -363,8 +360,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateQABadgeCreate(RequestAbstract $request) : array { $val = []; - if ( - ($val['title'] = empty($request->getData('title'))) + if (($val['title'] = empty($request->getData('title'))) ) { return $val; } diff --git a/Models/QAAnswer.php b/Models/QAAnswer.php index b390b81..c56f99a 100644 --- a/Models/QAAnswer.php +++ b/Models/QAAnswer.php @@ -107,4 +107,4 @@ class QAAnswer implements \JsonSerializable { return []; } -} \ No newline at end of file +} diff --git a/Models/QABadge.php b/Models/QABadge.php index ebfea27..4ecb5b5 100644 --- a/Models/QABadge.php +++ b/Models/QABadge.php @@ -51,4 +51,4 @@ class QABadge implements \JsonSerializable { return []; } -} \ No newline at end of file +} diff --git a/Models/QACategory.php b/Models/QACategory.php index 4efdfaa..f299b67 100644 --- a/Models/QACategory.php +++ b/Models/QACategory.php @@ -63,4 +63,4 @@ class QACategory implements \JsonSerializable { return []; } -} \ No newline at end of file +} diff --git a/Models/QAQuestion.php b/Models/QAQuestion.php index 636b948..6657db7 100644 --- a/Models/QAQuestion.php +++ b/Models/QAQuestion.php @@ -165,4 +165,4 @@ class QAQuestion implements \JsonSerializable { return []; } -} \ No newline at end of file +}