src/Entity/Post.php
Post
has 21 functions (exceeds 20 allowed). Consider refactoring. Wontfix
Wontfix
#[Entity(repositoryClass: PostRepository::class)]
#[Index(columns: ['visibility', 'is_adult'], name: 'post_visibility_adult_idx')]
#[Index(columns: ['visibility'], name: 'post_visibility_idx')]
#[Index(columns: ['is_adult'], name: 'post_adult_idx')]
#[Index(columns: ['ranking'], name: 'post_ranking_idx')]
File Post.php
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Invalid
Invalid
<?php
// SPDX-FileCopyrightText: 2023 /kbin contributors <https://kbin.pub/>
//
// SPDX-License-Identifier: AGPL-3.0-only
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
?string $body,
Magazine $magazine,
User $user,
bool $isAdult,
string $ip = null