Code Duplication    Length = 8-8 lines in 2 locations

src/Validation/JsonApi/Execution/JsonApiErrorCollection.php 2 locations

@@ 70-77 (lines=8) @@
67
    /**
68
     * @inheritdoc
69
     */
70
    public function addValidationAttributeError(
71
        ErrorInterface $error,
72
        int $errorStatus = JsonApiResponse::HTTP_UNPROCESSABLE_ENTITY
73
    ): void {
74
        $title  = $this->getInvalidValueMessage();
75
        $detail = $this->getValidationMessage($error);
76
        $this->addDataAttributeError($error->getParameterName(), $title, $detail, $errorStatus);
77
    }
78
79
    /**
80
     * @inheritdoc
@@ 82-89 (lines=8) @@
79
    /**
80
     * @inheritdoc
81
     */
82
    public function addValidationRelationshipError(
83
        ErrorInterface $error,
84
        int $errorStatus = JsonApiResponse::HTTP_UNPROCESSABLE_ENTITY
85
    ): void {
86
        $title  = $this->getInvalidValueMessage();
87
        $detail = $this->getValidationMessage($error);
88
        $this->addRelationshipError($error->getParameterName(), $title, $detail, $errorStatus);
89
    }
90
91
    /**
92
     * @inheritdoc