Code Duplication    Length = 2-2 lines in 2 locations

src/RandomOrgAPI.php 2 locations

@@ 219-220 (lines=2) @@
216
217
            if (isset($body['error']['code'])) {
218
                switch ($body['error']['code']) {
219
                    case -32600:
220
                        throw new \InvalidArgumentException(
221
                            'Invalid Request: ' . $body['error']['message'],
222
                            $body['error']['code']
223
                        );
@@ 229-230 (lines=2) @@
226
                            'Procedure not found: ' . $body['error']['message'],
227
                            $body['error']['code']
228
                        );
229
                    case -32602:
230
                        throw new \InvalidArgumentException(
231
                            'Invalid arguments: ' . $body['error']['message'],
232
                            $body['error']['code']
233
                        );