/** * Saves our found path to file * * @param $built_path */ private static function SavePath($built_path) { $array = ['path' => $built_path]; JsonWriter::Write($array['path'] . "Json/resource/filepath.json", $array); }
/** * Again, because I was writing this quite a bit haha! * * @param $file * * @param $contents * * @return null */ public static function PathWrite($file, $contents) { return JsonWriter::Write(PathFinder::Path($file), $contents); }