diff --git a/Admin/Update.php b/Admin/Update.php index 0899790..6a111d7 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 50aa493..1503219 100644 --- a/Controller.php +++ b/Controller.php @@ -160,7 +160,7 @@ class Controller extends ModuleAbstract implements WebInterface { $view = new View($this->app, $request, $response); - $board = KanbanBoardMapper::get((int) $request->getData('id')); + $board = KanbanBoardMapper::get((int) $request->getData('id')); $accountId = $request->getHeader()->getAccount(); if ($board->getCreatedBy()->getId() !== $accountId @@ -224,7 +224,7 @@ class Controller extends ModuleAbstract implements WebInterface { $view = new View($this->app, $request, $response); - $card = KanbanCardMapper::get((int) $request->getData('id')); + $card = KanbanCardMapper::get((int) $request->getData('id')); $accountId = $request->getHeader()->getAccount(); if ($card->getCreatedBy()->getId() !== $accountId @@ -284,8 +284,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateKanbanCardCreate(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['column'] = empty($request->getData('column'))) || ($val['order'] = empty($request->getData('order'))) @@ -343,8 +342,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateKanbanBoardCreate(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['order'] = empty($request->getData('order'))) || ($val['status'] = ( @@ -393,8 +391,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateKanbanColumnCreate(RequestAbstract $request) : array { $val = []; - if ( - ($val['title'] = empty($request->getData('title'))) + if (($val['title'] = empty($request->getData('title'))) || ($val['order'] = empty($request->getData('order'))) ) { return $val; @@ -439,8 +436,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateKanbanLabelCreate(RequestAbstract $request) : array { $val = []; - if ( - ($val['title'] = empty($request->getData('title'))) + if (($val['title'] = empty($request->getData('title'))) || ($val['board'] = empty($request->getData('board'))) || ($val['color'] = empty($request->getData('color'))) ) { diff --git a/Models/CardType.php b/Models/CardType.php index 430a143..ac8c02b 100644 --- a/Models/CardType.php +++ b/Models/CardType.php @@ -26,11 +26,11 @@ use phpOMS\Stdlib\Base\Enum; */ abstract class CardType extends Enum { - /* public */ const TEXT = 1; /* Markdown -> Image, links, charts etc */ - /* public */ const CALENDAR = 2; + /* public */ const TEXT = 1; /* Markdown -> Image, links, charts etc */ + /* public */ const CALENDAR = 2; /* public */ const CALENDAR_EVENT = 4; - /* public */ const TASK = 8; + /* public */ const TASK = 8; /* public */ const TASK_CHECKLIST = 16; - /* public */ const MEDIA = 32; - /* public */ const SURVEY = 64; -} \ No newline at end of file + /* public */ const MEDIA = 32; + /* public */ const SURVEY = 64; +} diff --git a/Models/KanbanBoard.php b/Models/KanbanBoard.php index a32de50..5998b43 100644 --- a/Models/KanbanBoard.php +++ b/Models/KanbanBoard.php @@ -130,4 +130,4 @@ class KanbanBoard implements \JsonSerializable { return []; } -} \ No newline at end of file +} diff --git a/Models/KanbanCard.php b/Models/KanbanCard.php index 7b373f1..fc64b7d 100644 --- a/Models/KanbanCard.php +++ b/Models/KanbanCard.php @@ -220,4 +220,4 @@ class KanbanCard implements \JsonSerializable } /* todo: maybe allow ref to be an object and datamapper creates that object? how does the datamapper know what kind of datamapper to use? Just assume it's called ObjectMapper? bad isn't it?! */ -} \ No newline at end of file +} diff --git a/Models/KanbanCardComment.php b/Models/KanbanCardComment.php index 576a0e9..d01bf83 100644 --- a/Models/KanbanCardComment.php +++ b/Models/KanbanCardComment.php @@ -97,4 +97,4 @@ class KanbanCardComment implements \JsonSerializable { return []; } -} \ No newline at end of file +} diff --git a/Models/KanbanColumn.php b/Models/KanbanColumn.php index 700d978..a36b174 100644 --- a/Models/KanbanColumn.php +++ b/Models/KanbanColumn.php @@ -14,7 +14,6 @@ declare(strict_types = 1); namespace Modules\Kanban\Models; - /** * Task class. * @@ -99,4 +98,4 @@ class KanbanColumn implements \JsonSerializable { return []; } -} \ No newline at end of file +} diff --git a/Models/KanbanLabel.php b/Models/KanbanLabel.php index 209c0b9..1c1af3b 100644 --- a/Models/KanbanLabel.php +++ b/Models/KanbanLabel.php @@ -76,4 +76,4 @@ class KanbanLabel implements \JsonSerializable { return []; } -} \ No newline at end of file +} diff --git a/Models/PermissionState.php b/Models/PermissionState.php index aee7ed7..f40dbfa 100644 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -27,8 +27,8 @@ use phpOMS\Stdlib\Base\Enum; abstract class PermissionState extends Enum { /* public */ const DASHBOARD = 1; - /* public */ const BOARD = 2; - /* public */ const COLUMN = 3; - /* public */ const CARD = 4; - /* public */ const LABEL = 4; + /* public */ const BOARD = 2; + /* public */ const COLUMN = 3; + /* public */ const CARD = 4; + /* public */ const LABEL = 4; }