function rawBody($data = null) { if ($this->_rawBody === null) { if ($data === null) { if ($this->isWorkVersion()) { $data = file_get_contents(gb::$site_dir . '/' . $this->name); } else { $data = git::cat_file($this->id); } } $p = self::findHeaderTerminatorOffset($data); if ($p === false) { return ''; } $this->_rawBody = substr($data, $p); } return $this->_rawBody; }