Skip to content

Commit 8c40a84

Browse files
GautierDeleStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 31f800e commit 8c40a84

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

src/Actions/Action.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ public function jsonSerialize(): array
115115
$request = app()->make(RestRequest::class);
116116

117117
return [
118-
'name' => $this->name(),
119-
'uriKey' => $this->uriKey(),
120-
'fields' => $this->fields($request),
121-
'meta' => $this->meta(),
122-
'standalone' => $this->isStandalone()
118+
'name' => $this->name(),
119+
'uriKey' => $this->uriKey(),
120+
'fields' => $this->fields($request),
121+
'meta' => $this->meta(),
122+
'standalone' => $this->isStandalone(),
123123
];
124124
}
125125

src/Actions/DispatchAction.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,12 @@ public function dispatch($chunkCount)
111111
/**
112112
* Dispatch the given action.
113113
*
114-
* @param int $chunkCount
114+
* @param int $chunkCount
115+
*
115116
* @return int
116117
*/
117-
public function handleClassic(int $chunkCount) {
118+
public function handleClassic(int $chunkCount)
119+
{
118120
$searchQuery =
119121
app()->make(QueryBuilder::class, ['resource' => $this->request->resource, 'query' => null])
120122
->search($this->request->input('search', []));
@@ -139,10 +141,9 @@ function ($chunk) {
139141
* Dispatch the given standalone action.
140142
*
141143
* @return int
142-
*
143144
*/
144-
public function handleStandalone() {
145-
145+
public function handleStandalone()
146+
{
146147
$this->forModels(
147148
\Illuminate\Database\Eloquent\Collection::make()
148149
);

src/Http/Requests/OperateRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function operateRules(Resource $resource)
4646
return array_merge(
4747
$operatedAction->isStandalone() ? [
4848
'search' => [
49-
'prohibited'
50-
]
49+
'prohibited',
50+
],
5151
] : [],
5252
!$operatedAction->isStandalone() ? app(SearchRequest::class)->searchRules($resource, 'search') : [],
5353
[

tests/Support/Rest/Actions/StandaloneModifyNumberAction.php

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

33
namespace Lomkit\Rest\Tests\Support\Rest\Actions;
44

5-
use Illuminate\Database\Eloquent\Model;
65
use Illuminate\Support\Collection;
76
use Lomkit\Rest\Actions\Action;
8-
use Lomkit\Rest\Http\Requests\RestRequest;
97

108
class StandaloneModifyNumberAction extends ModifyNumberAction
119
{

tests/TestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Lomkit\Rest\RestServiceProvider;
1010
use Orchestra\Testbench\TestCase as BaseTestCase;
1111

12-
1312
class TestCase extends BaseTestCase
1413
{
1514
use RefreshDatabase;

0 commit comments

Comments
 (0)