Skip to content

Commit 0b2f826

Browse files
joetannenbaumgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent fa3fcce commit 0b2f826

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/Response.php

+7-9
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Illuminate\Contracts\Support\Responsable;
1010
use Illuminate\Http\JsonResponse;
1111
use Illuminate\Http\Request;
12-
use Illuminate\Http\Resources\Json\JsonResource;
13-
use Illuminate\Http\Resources\Json\ResourceResponse;
1412
use Illuminate\Support\Arr;
1513
use Illuminate\Support\Facades\App;
1614
use Illuminate\Support\Facades\Response as ResponseFactory;
@@ -257,7 +255,7 @@ public function resolvePropertyInstances(array $props, Request $request): array
257255
DeferProp::class,
258256
AlwaysProp::class,
259257
MergeProp::class,
260-
])->first(fn($class) => $value instanceof $class);
258+
])->first(fn ($class) => $value instanceof $class);
261259

262260
if ($resolveViaApp) {
263261
$value = App::call($value);
@@ -309,22 +307,22 @@ public function resolveMergeProps(Request $request): array
309307
{
310308
$resetProps = collect(explode(',', $request->header(Header::RESET, '')));
311309
$mergeProps = collect($this->props)
312-
->filter(fn($prop) => $prop instanceof Mergeable)
313-
->filter(fn($prop) => $prop->shouldMerge())
314-
->filter(fn($_, $key) => ! $resetProps->contains($key));
310+
->filter(fn ($prop) => $prop instanceof Mergeable)
311+
->filter(fn ($prop) => $prop->shouldMerge())
312+
->filter(fn ($_, $key) => ! $resetProps->contains($key));
315313

316314
$deepMergeProps = $mergeProps
317-
->filter(fn($prop) => $prop->shouldDeepMerge())
315+
->filter(fn ($prop) => $prop->shouldDeepMerge())
318316
->keys();
319317

320318
$mergeProps = $mergeProps
321-
->filter(fn($prop) => ! $prop->shouldDeepMerge())
319+
->filter(fn ($prop) => ! $prop->shouldDeepMerge())
322320
->keys();
323321

324322
return array_filter([
325323
'mergeProps' => $mergeProps->toArray(),
326324
'deepMergeProps' => $deepMergeProps->toArray(),
327-
], fn($prop) => count($prop) > 0);
325+
], fn ($prop) => count($prop) > 0);
328326
}
329327

330328
public function resolveDeferredProps(Request $request): array

0 commit comments

Comments
 (0)