Code Duplication    Length = 2-2 lines in 2 locations

src/RandomOrgAPI.php 2 locations

@@ 183-184 (lines=2) @@
180
181
            if (isset($body['error']['code'])) {
182
                switch ($body['error']['code']) {
183
                    case -32600:
184
                        throw new \InvalidArgumentException(
185
                            'Invalid Request: ' . $body['error']['message'],
186
                            $body['error']['code']
187
                        );
@@ 193-194 (lines=2) @@
190
                            'Procedure not found: ' . $body['error']['message'],
191
                            $body['error']['code']
192
                        );
193
                    case -32602:
194
                        throw new \InvalidArgumentException(
195
                            'Invalid arguments: ' . $body['error']['message'],
196
                            $body['error']['code']
197
                        );