Skip to content

Commit 3541bef

Browse files
committed
Apply fixes from StyleCI
1 parent 082d9d5 commit 3541bef

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function modelToResponse(Model $model, Resource $resource, array $request
7272
})
7373
->toArray(),
7474
collect($model->getRelations())
75-
->mapWithKeys(function ($modelRelation, $relationName) use ($requestArray, $currentRequestArray, $relation, $resource) {
75+
->mapWithKeys(function ($modelRelation, $relationName) use ($requestArray, $relation, $resource) {
7676
$key = Str::snake($relationName);
7777

7878
if (is_null($modelRelation)) {

src/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(Resource $resource, \Illuminate\Database\Eloquent\Bu
4545
protected bool $disableSecurity = false;
4646

4747
/**
48-
* Determine if default limit should be applied
48+
* Determine if default limit should be applied.
4949
*
5050
* @var bool
5151
*/

src/Query/ScoutBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function search(array $parameters = [])
5050
'instructions',
5151
'sorts',
5252
'text',
53-
'limit'
53+
'limit',
5454
])
5555
->all()
5656
);

tests/Feature/Controllers/ActionsOperationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public function test_operate_action_with_search_and_limit(): void
315315
'filters' => [
316316
['field' => 'string', 'value' => 'match'],
317317
],
318-
'limit' => 50
318+
'limit' => 50,
319319
],
320320
],
321321
['Accept' => 'application/json']

tests/Feature/Controllers/SearchIncludingRelationshipsOperationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ public function test_getting_a_list_of_resources_including_belongs_to_many_relat
541541
'includes' => [
542542
[
543543
'relation' => 'belongsToManyRelation',
544-
'limit' => 1
544+
'limit' => 1,
545545
],
546546
],
547547
],

0 commit comments

Comments
 (0)