Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
soulaimaneyahya committed May 25, 2024
1 parent 7df4e01 commit ba8248b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Facades/QueryFilters.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* (c) 2024 Multividas. All rights reserved.
* Unauthorized use prohibited.
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/QueryFiltersRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* (c) 2024 Multividas. All rights reserved.
* Unauthorized use prohibited.
Expand Down
2 changes: 2 additions & 0 deletions src/Providers/QueryFiltersServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* (c) 2024 Multividas. All rights reserved.
* Unauthorized use prohibited.
Expand Down
10 changes: 6 additions & 4 deletions src/Repositories/QueryFiltersRepository.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* (c) 2024 Multividas. All rights reserved.
* Unauthorized use prohibited.
Expand All @@ -21,7 +23,7 @@ class QueryFiltersRepository implements QueryFiltersRepositoryInterface
private string $fullUrl;
private string $queryString;
private string|array|null $queryParams;

/**
* Method __construct
*
Expand Down Expand Up @@ -64,7 +66,7 @@ public function applyFilters(Collection|EloquentCollection|JsonResource $collect
'meta' => $paginatedResult['meta'],
];
}

/**
* Method filterData
*
Expand All @@ -91,7 +93,7 @@ public function filterData(

return $collection;
}

/**
* Method sortData
*
Expand Down Expand Up @@ -133,7 +135,7 @@ public function cacheData(
return $collection;
});
}

/**
* Method paginateData
*
Expand Down

0 comments on commit ba8248b

Please sign in to comment.