From 809dfd7070c47c1d4bd2525cc53b5df51600d6c2 Mon Sep 17 00:00:00 2001 From: Joel Bladt Date: Fri, 4 Jul 2025 10:24:03 +0200 Subject: [PATCH] Update return type for LengthAwarePaginator --- app/Http/Resources/BaseResourceCollection.php | 2 +- app/Interfaces/BookRepositoryInterface.php | 2 +- app/Interfaces/PublisherRepositoryInterface.php | 4 ++-- app/Repositories/BookRepository.php | 2 +- app/Repositories/PublisherRepository.php | 4 ++-- app/Services/BookService.php | 2 +- app/Services/PublisherService.php | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/Http/Resources/BaseResourceCollection.php b/app/Http/Resources/BaseResourceCollection.php index d09fbeb..07c6d49 100644 --- a/app/Http/Resources/BaseResourceCollection.php +++ b/app/Http/Resources/BaseResourceCollection.php @@ -7,7 +7,7 @@ use Illuminate\Pagination\LengthAwarePaginator; /** - * @property LengthAwarePaginator $resource + * @property LengthAwarePaginator $resource */ class BaseResourceCollection extends ResourceCollection { diff --git a/app/Interfaces/BookRepositoryInterface.php b/app/Interfaces/BookRepositoryInterface.php index 516e40d..affa615 100644 --- a/app/Interfaces/BookRepositoryInterface.php +++ b/app/Interfaces/BookRepositoryInterface.php @@ -10,7 +10,7 @@ interface BookRepositoryInterface { /** - * @return LengthAwarePaginator + * @return LengthAwarePaginator */ public function getAllBooks(int $perPage = 10, int $page = 1): LengthAwarePaginator; diff --git a/app/Interfaces/PublisherRepositoryInterface.php b/app/Interfaces/PublisherRepositoryInterface.php index 036e04c..4d8426b 100644 --- a/app/Interfaces/PublisherRepositoryInterface.php +++ b/app/Interfaces/PublisherRepositoryInterface.php @@ -11,14 +11,14 @@ interface PublisherRepositoryInterface { /** - * @return LengthAwarePaginator + * @return LengthAwarePaginator */ public function getAllPublisher(): LengthAwarePaginator; public function findPublisherById(int $id): ?Publisher; /** - * @return LengthAwarePaginator + * @return LengthAwarePaginator */ public function findBooksByPublisherId( int $id, diff --git a/app/Repositories/BookRepository.php b/app/Repositories/BookRepository.php index 33367cb..f56013d 100644 --- a/app/Repositories/BookRepository.php +++ b/app/Repositories/BookRepository.php @@ -12,7 +12,7 @@ class BookRepository implements BookRepositoryInterface { /** - * @return LengthAwarePaginator + * @return LengthAwarePaginator */ public function getAllBooks(int $perPage = 10, int $page = 1): LengthAwarePaginator { diff --git a/app/Repositories/PublisherRepository.php b/app/Repositories/PublisherRepository.php index 78864a3..96700c9 100644 --- a/app/Repositories/PublisherRepository.php +++ b/app/Repositories/PublisherRepository.php @@ -13,7 +13,7 @@ class PublisherRepository implements PublisherRepositoryInterface { /** - * @return LengthAwarePaginator + * @return LengthAwarePaginator */ public function getAllPublisher(int $perPage = 10, int $page = 1): LengthAwarePaginator { @@ -26,7 +26,7 @@ public function findPublisherById(int $id): ?Publisher } /** - * @return LengthAwarePaginator + * @return LengthAwarePaginator * * @throws PublisherNotFoundException */ diff --git a/app/Services/BookService.php b/app/Services/BookService.php index 27186fc..f563f8f 100644 --- a/app/Services/BookService.php +++ b/app/Services/BookService.php @@ -22,7 +22,7 @@ public function __construct( } /** - * @return LengthAwarePaginator + * @return LengthAwarePaginator */ public function getAllBooks(int $perPage = 10, int $page = 1): LengthAwarePaginator { diff --git a/app/Services/PublisherService.php b/app/Services/PublisherService.php index 639741f..5b9ffd4 100644 --- a/app/Services/PublisherService.php +++ b/app/Services/PublisherService.php @@ -19,7 +19,7 @@ public function __construct( } /** - * @return LengthAwarePaginator + * @return LengthAwarePaginator */ public function getAllPublisher(int $perPage = 10, int $page = 1): LengthAwarePaginator { @@ -41,7 +41,7 @@ public function findPublisherById(int $id): ?Publisher } /** - * @return LengthAwarePaginator + * @return LengthAwarePaginator */ public function findBooksByPublisherId( int $publisherId,