Code Duplication    Length = 2-2 lines in 2 locations

src/Http/Client.php 2 locations

@@ 109-110 (lines=2) @@
106
107
      if (isset($body['error']['code'])) {
108
        switch ($body['error']['code']) {
109
          case -32600:
110
            throw new \InvalidArgumentException('Invalid Request: ' . $body['error']['message'], $body['error']['code']);
111
          case -32601:
112
            throw new \BadFunctionCallException('Procedure not found: ' . $body['error']['message'], $body['error']['code']);
113
          case -32602:
@@ 113-114 (lines=2) @@
110
            throw new \InvalidArgumentException('Invalid Request: ' . $body['error']['message'], $body['error']['code']);
111
          case -32601:
112
            throw new \BadFunctionCallException('Procedure not found: ' . $body['error']['message'], $body['error']['code']);
113
          case -32602:
114
            throw new \InvalidArgumentException('Invalid arguments: ' . $body['error']['message'], $body['error']['code']);
115
          case -32603:
116
            throw new \RuntimeException('Internal Error: ' . $body['error']['message'], $body['error']['code']);
117
          default: