type === "active") { return $this->downloadRepository->getActivePaginated($this->getUser(), $this->pageNumber, $this->perPage); } elseif ($this->type === "complete") { return $this->downloadRepository->getCompletePaginated($this->getUser(), $this->pageNumber, $this->perPage); } return []; } }