mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
fix: phpstan errors
This commit is contained in:
@@ -34,9 +34,6 @@ use App\Repositories\ChatRepository;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* @see \Tests\Feature\Http\Controllers\API\ChatControllerTest
|
||||
*/
|
||||
class ChatController extends Controller
|
||||
{
|
||||
/**
|
||||
@@ -101,19 +98,19 @@ class ChatController extends Controller
|
||||
}
|
||||
|
||||
/* MESSAGES */
|
||||
public function messages($roomId): \Illuminate\Http\Resources\Json\AnonymousResourceCollection
|
||||
public function messages(int $roomId): \Illuminate\Http\Resources\Json\AnonymousResourceCollection
|
||||
{
|
||||
return ChatMessageResource::collection($this->chatRepository->messages($roomId));
|
||||
}
|
||||
|
||||
/* MESSAGES */
|
||||
public function privateMessages(Request $request, $targetId): \Illuminate\Http\Resources\Json\AnonymousResourceCollection
|
||||
public function privateMessages(Request $request, int $targetId): \Illuminate\Http\Resources\Json\AnonymousResourceCollection
|
||||
{
|
||||
return ChatMessageResource::collection($this->chatRepository->privateMessages($request->user()->id, $targetId));
|
||||
}
|
||||
|
||||
/* MESSAGES */
|
||||
public function botMessages(Request $request, $botId): \Illuminate\Http\Resources\Json\AnonymousResourceCollection
|
||||
public function botMessages(Request $request, int $botId): \Illuminate\Http\Resources\Json\AnonymousResourceCollection
|
||||
{
|
||||
$runbot = null;
|
||||
$bot = Bot::findOrFail($botId);
|
||||
@@ -181,11 +178,11 @@ class ChatController extends Controller
|
||||
$message = '/bot gift'.substr((string) $message, \strlen($trip) + 1, \strlen((string) $message));
|
||||
}
|
||||
|
||||
if ($target == 'system') {
|
||||
if ($target === 'system') {
|
||||
$runbot = new SystemBot($this->chatRepository);
|
||||
}
|
||||
|
||||
if ($which == null) {
|
||||
if ($which === null) {
|
||||
foreach ($bots as $bot) {
|
||||
if ($message && str_starts_with((string) $message, '/'.$bot->command)) {
|
||||
$which = 'echo';
|
||||
@@ -194,7 +191,7 @@ class ChatController extends Controller
|
||||
} elseif ($message && str_starts_with((string) $message, '@'.$bot->command)) {
|
||||
$message = substr((string) $message, 1 + \strlen((string) $bot->command), \strlen((string) $message));
|
||||
$which = 'private';
|
||||
} elseif ($message && $receiverId == 1 && $bot->id == $botId) {
|
||||
} elseif ($message && $receiverId === 1 && $bot->id === $botId) {
|
||||
if (str_starts_with((string) $message, '/'.$bot->command)) {
|
||||
$message = substr((string) $message, 1 + \strlen((string) $bot->command), \strlen((string) $message));
|
||||
}
|
||||
@@ -210,13 +207,13 @@ class ChatController extends Controller
|
||||
$which = 'message';
|
||||
}
|
||||
|
||||
if ($which != null) {
|
||||
if ($which !== null) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($which != null && $which != 'skip' && !$runbot) {
|
||||
if ($which !== null && $which !== 'skip' && !$runbot) {
|
||||
if ($bot->is_systembot) {
|
||||
$runbot = new SystemBot($this->chatRepository);
|
||||
} elseif ($bot->is_nerdbot) {
|
||||
@@ -239,7 +236,7 @@ class ChatController extends Controller
|
||||
fn () => UserEcho::with(['room', 'target', 'bot'])->where('user_id', '=', $user1Id)->get()
|
||||
);
|
||||
|
||||
if ($echoes->doesntContain(fn ($echo) => $echo->target_id == $user2Id)) {
|
||||
if ($echoes->doesntContain(fn ($echo) => $echo->target_id === $user2Id)) {
|
||||
UserEcho::create([
|
||||
'user_id' => $user1Id,
|
||||
'target_id' => $user2Id,
|
||||
@@ -261,7 +258,7 @@ class ChatController extends Controller
|
||||
fn () => UserAudible::with(['room', 'target', 'bot'])->where('user_id', '=', $user1Id)->get()
|
||||
);
|
||||
|
||||
if ($audibles->doesntContain(fn ($audible) => $audible->target_id == $user2Id)) {
|
||||
if ($audibles->doesntContain(fn ($audible) => $audible->target_id === $user2Id)) {
|
||||
UserAudible::create([
|
||||
'user_id' => $user1Id,
|
||||
'target_id' => $user2Id,
|
||||
@@ -277,7 +274,7 @@ class ChatController extends Controller
|
||||
}
|
||||
|
||||
$roomId = 0;
|
||||
$ignore = $botId > 0 && $receiverId == 1 ? true : null;
|
||||
$ignore = $botId > 0 && $receiverId === 1 ? true : null;
|
||||
$save = true;
|
||||
$echo = true;
|
||||
$message = $this->chatRepository->privateMessage($userId, $roomId, $message, $receiverId, null, $ignore);
|
||||
@@ -298,7 +295,7 @@ class ChatController extends Controller
|
||||
return response('success');
|
||||
}
|
||||
|
||||
public function deleteMessage(Request $request, $id): \Illuminate\Contracts\Routing\ResponseFactory|\Illuminate\Http\Response
|
||||
public function deleteMessage(Request $request, int $id): \Illuminate\Contracts\Routing\ResponseFactory|\Illuminate\Http\Response
|
||||
{
|
||||
$message = Message::find($id);
|
||||
|
||||
@@ -480,7 +477,7 @@ class ChatController extends Controller
|
||||
fn () => UserEcho::with(['room', 'target', 'bot'])->where('user_id', '=', $user->id)->get(),
|
||||
);
|
||||
|
||||
if ($echoes->doesntContain(fn ($echo) => $echo->room_id == $room->id)) {
|
||||
if ($echoes->doesntContain(fn ($echo) => $echo->room_id === $room->id)) {
|
||||
UserEcho::create([
|
||||
'user_id' => $user->id,
|
||||
'room_id' => $room->id,
|
||||
|
||||
+28
-15
@@ -33,19 +33,19 @@ use Illuminate\Database\Eloquent\Model;
|
||||
* @property string $color
|
||||
* @property string $icon
|
||||
* @property string $effect
|
||||
* @property int $is_internal
|
||||
* @property int $is_editor
|
||||
* @property int $is_owner
|
||||
* @property int $is_admin
|
||||
* @property int $is_modo
|
||||
* @property int $is_trusted
|
||||
* @property int $is_immune
|
||||
* @property int $is_freeleech
|
||||
* @property int $is_double_upload
|
||||
* @property int $is_refundable
|
||||
* @property int $can_upload
|
||||
* @property int $is_incognito
|
||||
* @property int $autogroup
|
||||
* @property bool $is_internal
|
||||
* @property bool $is_editor
|
||||
* @property bool $is_owner
|
||||
* @property bool $is_admin
|
||||
* @property bool $is_modo
|
||||
* @property bool $is_trusted
|
||||
* @property bool $is_immune
|
||||
* @property bool $is_freeleech
|
||||
* @property bool $is_double_upload
|
||||
* @property bool $is_refundable
|
||||
* @property bool $can_upload
|
||||
* @property bool $is_incognito
|
||||
* @property bool $autogroup
|
||||
* @property bool $system_required
|
||||
* @property int $min_uploaded
|
||||
* @property int $min_seedsize
|
||||
@@ -67,8 +67,21 @@ class Group extends Model
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'system_required' => 'bool',
|
||||
'min_ratio' => 'decimal:2',
|
||||
'is_internal' => 'bool',
|
||||
'is_editor' => 'bool',
|
||||
'is_owner' => 'bool',
|
||||
'is_admin' => 'bool',
|
||||
'is_modo' => 'bool',
|
||||
'is_trusted' => 'bool',
|
||||
'is_immune' => 'bool',
|
||||
'is_freeleech' => 'bool',
|
||||
'is_double_upload' => 'bool',
|
||||
'is_refundable' => 'bool',
|
||||
'can_upload' => 'bool',
|
||||
'is_incognito' => 'bool',
|
||||
'autogroup' => 'bool',
|
||||
'system_required' => 'bool',
|
||||
'min_ratio' => 'decimal:2',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,12 @@ class ChatRepository
|
||||
{
|
||||
}
|
||||
|
||||
public function config()
|
||||
/**
|
||||
* Get the chat configuration.
|
||||
*
|
||||
* @return array<string, string|int>
|
||||
*/
|
||||
public function config(): array
|
||||
{
|
||||
return config('chat');
|
||||
}
|
||||
@@ -49,7 +54,7 @@ class ChatRepository
|
||||
return $this->bot->all();
|
||||
}
|
||||
|
||||
public function echoes($userId): \Illuminate\Support\Collection
|
||||
public function echoes(int $userId): \Illuminate\Support\Collection
|
||||
{
|
||||
return $this->userEcho->with([
|
||||
'bot',
|
||||
@@ -63,7 +68,7 @@ class ChatRepository
|
||||
->get();
|
||||
}
|
||||
|
||||
public function audibles($userId)
|
||||
public function audibles(int $userId)
|
||||
{
|
||||
return $this->userAudible->with([
|
||||
'bot',
|
||||
@@ -82,14 +87,14 @@ class ChatRepository
|
||||
return $this->chatroom->all();
|
||||
}
|
||||
|
||||
public function roomFindOrFail($id)
|
||||
public function roomFindOrFail(int $id)
|
||||
{
|
||||
return $this->chatroom->findOrFail($id);
|
||||
}
|
||||
|
||||
public function ping($type, $id): bool
|
||||
public function ping(string $type, int $id): bool
|
||||
{
|
||||
if ($type == 'room') {
|
||||
if ($type === 'room') {
|
||||
foreach (Chatroom::where('id', '>', 0)->get() as $room) {
|
||||
broadcast(new Ping($room->id, $id));
|
||||
}
|
||||
@@ -98,7 +103,7 @@ class ChatRepository
|
||||
return true;
|
||||
}
|
||||
|
||||
public function message($userId, $roomId, $message, $receiver = null, $bot = null)
|
||||
public function message(int $userId, int $roomId, $message, ?int $receiver = null, ?int $bot = null)
|
||||
{
|
||||
if ($this->user->find($userId)->settings?->censor) {
|
||||
$message = $this->censorMessage($message);
|
||||
@@ -121,7 +126,7 @@ class ChatRepository
|
||||
return $message;
|
||||
}
|
||||
|
||||
public function botMessage($botId, $roomId, $message, $receiver = null): void
|
||||
public function botMessage(int $botId, int $roomId, $message, ?int $receiver = null): void
|
||||
{
|
||||
$user = $this->user->find($receiver);
|
||||
|
||||
@@ -151,7 +156,7 @@ class ChatRepository
|
||||
$message->delete();
|
||||
}
|
||||
|
||||
public function privateMessage($userId, $roomId, $message, $receiver = null, $bot = null, $ignore = null)
|
||||
public function privateMessage(int $userId, int $roomId, $message, ?int $receiver = null, ?int $bot = null, ?bool $ignore = null)
|
||||
{
|
||||
if ($this->user->find($userId)->settings?->censor) {
|
||||
$message = $this->censorMessage($message);
|
||||
@@ -175,7 +180,7 @@ class ChatRepository
|
||||
'receiver.chatStatus',
|
||||
])->find($save->id);
|
||||
|
||||
if ($ignore != null) {
|
||||
if ($ignore !== null) {
|
||||
event(new Chatter('new.message', $userId, new ChatMessageResource($message)));
|
||||
}
|
||||
|
||||
@@ -188,7 +193,7 @@ class ChatRepository
|
||||
return $message;
|
||||
}
|
||||
|
||||
public function deleteMessage($id)
|
||||
public function deleteMessage(int $id)
|
||||
{
|
||||
$message = $this->message->find($id);
|
||||
|
||||
@@ -199,7 +204,7 @@ class ChatRepository
|
||||
}
|
||||
}
|
||||
|
||||
public function messages($roomId): \Illuminate\Support\Collection
|
||||
public function messages(int $roomId): \Illuminate\Support\Collection
|
||||
{
|
||||
return $this->message->with([
|
||||
'bot',
|
||||
@@ -217,7 +222,7 @@ class ChatRepository
|
||||
->get();
|
||||
}
|
||||
|
||||
public function botMessages($senderId, $botId): \Illuminate\Support\Collection
|
||||
public function botMessages(int $senderId, int $botId): \Illuminate\Support\Collection
|
||||
{
|
||||
$systemUserId = User::where('username', 'System')->sole()->id;
|
||||
|
||||
@@ -237,7 +242,7 @@ class ChatRepository
|
||||
->get();
|
||||
}
|
||||
|
||||
public function privateMessages($senderId, $targetId): \Illuminate\Support\Collection
|
||||
public function privateMessages(int $senderId, int $targetId): \Illuminate\Support\Collection
|
||||
{
|
||||
return $this->message->with([
|
||||
'bot',
|
||||
@@ -255,7 +260,7 @@ class ChatRepository
|
||||
->get();
|
||||
}
|
||||
|
||||
public function checkMessageLimits($roomId): void
|
||||
public function checkMessageLimits(int $roomId): void
|
||||
{
|
||||
$messages = $this->messages($roomId)->toArray();
|
||||
$limit = config('chat.message_limit');
|
||||
@@ -276,7 +281,7 @@ class ChatRepository
|
||||
}
|
||||
}
|
||||
|
||||
public function systemMessage($message, $bot = null): static
|
||||
public function systemMessage(string $message, ?int $bot = null): static
|
||||
{
|
||||
$systemUserId = User::where('username', 'System')->first()->id;
|
||||
|
||||
@@ -291,7 +296,7 @@ class ChatRepository
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function systemChatroom($room = null)
|
||||
public function systemChatroom(int|string|null $room = null)
|
||||
{
|
||||
$config = config('chat.system_chatroom');
|
||||
|
||||
@@ -334,12 +339,12 @@ class ChatRepository
|
||||
return $status;
|
||||
}
|
||||
|
||||
public function statusFindOrFail($id)
|
||||
public function statusFindOrFail(int $id)
|
||||
{
|
||||
return $this->chatStatus->findOrFail($id);
|
||||
}
|
||||
|
||||
protected function censorMessage($message): string
|
||||
protected function censorMessage(string $message): string
|
||||
{
|
||||
foreach (config('censor.redact') as $word) {
|
||||
if (preg_match(sprintf('/\b%s(?=[.,]|$|\s)/mi', $word), (string) $message)) {
|
||||
@@ -356,7 +361,7 @@ class ChatRepository
|
||||
return $message;
|
||||
}
|
||||
|
||||
protected function htmlifyMessage($message)
|
||||
protected function htmlifyMessage(string $message)
|
||||
{
|
||||
return $message;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ class EmailBlacklist implements ValidationRule
|
||||
{
|
||||
/**
|
||||
* Array of blacklisted domains.
|
||||
*
|
||||
* @var array<string>
|
||||
*/
|
||||
private array $domains = [];
|
||||
|
||||
|
||||
@@ -14,13 +14,12 @@ declare(strict_types=1);
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
|
||||
*/
|
||||
|
||||
/* @var \Illuminate\Database\Eloquent\Factory $factory */
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/** @extends Factory<User> */
|
||||
class FollowFactory extends Factory
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* NOTICE OF LICENSE.
|
||||
*
|
||||
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
|
||||
* The details is bundled with this project in the file LICENSE.txt.
|
||||
*
|
||||
* @project UNIT3D Community Edition
|
||||
*
|
||||
* @author HDVinnie <hdinnovations@protonmail.com>
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
|
||||
*/
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class () extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table): void {
|
||||
$table->boolean('active')->default(false)->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
+6
-276
@@ -195,56 +195,11 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/BaseController.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Bot\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Bot\\>\\:\\:\\$id\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Bot\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Bot\\>\\:\\:\\$is_nerdbot\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Bot\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Bot\\>\\:\\:\\$is_systembot\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Message\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Message\\>\\:\\:\\$user\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Message\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Message\\>\\:\\:\\$user_id\\.$#"
|
||||
count: 2
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Controllers\\\\API\\\\ChatController\\:\\:botMessages\\(\\) has parameter \\$botId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Controllers\\\\API\\\\ChatController\\:\\:createMessage\\(\\) should return App\\\\Http\\\\Resources\\\\ChatMessageResource\\|bool\\|Illuminate\\\\Contracts\\\\Routing\\\\ResponseFactory\\|Illuminate\\\\Http\\\\Response but returns bool\\|Illuminate\\\\Contracts\\\\Foundation\\\\Application\\|Illuminate\\\\Contracts\\\\Routing\\\\ResponseFactory\\|Illuminate\\\\Http\\\\Response\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Controllers\\\\API\\\\ChatController\\:\\:deleteMessage\\(\\) has parameter \\$id with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Controllers\\\\API\\\\ChatController\\:\\:messages\\(\\) has parameter \\$roomId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Controllers\\\\API\\\\ChatController\\:\\:privateMessages\\(\\) has parameter \\$targetId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/API/ChatController.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Models\\\\UserAudible\\:\\:\\$status \\(int\\) does not accept bool\\.$#"
|
||||
count: 3
|
||||
@@ -435,31 +390,11 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Controllers/Staff/VersionController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 2
|
||||
path: app/Http/Controllers/TicketAssigneeController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/TicketController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 2
|
||||
path: app/Http/Controllers/TicketNoteController.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property App\\\\Models\\\\Post\\:\\:\\$post_count\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/TopicController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Controllers/TorrentBuffController.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Models\\\\Torrent\\:\\:\\$refundable \\(bool\\) does not accept int\\.$#"
|
||||
count: 1
|
||||
@@ -475,21 +410,11 @@ parameters:
|
||||
count: 2
|
||||
path: app/Http/Controllers/TorrentController.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 4
|
||||
path: app/Http/Controllers/User/WarningController.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\ApplicationSearch\\:\\:applications\\(\\) return type with generic interface Illuminate\\\\Contracts\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TItem$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/ApplicationSearch.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/ApplicationSearch.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Http\\\\Livewire\\\\AttachmentUpload\\:\\:\\$attachment has no type specified\\.$#"
|
||||
count: 1
|
||||
@@ -545,11 +470,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/BlockIpAddress.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/BlockIpAddress.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\InviteLogSearch\\:\\:updatingGroupBy\\(\\) has parameter \\$value with no type specified\\.$#"
|
||||
count: 1
|
||||
@@ -580,41 +500,16 @@ parameters:
|
||||
count: 1
|
||||
path: app/Http/Livewire/MissingMediaSearch.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 3
|
||||
path: app/Http/Livewire/UserNotes.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\UserSearch\\:\\:toggleProperties\\(\\) has parameter \\$property with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/UserSearch.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 7
|
||||
path: app/Http/Livewire/UserWarnings.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Livewire\\\\WarningLogSearch\\:\\:toggleProperties\\(\\) has parameter \\$property with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Livewire/WarningLogSearch.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Middleware/CheckForAdmin.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Middleware/CheckForModo.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$boolean of function abort_unless expects bool, int given\\.$#"
|
||||
count: 1
|
||||
path: app/Http/Middleware/CheckForOwner.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Http\\\\Middleware\\\\SetLanguage\\:\\:setSystemLocale\\(\\) has parameter \\$request with no type specified\\.$#"
|
||||
count: 1
|
||||
@@ -717,7 +612,7 @@ parameters:
|
||||
|
||||
-
|
||||
message: "#^Call to an undefined method App\\\\Models\\\\Message\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Message\\>\\:\\:delete\\(\\)\\.$#"
|
||||
count: 2
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
@@ -725,46 +620,21 @@ parameters:
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Instanceof between int\\|string and App\\\\Models\\\\Chatroom will always evaluate to false\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:audibles\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:audibles\\(\\) has parameter \\$userId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:botMessage\\(\\) has parameter \\$botId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:botMessage\\(\\) has parameter \\$message with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:botMessage\\(\\) has parameter \\$receiver with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:botMessage\\(\\) has parameter \\$roomId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:botMessages\\(\\) has parameter \\$botId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:botMessages\\(\\) has parameter \\$senderId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:botMessages\\(\\) return type with generic class Illuminate\\\\Support\\\\Collection does not specify its types\\: TKey, TValue$#"
|
||||
count: 1
|
||||
@@ -775,36 +645,11 @@ parameters:
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:censorMessage\\(\\) has parameter \\$message with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:checkMessageLimits\\(\\) has parameter \\$roomId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:config\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:deleteMessage\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:deleteMessage\\(\\) has parameter \\$id with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:echoes\\(\\) has parameter \\$userId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:echoes\\(\\) return type with generic class Illuminate\\\\Support\\\\Collection does not specify its types\\: TKey, TValue$#"
|
||||
count: 1
|
||||
@@ -815,106 +660,31 @@ parameters:
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:htmlifyMessage\\(\\) has parameter \\$message with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:message\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:message\\(\\) has parameter \\$bot with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:message\\(\\) has parameter \\$message with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:message\\(\\) has parameter \\$receiver with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:message\\(\\) has parameter \\$roomId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:message\\(\\) has parameter \\$userId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:messages\\(\\) has parameter \\$roomId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:messages\\(\\) return type with generic class Illuminate\\\\Support\\\\Collection does not specify its types\\: TKey, TValue$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:ping\\(\\) has parameter \\$id with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:ping\\(\\) has parameter \\$type with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessage\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessage\\(\\) has parameter \\$bot with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessage\\(\\) has parameter \\$ignore with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessage\\(\\) has parameter \\$message with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessage\\(\\) has parameter \\$receiver with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessage\\(\\) has parameter \\$roomId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessage\\(\\) has parameter \\$userId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessages\\(\\) has parameter \\$senderId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessages\\(\\) has parameter \\$targetId with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:privateMessages\\(\\) return type with generic class Illuminate\\\\Support\\\\Collection does not specify its types\\: TKey, TValue$#"
|
||||
count: 1
|
||||
@@ -925,11 +695,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:roomFindOrFail\\(\\) has parameter \\$id with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:rooms\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
@@ -950,11 +715,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:statusFindOrFail\\(\\) has parameter \\$id with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:statuses\\(\\) has no return type specified\\.$#"
|
||||
count: 1
|
||||
@@ -965,36 +725,6 @@ parameters:
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:systemChatroom\\(\\) has parameter \\$room with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:systemMessage\\(\\) has parameter \\$bot with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Repositories\\\\ChatRepository\\:\\:systemMessage\\(\\) has parameter \\$message with no type specified\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$message of class App\\\\Events\\\\MessageDeleted constructor expects App\\\\Models\\\\Message, App\\\\Models\\\\Message\\|Illuminate\\\\Database\\\\Eloquent\\\\Collection\\<int, App\\\\Models\\\\Message\\> given\\.$#"
|
||||
count: 1
|
||||
path: app/Repositories/ChatRepository.php
|
||||
|
||||
-
|
||||
message: "#^Property App\\\\Rules\\\\EmailBlacklist\\:\\:\\$domains type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: app/Rules/EmailBlacklist.php
|
||||
|
||||
-
|
||||
message: "#^Class Database\\\\Factories\\\\FollowFactory extends generic class Illuminate\\\\Database\\\\Eloquent\\\\Factories\\\\Factory but does not specify its types\\: TModel$#"
|
||||
count: 1
|
||||
path: database/factories/FollowFactory.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property object\\:\\:\\$default_groups\\.$#"
|
||||
count: 1
|
||||
|
||||
Reference in New Issue
Block a user