| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 13 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 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 marks private properties in classes that are never used. Those properties can be removed.