Skip to content

Commit fae13ad

Browse files
committed
pint
1 parent c924479 commit fae13ad

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/Processors/RouteProcessor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ protected function processRoute(Route $route)
115115

116116
if ($this->config['structured']) {
117117
$routeNameSegments = (
118-
$route->getName()
119-
? Str::of($route->getName())->explode('.')
120-
: Str::of($route->uri())->after('api/')->explode('/')
118+
$route->getName()
119+
? Str::of($route->getName())->explode('.')
120+
: Str::of($route->uri())->after('api/')->explode('/')
121121
)->filter(fn ($value) => ! is_null($value) && $value !== '');
122122

123123
if (! $this->config['crud_folders']) {
@@ -168,7 +168,7 @@ protected function processRequest(string $method, Stringable $uri, Collection $r
168168

169169
if ($method === 'GET') {
170170
return $collection->put('url', [
171-
'query' => $rules->map(fn ($value) => array_merge($value, ['disabled' => false]))
171+
'query' => $rules->map(fn ($value) => array_merge($value, ['disabled' => false])),
172172
]);
173173
}
174174

tests/Fixtures/ExampleController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public function getWithFormRequest(ExampleFormRequest $request): string
4848
* and has a blank line.
4949
*
5050
* @param string $non-existing param
51-
* @return string
5251
*/
5352
public function phpDocRoute(): string
5453
{

tests/Fixtures/UppercaseRule.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ class UppercaseRule implements ValidationRule
1010
/**
1111
* Run the validation rule.
1212
*
13-
* @param string $attribute
14-
* @param mixed $value
1513
* @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail
16-
* @return void
1714
*/
1815
public function validate(string $attribute, mixed $value, Closure $fail): void
1916
{

0 commit comments

Comments
 (0)