Completed
Push — master ( dd5351...9adbe5 )
by Yannick
53:50
created

TSK   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse_xml() 0 6 2
1
<?php
2
class TSK {
3
	public function parse_xml($file) {
4
		$xml = simplexml_load_file($file);
5
		if ($xml !== false) {
6
			return json_decode(json_encode($xml), 1);
7
		}
8
	}
9
}
10
?>