Skip to content

Commit 161708e

Browse files
committed
fixed stylings
1 parent 44afae6 commit 161708e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/DatatableService.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,19 @@ protected function buildQuery(): Builder
7878

7979
$query->offset($this->dataTableInput->getStart());
8080

81-
if(!is_null($this->dataTableInput->getSize())){
81+
if (! is_null($this->dataTableInput->getSize())) {
8282
$query->limit($this->dataTableInput->getSize());
8383
}
8484

8585
$sorting = $this->dataTableInput->getSorting();
8686
$query = (new ApplySort($query, $sorting))->apply();
87+
8788
return $query;
8889
}
8990

9091
protected function applySelect(Builder $query, array $selectedFields): Builder
9192
{
92-
if (!empty($selectedFields)) {
93+
if (! empty($selectedFields)) {
9394
$query->select($selectedFields);
9495
}
9596

@@ -98,7 +99,7 @@ protected function applySelect(Builder $query, array $selectedFields): Builder
9899

99100
protected function includeRelationsInQuery(Builder $query, array $rels): Builder
100101
{
101-
if (!empty($rels)) {
102+
if (! empty($rels)) {
102103
$query->with($rels);
103104
}
104105

src/Sort/Sort.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace HamidRrj\LaravelDatatable\Sort;
44

5-
use HamidRrj\LaravelDatatable\Exceptions\InvalidSortingException;
65
use HamidRrj\LaravelDatatable\Validators\SortingValidator;
76

87
class Sort

0 commit comments

Comments
 (0)