Code Duplication    Length = 10-10 lines in 2 locations

src/Response.php 2 locations

@@ 61-70 (lines=10) @@
58
    public function getBody()
59
    {
60
        switch ($this->responseType) {
61
            case 'NyTilmelding2':
62
                if (!$this->isOk()) {
63
                    throw new \Exception($this->response->NyTilmelding2Result);
64
                }
65
                return str_replace(
66
                    'Oprettelse Ok, nye tilmeldinger: ',
67
                    '',
68
                    $this->response->NyTilmelding2Result
69
                );
70
            break;
71
            case 'SletTilmeldingerV2':
72
                if (!$this->isOk()) {
73
                    throw new \Exception($this->response->SletTilmeldingerV2Result);
@@ 71-80 (lines=10) @@
68
                    $this->response->NyTilmelding2Result
69
                );
70
            break;
71
            case 'SletTilmeldingerV2':
72
                if (!$this->isOk()) {
73
                    throw new \Exception($this->response->SletTilmeldingerV2Result);
74
                }
75
                return str_replace(
76
                    'Oprettelse Ok, nye tilmeldinger: ',
77
                    '',
78
                    $this->response->SletTilmeldingerV2Response
79
                );
80
            break;
81
            case 'HentNyeTilmeldingerV2':
82
                return $this->response->HentNyeTilmeldingerV2Result;
83
            break;