| Conditions | 3 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3.009 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php require_once __DIR__ . "/_prepend.php"; ?><html lang="en"> |
||
| 32 | 1 | public function __call($name, $arguments) |
|
| 33 | { |
||
| 34 | 1 | $encoder = new PhpXmlRpc\Encoder(); |
|
| 35 | 1 | $valueArray = array(); |
|
| 36 | 1 | foreach ($arguments as $parameter) { |
|
| 37 | 1 | $valueArray[] = $encoder->encode($parameter); |
|
| 38 | } |
||
| 39 | |||
| 40 | // just in case this was set to something else |
||
| 41 | 1 | $this->client->return_type = 'phpvals'; |
|
| 42 | |||
| 43 | 1 | $resp = $this->client->send(new PhpXmlRpc\Request($this->prefix.$name, $valueArray)); |
|
| 44 | |||
| 45 | 1 | if ($resp->faultCode()) { |
|
| 46 | throw new Exception($resp->faultString(), $resp->faultCode()); |
||
| 47 | } else { |
||
| 48 | 1 | return $resp->value(); |
|
| 49 | } |
||
| 60 |