Code Duplication    Length = 7-7 lines in 2 locations

lib/Exception/UnknownErrorResponseException.php 1 location

@@ 33-39 (lines=7) @@
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function __toString(): string
34
    {
35
        return '['.get_class($this).'] '.$this->message."\n".
36
            'Response: '."\n".
37
            $this->response
38
        ;
39
    }
40
41
    /**
42
     * Gets the Unknown error response.

lib/Exception/XmlLoadException.php 1 location

@@ 36-42 (lines=7) @@
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function __toString(): string
37
    {
38
        return '['.get_class($this).'] '.$this->message."\n".
39
            'Response: '."\n".
40
            $this->response
41
        ;
42
    }
43
44
    /**
45
     * @param \LibXMLError $error