diff --git a/app/Models/Category.php b/app/Models/Category.php index 30b1601f50..a86bc2fc84 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -36,7 +36,7 @@ class Category extends Model * @param array $fields * @SuppressWarnings(PHPMD.CyclomaticComplexity) * - * @return Account|null + * @return Category */ public static function firstOrCreateEncrypted(array $fields) { diff --git a/app/Repositories/Budget/BudgetRepository.php b/app/Repositories/Budget/BudgetRepository.php index ddc95d23ca..8a13ce11df 100644 --- a/app/Repositories/Budget/BudgetRepository.php +++ b/app/Repositories/Budget/BudgetRepository.php @@ -146,7 +146,7 @@ class BudgetRepository implements BudgetRepositoryInterface * @param LimitRepetition $repetition * @param int $take * - * @return \Illuminate\Pagination\Paginator + * @return LengthAwarePaginator */ public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50) { diff --git a/app/Repositories/Budget/BudgetRepositoryInterface.php b/app/Repositories/Budget/BudgetRepositoryInterface.php index b928ed35df..0a035bea35 100644 --- a/app/Repositories/Budget/BudgetRepositoryInterface.php +++ b/app/Repositories/Budget/BudgetRepositoryInterface.php @@ -5,6 +5,7 @@ namespace FireflyIII\Repositories\Budget; use Carbon\Carbon; use FireflyIII\Models\Budget; use FireflyIII\Models\LimitRepetition; +use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Support\Collection; /** @@ -89,7 +90,7 @@ interface BudgetRepositoryInterface * @param LimitRepetition $repetition * @param int $take * - * @return \Illuminate\Pagination\Paginator + * @return LengthAwarePaginator */ public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50); diff --git a/app/Repositories/Category/CategoryRepository.php b/app/Repositories/Category/CategoryRepository.php index a00ec82c5f..1fbb964e42 100644 --- a/app/Repositories/Category/CategoryRepository.php +++ b/app/Repositories/Category/CategoryRepository.php @@ -62,7 +62,7 @@ class CategoryRepository implements CategoryRepositoryInterface * @param Carbon $start * @param Carbon $end * - * @return Collection + * @return array */ public function getCategoriesAndExpensesCorrected($start, $end) { diff --git a/app/Repositories/Category/CategoryRepositoryInterface.php b/app/Repositories/Category/CategoryRepositoryInterface.php index 524b2ce443..cfe3f93c50 100644 --- a/app/Repositories/Category/CategoryRepositoryInterface.php +++ b/app/Repositories/Category/CategoryRepositoryInterface.php @@ -38,7 +38,7 @@ interface CategoryRepositoryInterface * @param Carbon $start * @param Carbon $end * - * @return Collection + * @return array */ public function getCategoriesAndExpensesCorrected($start, $end);