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

TSK::parse_xml()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
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
?>