Code Duplication    Length = 8-8 lines in 2 locations

src/Validation/Execution/JsonApiErrorCollection.php 1 location

@@ 100-107 (lines=8) @@
97
     *
98
     * @return string
99
     */
100
    private function getValidationMessage(ErrorInterface $error): string
101
    {
102
        $context = $error->getMessageContext();
103
        $args    = $context === null ? [] : $context;
104
        $message = $this->getMessageFormatter()->formatMessage($error->getMessageCode(), $args);
105
106
        return $message;
107
    }
108
109
    /**
110
     * @return FormatterInterface

src/Validation/Validator.php 1 location

@@ 562-569 (lines=8) @@
559
     *
560
     * @return string
561
     */
562
    private function getMessage(ErrorInterface $error): string
563
    {
564
        $context = $error->getMessageContext();
565
        $args    = $context === null ? [] : $context;
566
        $message = $this->formatMessage($error->getMessageCode(), $args);
567
568
        return $message;
569
    }
570
571
    /**
572
     * @return array