Code Duplication    Length = 4-4 lines in 2 locations

src/Upyun/Video.php 2 locations

@@ 35-38 (lines=4) @@
32
            $postParams
33
        );
34
35
        if($response->status_code !== 200) {
36
            $body = json_decode($response->body, true);
37
            throw new \Exception(sprintf('%s, with x-request-id=%s', $body['msg'], $body['id']), $body['code']);
38
        }
39
40
41
        $taskIds = json_decode($response->body, true);
@@ 68-71 (lines=4) @@
65
            $query
66
        );
67
68
        if($response->status_code !== 200) {
69
            $body = json_decode($response->body, true);
70
            throw new \Exception(sprintf('%s, with x-request-id=%s', $body['msg'], $body['id']), $body['code']);
71
        }
72
73
        $status = json_decode($response->body, true);
74
        return $status;