ernestwisniewski/kbin

View on GitHub
src/Entity/Entry.php

Summary

Maintainability
A
1 hr
Test Coverage
C
76%

File Entry.php has 304 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

<?php

// SPDX-FileCopyrightText: 2023 /kbin contributors <https://kbin.pub/>
//
// SPDX-License-Identifier: AGPL-3.0-only
Severity: Minor
Found in src/Entity/Entry.php - About 3 hrs to fix

    Entry has 25 functions (exceeds 20 allowed). Consider refactoring.
    Invalid

    #[Entity(repositoryClass: EntryRepository::class)]
    #[Index(columns: ['visibility', 'is_adult'], name: 'entry_visibility_adult_idx')]
    #[Index(columns: ['visibility'], name: 'entry_visibility_idx')]
    #[Index(columns: ['is_adult'], name: 'entry_adult_idx')]
    #[Index(columns: ['ranking'], name: 'entry_ranking_idx')]
    Severity: Minor
    Found in src/Entity/Entry.php - About 2 hrs to fix

      Method __construct has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              string $title,
              ?string $url,
              ?string $body,
              Magazine $magazine,
              User $user,
      Severity: Major
      Found in src/Entity/Entry.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status