| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 2 | public function deserializeFaultDetail(XmlDeserializationVisitor $visitor, \SimpleXMLElement $data, array $type, DeserializationContext $context) |
|
| 25 | { |
||
| 26 | 2 | $domElement = dom_import_simplexml($data); |
|
| 27 | |||
| 28 | 2 | $document = new \DOMDocument('1.0', 'utf-8'); |
|
| 29 | |||
| 30 | 2 | $xml = ''; |
|
| 31 | 2 | foreach ($domElement->childNodes as $child) { |
|
| 32 | 2 | $newEl = $document->importNode($child, true); |
|
| 33 | 2 | $xml .= $document->saveXML($newEl); |
|
| 34 | 2 | } |
|
| 35 | 2 | return $xml; |
|
| 36 | } |
||
| 37 | } |
||
| 41 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.