Code Duplication    Length = 3-3 lines in 2 locations

src/ReportingCloud.php 2 locations

@@ 188-190 (lines=3) @@
185
186
        $records = $this->get('/templates/thumbnails', $query);
187
188
        if (is_array($records) && count($records) > 0) {
189
            $ret = array_map('base64_decode', $records);
190
        }
191
192
        return $ret;
193
    }
@@ 523-525 (lines=3) @@
520
521
        if ($response instanceof Response && 200 === $response->getStatusCode()) {
522
            $body = json_decode($response->getBody(), true);
523
            if (is_array($body) && count($body) > 0) {
524
                $ret = array_map('base64_decode', $body);
525
            }
526
        }
527
528
        return $ret;