Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanjansen committed Mar 26, 2023
2 parents d7f1322 + 3c6a016 commit c778845
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Macros/DdQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class DdQuery
{
public function __invoke(): \Closure
{
return fn() => dd($this->rawQuery());
return fn () => dd($this->rawQuery());
}
}
2 changes: 1 addition & 1 deletion src/Macros/DumpQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class DumpQuery
{
public function __invoke(): \Closure
{
return fn() => dump($this->rawQuery());
return fn () => dump($this->rawQuery());
}
}
4 changes: 1 addition & 3 deletions src/Macros/RawQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Uteq\QueryBuilderMacros\Macros;

use Illuminate\Database\Query\Builder as QueryBuilder;

class RawQuery
{
public function __invoke(): \Closure
Expand All @@ -12,7 +10,7 @@ public function __invoke(): \Closure
$string = vsprintf(
format: str_replace('?', '%s', $this->toSql()),
values: collect($this->getBindings())
->map(fn($binding) => is_numeric($binding) ? $binding : "'{$binding}'")
->map(fn ($binding) => is_numeric($binding) ? $binding : "'{$binding}'")
->toArray()
);

Expand Down
2 changes: 1 addition & 1 deletion src/Macros/RayQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class RayQuery
{
public function __invoke(): \Closure
{
return fn() => ray($this->rawQuery());
return fn () => ray($this->rawQuery());
}
}
1 change: 0 additions & 1 deletion src/QueryBuilderMacroServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Database\Query\Builder;
use Illuminate\Support\ServiceProvider;
use Uteq\QueryBuilderMacros\Macros;

class QueryBuilderMacroServiceProvider extends ServiceProvider
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
|
*/

uses(Uteq\QueryBuilderMacros\Tests\TestCase::class)->in(__DIR__);
uses(Uteq\QueryBuilderMacros\Tests\TestCase::class)->in(__DIR__);

/*
|--------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Uteq\QueryBuilderMacros\Tests;

use Illuminate\Database\Eloquent\Factories\Factory;
use Orchestra\Testbench\TestCase as Orchestra;
use Uteq\QueryBuilderMacros\QueryBuilderMacroServiceProvider;

Expand Down

0 comments on commit c778845

Please sign in to comment.