public function initialize() { if ($err = parent::initialize()) { return $err; } $repo_id = (int) mfwRequest::get('repo_id'); $repo = RepositoryDb::retrieveByPK($repo_id); if (!$repo) { return $this->buildErrorPage('no repository found.', '/pulls/index', 'return'); } $this->repo = $repo; return null; }