ernestwisniewski/kbin

View on GitHub
src/Kbin/Entry/DTO/EntryResponseDto.php

Summary

Maintainability
B
6 hrs
Test Coverage

Method create has 25 arguments (exceeds 4 allowed). Consider refactoring.
Open

        int $id = null,
        MagazineSmallResponseDto $magazine = null,
        UserSmallResponseDto $user = null,
        DomainDto $domain = null,
        string $title = null,
Severity: Major
Found in src/Kbin/Entry/DTO/EntryResponseDto.php - About 3 hrs to fix

    Method jsonSerialize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function jsonSerialize(): mixed
        {
            if (null === self::$keysToDelete) {
                self::$keysToDelete = [
                    'domain',
    Severity: Minor
    Found in src/Kbin/Entry/DTO/EntryResponseDto.php - About 1 hr to fix

      Method create has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function create(
              int $id = null,
              MagazineSmallResponseDto $magazine = null,
              UserSmallResponseDto $user = null,
              DomainDto $domain = null,
      Severity: Minor
      Found in src/Kbin/Entry/DTO/EntryResponseDto.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status