| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2.0023 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | 1 | public function addNewRegistration(Request $request) |
|
| 48 | { |
||
| 49 | 1 | $this->response = $this->soap->NyTilmelding2( |
|
| 50 | array( |
||
| 51 | 1 | 'XmlData' => new \SoapVar($request->getRequest()->asXml(), XSD_STRING) |
|
| 52 | 1 | ) |
|
| 53 | 1 | ); |
|
| 54 | 1 | if (!$this->isOk()) { |
|
| 55 | throw new \Exception($this->response->NyTilmelding2Result); |
||
| 56 | } |
||
| 57 | 1 | return str_replace( |
|
| 58 | 1 | 'Oprettelse Ok, nye tilmeldinger: ', |
|
| 59 | 1 | '', |
|
| 60 | 1 | $this->response->NyTilmelding2Result |
|
| 61 | 1 | ); |
|
| 62 | } |
||
| 63 | |||
| 76 |