From 2c3c3443f3ab6101a08f2550dca70b3de566fdd3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 3 Feb 2018 13:09:09 +0100 Subject: [PATCH] phpcbf --- Admin/Update.php | 1 - Controller.php | 3 +-- Models/Comment.php | 2 +- Models/CommentList.php | 2 +- Models/CommentMapper.php | 1 - 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Admin/Update.php b/Admin/Update.php index 3b7e4b0..985b2cd 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 ef84f33..d8ff7b2 100644 --- a/Controller.php +++ b/Controller.php @@ -141,8 +141,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateCommentCreate(RequestAbstract $request) : array { $val = []; - if ( - ($val['title'] = empty($request->getData('title'))) + if (($val['title'] = empty($request->getData('title'))) || ($val['plain'] = empty($request->getData('plain'))) ) { return $val; diff --git a/Models/Comment.php b/Models/Comment.php index eff47cc..5f3dadd 100644 --- a/Models/Comment.php +++ b/Models/Comment.php @@ -102,4 +102,4 @@ class Comment { return $this->createdAt; } -} \ No newline at end of file +} diff --git a/Models/CommentList.php b/Models/CommentList.php index 56248c0..f1f593c 100644 --- a/Models/CommentList.php +++ b/Models/CommentList.php @@ -46,4 +46,4 @@ class CommentList { $this->comments[] = $comment; } -} \ No newline at end of file +} diff --git a/Models/CommentMapper.php b/Models/CommentMapper.php index 615125a..bf62594 100644 --- a/Models/CommentMapper.php +++ b/Models/CommentMapper.php @@ -69,5 +69,4 @@ class CommentMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $primaryField = 'comments_comment_id'; - }