| Conditions | 3 |
| Paths | 4 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <html> |
||
| 34 | public function __call($name, $arguments) |
||
| 35 | { |
||
| 36 | $encoder = new PhpXmlRpc\Encoder(); |
||
| 37 | $valueArray = array(); |
||
| 38 | foreach ($arguments as $parameter) { |
||
| 39 | $valueArray[] = $encoder->encode($parameter); |
||
| 40 | } |
||
| 41 | |||
| 42 | // just in case this was set to something else |
||
| 43 | $this->client->return_type = 'phpvals'; |
||
| 44 | |||
| 45 | $resp = $this->client->send(new PhpXmlRpc\Request($this->prefix.$name, $valueArray)); |
||
| 46 | |||
| 47 | if ($resp->faultCode()) { |
||
| 48 | throw new Exception($resp->faultString(), $resp->faultCode()); |
||
| 49 | } else { |
||
| 50 | return $resp->value(); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 61 |