Improve security

This commit is contained in:
DariusIII
2026-06-12 10:11:15 +02:00
parent 20cf45d532
commit d970bbffc6
25 changed files with 1077 additions and 231 deletions
-42
View File
@@ -318,36 +318,12 @@ parameters:
count: 1
path: app/Http/Controllers/Api/ApiController.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: app/Http/Controllers/Api/ApiController.php
-
message: '#^Access to an undefined property App\\Models\\User\:\:\$is_disabled\.$#'
identifier: property.notFound
count: 1
path: app/Http/Controllers/Api/ApiInformController.php
-
message: '#^Access to an undefined property App\\Models\\User\:\:\$is_disabled\.$#'
identifier: property.notFound
count: 1
path: app/Http/Controllers/Api/ApiV2Controller.php
-
message: '#^Call to function is_array\(\) with bool\|int\|string will always evaluate to false\.$#'
identifier: function.impossibleType
count: 1
path: app/Http/Controllers/Api/ApiV2Controller.php
-
message: '#^Cannot call method map\(\) on list\<mixed\>\.$#'
identifier: method.nonObject
count: 1
path: app/Http/Controllers/Api/ApiV2Controller.php
-
message: '#^Offset 0 on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
@@ -444,18 +420,6 @@ parameters:
count: 1
path: app/Http/Controllers/CoverController.php
-
message: '#^Access to an undefined property App\\Models\\User\:\:\$is_disabled\.$#'
identifier: property.notFound
count: 2
path: app/Http/Controllers/GetNzbController.php
-
message: '#^Access to an undefined property App\\Models\\User\:\:\$is_disabled\.$#'
identifier: property.notFound
count: 1
path: app/Http/Controllers/RssController.php
-
message: '#^Access to an undefined property Illuminate\\Database\\Eloquent\\Model\:\:\$roles_id\.$#'
identifier: property.notFound
@@ -474,12 +438,6 @@ parameters:
count: 1
path: app/Http/Requests/Admin/RegistrationPeriodRequest.php
-
message: '#^Method App\\Models\\Category\:\:getForApi\(\) should return list\<mixed\> but returns Illuminate\\Database\\Eloquent\\Collection\<int, App\\Models\\RootCategory\>\.$#'
identifier: return.type
count: 1
path: app/Models/Category.php
-
message: '#^Method App\\Models\\Category\:\:getForMenu\(\) should return array\<string, mixed\> but returns list\<mixed\>\.$#'
identifier: return.type