@@ -81,7 +81,7 @@ |
||
81 | 81 | * |
82 | 82 | * @param string $file |
83 | 83 | * @param mixed $data |
84 | - * @return bool |
|
84 | + * @return integer |
|
85 | 85 | */ |
86 | 86 | public static function json_file_encode($file, $data) |
87 | 87 | { |
@@ -70,10 +70,10 @@ |
||
70 | 70 | */ |
71 | 71 | public static function json_file_decode($file, $as_array=TRUE) |
72 | 72 | { |
73 | - return json_decode( |
|
74 | - file_get_contents($file), |
|
75 | - $as_array |
|
76 | - ); |
|
73 | + return json_decode( |
|
74 | + file_get_contents($file), |
|
75 | + $as_array |
|
76 | + ); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -68,7 +68,7 @@ |
||
68 | 68 | * @param bool $as_array |
69 | 69 | * @return array|object |
70 | 70 | */ |
71 | - public static function json_file_decode($file, $as_array=TRUE) |
|
71 | + public static function json_file_decode($file, $as_array = TRUE) |
|
72 | 72 | { |
73 | 73 | return json_decode( |
74 | 74 | file_get_contents($file), |