ernestwisniewski/kbin

View on GitHub
src/Kbin/EntryComment/DTO/EntryCommentResponseDto.php

Summary

Maintainability
B
4 hrs
Test Coverage

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

        int $id = null,
        UserSmallResponseDto $user = null,
        MagazineSmallResponseDto $magazine = null,
        int $entryId = null,
        int $parentId = null,
Severity: Major
Found in src/Kbin/EntryComment/DTO/EntryCommentResponseDto.php - About 2 hrs to fix

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

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

      There are no issues that match your filters.

      Category
      Status