From 2c46297853f5193fba9cc2a3ad8013a4df58dd1d Mon Sep 17 00:00:00 2001 From: veselcraft Date: Fri, 28 Feb 2025 17:36:34 +0300 Subject: [PATCH] fix(lint) --- VKAPI/Handlers/Groups.php | 2 +- VKAPI/Handlers/Newsfeed.php | 2 +- Web/Presenters/SupportPresenter.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VKAPI/Handlers/Groups.php b/VKAPI/Handlers/Groups.php index 28ccf11a..7f80d108 100644 --- a/VKAPI/Handlers/Groups.php +++ b/VKAPI/Handlers/Groups.php @@ -45,7 +45,7 @@ final class Groups extends VKAPIRequestHandler $clbsCount = $user->getClubCount(); } - $rClubs = array(); + $rClubs = []; $ic = sizeof($clbs); if (sizeof($clbs) > $count) { diff --git a/VKAPI/Handlers/Newsfeed.php b/VKAPI/Handlers/Newsfeed.php index 334fe71b..5700ada7 100644 --- a/VKAPI/Handlers/Newsfeed.php +++ b/VKAPI/Handlers/Newsfeed.php @@ -52,7 +52,7 @@ final class Newsfeed extends VKAPIRequestHandler return $response; } - public function getGlobal(string $fields = "", int $start_from = 0, int $start_time = 0, int $end_time = 0, int $offset = 0, int $count = 30, int $extended = 0, int $rss = 0, int $return_banned = 0) + public function getGlobal(string $fields = "", int $start_from = 0, int $start_time = 0, int $end_time = 0, int $offset = 0, int $count = 30, int $extended = 0, int $rss = 0, int $return_banned = 0) { $this->requireUser(); diff --git a/Web/Presenters/SupportPresenter.php b/Web/Presenters/SupportPresenter.php index b93ddec1..c9267b18 100644 --- a/Web/Presenters/SupportPresenter.php +++ b/Web/Presenters/SupportPresenter.php @@ -317,15 +317,15 @@ final class SupportPresenter extends OpenVKPresenter header("HTTP/1.1 403 Forbidden"); exit(); } - + if ($mark !== 1 && $mark !== 2) { header("HTTP/1.1 400 Bad Request"); exit(); } - + $comment->setMark($mark); $comment->save(); - + header("HTTP/1.1 200 OK"); exit(); }