Skip to content

Commit b542026

Browse files
committed
Apply fixes from StyleCI
1 parent 15519f5 commit b542026

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

src/EloquentDataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function (EloquentBuilder $query) use ($column, $keyword) {
109109
$newColumn = array_pop($parts);
110110
$relation = implode('.', $parts);
111111

112-
if (!$nested && $this->isNotEagerLoaded($relation)) {
112+
if (! $nested && $this->isNotEagerLoaded($relation)) {
113113
parent::compileQuerySearch($query, $column, $keyword, $boolean);
114114

115115
return;

src/QueryDataTable.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -850,15 +850,15 @@ public function getFilteredQuery(): QueryBuilder
850850
return $this->getQuery();
851851
}
852852

853-
/**
854-
* Ignore the selects in count query.
855-
*
856-
* @return $this
857-
*/
858-
public function ignoreSelectsInCountQuery(): static
859-
{
860-
$this->ignoreSelectInCountQuery = true;
861-
862-
return $this;
863-
}
853+
/**
854+
* Ignore the selects in count query.
855+
*
856+
* @return $this
857+
*/
858+
public function ignoreSelectsInCountQuery(): static
859+
{
860+
$this->ignoreSelectInCountQuery = true;
861+
862+
return $this;
863+
}
864864
}

tests/Integration/DeepRelationTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
namespace Yajra\DataTables\Tests\Integration;
44

5+
use Illuminate\Foundation\Testing\DatabaseTransactions;
56
use Yajra\DataTables\DataTables;
6-
use Yajra\DataTables\Tests\TestCase;
77
use Yajra\DataTables\Tests\Models\Post;
8-
use Yajra\DataTables\Tests\Models\User;
9-
use Illuminate\Foundation\Testing\DatabaseTransactions;
8+
use Yajra\DataTables\Tests\TestCase;
109

1110
class DeepRelationTest extends TestCase
1211
{

0 commit comments

Comments
 (0)