mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-02-17 20:58:41 +00:00
Add typehints
This commit is contained in:
parent
3d89723502
commit
d33efb34ef
|
|
@ -103,12 +103,12 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
* @param ResponseAbstract $response Response
|
* @param ResponseAbstract $response Response
|
||||||
* @param mixed $data Generic data
|
* @param mixed $data Generic data
|
||||||
*
|
*
|
||||||
* @return \Serializable
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @codeCoverageIgnore
|
* @codeCoverageIgnore
|
||||||
*/
|
*/
|
||||||
public function setupStyles(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
public function setupStyles(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||||
{
|
{
|
||||||
/** @var Head $head */
|
/** @var Head $head */
|
||||||
$head = $response->get('Content')->getData('head');
|
$head = $response->get('Content')->getData('head');
|
||||||
|
|
@ -243,7 +243,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function apiKanbanCardCreate(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
public function apiKanbanCardCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||||
{
|
{
|
||||||
if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission(
|
if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission(
|
||||||
PermissionType::CREATE, $this->app->orgId, $this->app->appName, self::MODULE_NAME, PermissionState::CARD)
|
PermissionType::CREATE, $this->app->orgId, $this->app->appName, self::MODULE_NAME, PermissionState::CARD)
|
||||||
|
|
@ -305,7 +305,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function apiKanbanBoardCreate(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
public function apiKanbanBoardCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||||
{
|
{
|
||||||
if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission(
|
if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission(
|
||||||
PermissionType::CREATE, $this->app->orgId, $this->app->appName, self::MODULE_NAME, PermissionState::BOARD)
|
PermissionType::CREATE, $this->app->orgId, $this->app->appName, self::MODULE_NAME, PermissionState::BOARD)
|
||||||
|
|
@ -356,7 +356,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function apiKanbanColumnCreate(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
public function apiKanbanColumnCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||||
{
|
{
|
||||||
if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission(
|
if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission(
|
||||||
PermissionType::CREATE, $this->app->orgId, $this->app->appName, self::MODULE_NAME, PermissionState::COLUMN)
|
PermissionType::CREATE, $this->app->orgId, $this->app->appName, self::MODULE_NAME, PermissionState::COLUMN)
|
||||||
|
|
@ -400,7 +400,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function apiKanbanLabelCreate(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
public function apiKanbanLabelCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||||
{
|
{
|
||||||
$account = $this->app->accountManager->get($request->getHeader()->getAccount());
|
$account = $this->app->accountManager->get($request->getHeader()->getAccount());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user