private static function parse() { if (self::$parsed) { return self::$parsed; } $info = @file_get_contents(self::$filepath); if (!$info) { return false; } self::$parsed = json_decode($info, true); return self::$parsed; }
function print_git_revision() { return ScmStatus::format('rev. %r (%F) ·', array('format_date' => "d-M Y g:i A T")); }