/** * Reads the file * * @param $path * * @return mixed|null */ public static function ReadFile($path) { /** * Get the correct path */ $corrected_path = Path::Get($path); /** * Does this exist? */ if (file_exists($corrected_path)) { /** * Return the encoded json */ return json_decode(JsonReader::OpenFile($corrected_path), true); } /** * This does not exist! */ return null; }