Code Duplication    Length = 2-2 lines in 2 locations

src/RandomOrgAPI.php 2 locations

@@ 202-203 (lines=2) @@
199
200
            if (isset($body['error']['code'])) {
201
                switch ($body['error']['code']) {
202
                    case -32600:
203
                        throw new \InvalidArgumentException(
204
                            'Invalid Request: ' . $body['error']['message'],
205
                            $body['error']['code']
206
                        );
@@ 212-213 (lines=2) @@
209
                            'Procedure not found: ' . $body['error']['message'],
210
                            $body['error']['code']
211
                        );
212
                    case -32602:
213
                        throw new \InvalidArgumentException(
214
                            'Invalid arguments: ' . $body['error']['message'],
215
                            $body['error']['code']
216
                        );