Code Duplication    Length = 2-2 lines in 2 locations

src/RandomOrgAPI.php 2 locations

@@ 177-178 (lines=2) @@
174
175
            if (isset($body['error']['code'])) {
176
                switch ($body['error']['code']) {
177
                    case -32600:
178
                        throw new \InvalidArgumentException(
179
                            'Invalid Request: ' . $body['error']['message'],
180
                            $body['error']['code']
181
                        );
@@ 187-188 (lines=2) @@
184
                            'Procedure not found: ' . $body['error']['message'],
185
                            $body['error']['code']
186
                        );
187
                    case -32602:
188
                        throw new \InvalidArgumentException(
189
                            'Invalid arguments: ' . $body['error']['message'],
190
                            $body['error']['code']
191
                        );