ernestwisniewski/kbin

View on GitHub
src/Kbin/PostComment/DTO/PostCommentResponseDto.php

Summary

Maintainability
B
4 hrs
Test Coverage

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

        int $id,
        UserSmallResponseDto $user = null,
        MagazineSmallResponseDto $magazine = null,
        Post $post = null,
        PostComment $parent = null,
Severity: Major
Found in src/Kbin/PostComment/DTO/PostCommentResponseDto.php - About 2 hrs to fix

    Method jsonSerialize has 40 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/PostComment/DTO/PostCommentResponseDto.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status