Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | private function toXml(\SimpleXMLElement $object, array $data) { |
||
39 | foreach( $data as $key => $value ) { |
||
40 | if(is_array($value) ) { |
||
41 | if( is_numeric($key) ){ |
||
42 | $key = 'item'.$key; //dealing with <0/>..<n/> issues |
||
43 | } |
||
44 | $subnode = $object->addChild($key); |
||
45 | $this->toXml($subnode, $value); |
||
46 | } else { |
||
47 | $object->addChild("$key",htmlspecialchars("$value")); |
||
48 | } |
||
49 | } |
||
50 | } |
||
51 | |||
62 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.