Code Duplication    Length = 2-2 lines in 2 locations

src/RandomOrgAPI.php 2 locations

@@ 192-193 (lines=2) @@
189
190
            if (isset($body['error']['code'])) {
191
                switch ($body['error']['code']) {
192
                    case -32600:
193
                        throw new \InvalidArgumentException(
194
                            'Invalid Request: ' . $body['error']['message'],
195
                            $body['error']['code']
196
                        );
@@ 202-203 (lines=2) @@
199
                            'Procedure not found: ' . $body['error']['message'],
200
                            $body['error']['code']
201
                        );
202
                    case -32602:
203
                        throw new \InvalidArgumentException(
204
                            'Invalid arguments: ' . $body['error']['message'],
205
                            $body['error']['code']
206
                        );