public function showUser() { if (!($name = array_key_exists('name', $_GET) ? $_GET['name'] : false)) { return "Incorrect username"; } $properties = GhContributorModel::getUser($name); $repositories = GhRepoModel::getUserRepos($name); return \View::make('ghpb::pages.user', array('properties' => $properties, 'repositories' => $repositories)); }