Code Duplication    Length = 7-7 lines in 2 locations

Serializer/Normalizer/FlattenExceptionHandler.php 1 location

@@ 26-32 (lines=7) @@
23
    private $debug;
24
    private $rfc7807;
25
26
    public function __construct(ExceptionValueMap $statusCodeMap, ExceptionValueMap $messagesMap, bool $debug, bool $rfc7807)
27
    {
28
        $this->statusCodeMap = $statusCodeMap;
29
        $this->messagesMap = $messagesMap;
30
        $this->debug = $debug;
31
        $this->rfc7807 = $rfc7807;
32
    }
33
34
    public static function getSubscribingMethods(): array
35
    {

Serializer/Normalizer/FlattenExceptionNormalizer.php 1 location

@@ 31-37 (lines=7) @@
28
    private $debug;
29
    private $rfc7807;
30
31
    public function __construct(ExceptionValueMap $statusCodeMap, ExceptionValueMap $messagesMap, bool $debug, bool $rfc7807)
32
    {
33
        $this->statusCodeMap = $statusCodeMap;
34
        $this->messagesMap = $messagesMap;
35
        $this->debug = $debug;
36
        $this->rfc7807 = $rfc7807;
37
    }
38
39
    public function normalize($exception, $format = null, array $context = [])
40
    {