fix(lint)

This commit is contained in:
veselcraft 2025-02-28 17:36:34 +03:00
parent 6f722bbb43
commit 2c46297853
No known key found for this signature in database
GPG key ID: 9CF0B42766CCF7BA
3 changed files with 5 additions and 5 deletions

View file

@ -45,7 +45,7 @@ final class Groups extends VKAPIRequestHandler
$clbsCount = $user->getClubCount(); $clbsCount = $user->getClubCount();
} }
$rClubs = array(); $rClubs = [];
$ic = sizeof($clbs); $ic = sizeof($clbs);
if (sizeof($clbs) > $count) { if (sizeof($clbs) > $count) {

View file

@ -52,7 +52,7 @@ final class Newsfeed extends VKAPIRequestHandler
return $response; 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(); $this->requireUser();

View file

@ -317,15 +317,15 @@ final class SupportPresenter extends OpenVKPresenter
header("HTTP/1.1 403 Forbidden"); header("HTTP/1.1 403 Forbidden");
exit(); exit();
} }
if ($mark !== 1 && $mark !== 2) { if ($mark !== 1 && $mark !== 2) {
header("HTTP/1.1 400 Bad Request"); header("HTTP/1.1 400 Bad Request");
exit(); exit();
} }
$comment->setMark($mark); $comment->setMark($mark);
$comment->save(); $comment->save();
header("HTTP/1.1 200 OK"); header("HTTP/1.1 200 OK");
exit(); exit();
} }