/** * @param \App\Library\GitHub\Repository $repository * @param integer $id */ private function find(Repository $repository, $id) { $issue = $this->github->issue()->show($repository->owner()->login, $repository->name, $id); foreach ($issue as $key => $value) { $this->{$key} = $value; } $this->user = $this->user($this->user["login"]); }