Completed
Push — master ( ec6201...4054cb )
by Chris
03:18
created

helpers.php ➔ file_read_json()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * Helper functions for the Darya framework.
4
 * 
5
 * @author Chris Andrew <[email protected]>
6
 */
7
8
if (!function_exists('read_json_file')) {
9
	function read_json_file($path) {
10
		return json_decode(file_get_contents($path), true);
11
	}
12
}
13
14
if (!function_exists('file_read_json')) {
15
	function file_read_json($path) {
16
		return read_json_file($path);
17
	}
18
}
19