| Conditions | 2 |
| Paths | 2 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 2.0219 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 2 | public function asDom(\DOMDocument $doc) |
|
| 35 | { |
||
| 36 | 2 | $structured = $doc->createElement('Strd'); |
|
| 37 | |||
| 38 | 2 | $referenceInformation = $doc->createElement('CdtrRefInf'); |
|
| 39 | 2 | $structured->appendChild($referenceInformation); |
|
| 40 | |||
| 41 | 2 | $type = $doc->createElement('Tp'); |
|
| 42 | 2 | $code = $doc->createElement('CdOrPrtry'); |
|
| 43 | 2 | $code->appendChild($doc->createElement('Prtry', 'QRR')); |
|
| 44 | 2 | $type->appendChild($code); |
|
| 45 | 2 | $referenceInformation->appendChild($type); |
|
| 46 | |||
| 47 | 2 | $reference = $doc->createElement('Ref', $this->reference->format()); |
|
| 48 | 2 | $referenceInformation->appendChild($reference); |
|
| 49 | |||
| 50 | 2 | $structured->appendChild($referenceInformation); |
|
| 51 | |||
| 52 | 2 | if (strlen($this->additionalInformation)) { |
|
| 53 | $additionalInformation = $doc->createElement('AddtlRmtInf', $this->additionalInformation); |
||
| 54 | $structured->appendChild($additionalInformation); |
||
| 55 | } |
||
| 56 | |||
| 57 | 2 | return $structured; |
|
| 58 | } |
||
| 59 | } |
||
| 60 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.