From e300212947f79fbf5fb89904a34d11695f73d1b7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 31 May 2023 13:21:47 +0000 Subject: [PATCH] automated phpcs fixes --- Controller/ApiController.php | 2 +- Controller/BackendController.php | 2 +- Models/DrawImage.php | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index f23627a..038b9a6 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -76,7 +76,7 @@ final class ApiController extends Controller { if (!empty($val = $this->validateDrawCreate($request))) { $response->data['draw_create'] = 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 29d3ebf..9178148 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -124,7 +124,7 @@ final class BackendController extends Controller $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1005201001, $request, $response); /** @var \Modules\Draw\Models\DrawImage[] $images */ - $images = DrawImageMapper::getAll()->sort('id', OrderType::DESC)->limit(25); + $images = DrawImageMapper::getAll()->sort('id', OrderType::DESC)->limit(25); $view->data['images'] = $images; return $view; diff --git a/Models/DrawImage.php b/Models/DrawImage.php index f146cfc..140a910 100755 --- a/Models/DrawImage.php +++ b/Models/DrawImage.php @@ -42,7 +42,6 @@ class DrawImage implements \JsonSerializable */ public null|int|Media $media = null; - /** * {@inheritdoc} */