diff --git a/src/Filters/FiltersPartial.php b/src/Filters/FiltersPartial.php index f5c38385..77db819c 100644 --- a/src/Filters/FiltersPartial.php +++ b/src/Filters/FiltersPartial.php @@ -74,7 +74,7 @@ protected static function escapeLike(string $value): string */ protected static function maybeSpecifyEscapeChar(string $driver): string { - if(! in_array($driver, ['sqlite','pgsql','sqlsrv'])) { + if (! in_array($driver, ['sqlite','pgsql','sqlsrv'])) { return ''; } diff --git a/tests/FilterTest.php b/tests/FilterTest.php index 80b971be..650abbd9 100644 --- a/tests/FilterTest.php +++ b/tests/FilterTest.php @@ -4,7 +4,6 @@ use Illuminate\Http\Request; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\DB; - use Pest\Expectation; use function PHPUnit\Framework\assertObjectHasProperty; diff --git a/tests/SortTest.php b/tests/SortTest.php index 95534beb..6fd3de5b 100644 --- a/tests/SortTest.php +++ b/tests/SortTest.php @@ -14,7 +14,6 @@ use Spatie\QueryBuilder\Sorts\Sort as SortInterface; use Spatie\QueryBuilder\Sorts\SortsField; use Spatie\QueryBuilder\Tests\Concerns\AssertsCollectionSorting; - use Spatie\QueryBuilder\Tests\TestClasses\Models\TestModel; uses(AssertsCollectionSorting::class);