Code Duplication    Length = 2-2 lines in 2 locations

src/Http/Client.php 2 locations

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