Code Duplication    Length = 2-2 lines in 2 locations

src/Http/Client.php 2 locations

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