Skip to content

Commit

Permalink
[1.x] Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Apr 10, 2024
1 parent d90e732 commit 9dfe217
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/RefineQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ class RefineQuery

/**
* Create a new refine query instance.
*
* @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $builder
* @param \Illuminate\Http\Request $request
* @param \Laragear\Refine\Refiner $refiner
*/
public function __construct(
protected Builder|EloquentBuilder $builder,
Expand All @@ -59,7 +55,6 @@ public function __construct(
* Refine the database query using the HTTP Request query.
*
* @param string[]|null $keys
* @return void
*/
public function match(array $keys = null): void
{
Expand All @@ -77,8 +72,6 @@ public function match(array $keys = null): void

/**
* Validate the refiner.
*
* @return void
*/
protected function validateRefiner()
{
Expand Down Expand Up @@ -129,7 +122,6 @@ protected function queryValuesFromRequest(?array $keys): void
/**
* Retrieves the key to use from the Refiner instance.
*
* @param \Illuminate\Http\Request $request
* @return string[]
*/
protected function getKeysFromRefiner(Request $request): array
Expand Down Expand Up @@ -199,10 +191,8 @@ public static function flushCachedRefinerMethods(): void
/**
* Create a new refine query instance.
*
* @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $builder
* @param \Laragear\Refine\Refiner|class-string|string $refiner
* @param array|null $keys
* @return \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder
* @param string[]|null $keys
*/
public static function refine(
Builder|EloquentBuilder $builder,
Expand Down

0 comments on commit 9dfe217

Please sign in to comment.