From da4d4074e826d22df7961fb728dbab6375c1efbe Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 31 May 2023 13:21:47 +0000 Subject: [PATCH] automated phpcs fixes --- Application/Timerecording/Application.php | 2 +- Controller/ApiController.php | 2 +- Controller/BackendController.php | 8 ++++---- Controller/TimerecordingController.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Application/Timerecording/Application.php b/Application/Timerecording/Application.php index 0fb7ac9..8cc1526 100755 --- a/Application/Timerecording/Application.php +++ b/Application/Timerecording/Application.php @@ -108,7 +108,7 @@ final class Application $pageView = new TimerecordingView($this->app->l11nManager, $request, $response); $head = new Head(); - $pageView->data['head'] = $head; + $pageView->head = $head; $response->set('Content', $pageView); /* Timerecording only allows GET */ diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 140e554..9483b1e 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -143,7 +143,7 @@ final class ApiController extends Controller if (!empty($val = $this->validateSessionElementCreate($request))) { $response->data[$request->uri->__toString()] = new FormValidation($val); - $response->header->status = RequestStatusCode::R_400; + $response->header->status = RequestStatusCode::R_400; return; } diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 5e30ef9..6cfc784 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -46,7 +46,7 @@ final class BackendController extends Controller implements DashboardElementInte $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1006301001, $request, $response); /** @var \Modules\HumanResourceTimeRecording\Models\Session[] $list */ - $list = SessionMapper::getLastSessionsFromAllEmployees(); + $list = SessionMapper::getLastSessionsFromAllEmployees(); $view->data['sessions'] = $list; return $view; @@ -91,9 +91,9 @@ final class BackendController extends Controller implements DashboardElementInte ->sort('id', OrderType::DESC) ->execute(); - $view->data['sessions'] = $list; + $view->data['sessions'] = $list; $view->data['lastSession'] = $lastOpenSession; - $view->data['date'] = $limit; + $view->data['date'] = $limit; return $view; } @@ -154,7 +154,7 @@ final class BackendController extends Controller implements DashboardElementInte $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1006301001, $request, $response); /** @var \Modules\HumanResourceTimeRecording\Models\Session[] $list */ - $list = SessionMapper::getLastSessionsFromAllEmployees(); + $list = SessionMapper::getLastSessionsFromAllEmployees(); $view->data['sessions'] = $list; return $view; diff --git a/Controller/TimerecordingController.php b/Controller/TimerecordingController.php index 3cb7734..ae6917d 100755 --- a/Controller/TimerecordingController.php +++ b/Controller/TimerecordingController.php @@ -49,7 +49,7 @@ final class TimerecordingController extends Controller $view->setTemplate('/Modules/HumanResourceTimeRecording/Theme/Timeterminal/overview'); $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1006301001, $request, $response); - $list = SessionMapper::getAll()->sort('id', OrderType::DESC)->limit(50)->execute(); + $list = SessionMapper::getAll()->sort('id', OrderType::DESC)->limit(50)->execute(); $view->data['sessions'] = $list; return $view;