Skip to content

Commit cfd97b0

Browse files
yajragithub-actions[bot]
authored andcommitted
fix: pint
1 parent f2960df commit cfd97b0

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

rector.php

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

99
return static function (RectorConfig $rectorConfig): void {
1010
$rectorConfig->paths([
11-
__DIR__ . '/src',
12-
__DIR__ . '/tests',
11+
__DIR__.'/src',
12+
__DIR__.'/tests',
1313
]);
1414

1515
// register a single rule

src/Html/Editor/Fields/Options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function model(string|EloquentBuilder $model, string $value, strin
3939
$model = $model::query();
4040
}
4141

42-
return $model->get()->map(fn($model) => [
42+
return $model->get()->map(fn ($model) => [
4343
'value' => $model->{$key},
4444
'label' => $model->{$value},
4545
]);
@@ -63,7 +63,7 @@ public static function table(
6363
$callback($query);
6464
}
6565

66-
return $query->get()->map(fn($row) => (array) $row);
66+
return $query->get()->map(fn ($row) => (array) $row);
6767
}
6868

6969
/**

src/Html/HtmlBuilder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ public function __construct(
2020
* The View Factory instance.
2121
*/
2222
protected Factory $view
23-
)
24-
{
23+
) {
2524
}
2625

2726
/**

src/Html/Options/HasColumns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function removeColumn(...$names): static
175175
{
176176
foreach ($names as $name) {
177177
// @phpstan-ignore-next-line
178-
$this->collection = $this->collection->filter(fn(Column $column) => $column->name !== $name)->flatten();
178+
$this->collection = $this->collection->filter(fn (Column $column) => $column->name !== $name)->flatten();
179179
}
180180

181181
return $this;

src/HtmlServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public function register(): void
3636
{
3737
$this->mergeConfigFrom(__DIR__.'/resources/config/config.php', 'datatables-html');
3838

39-
$this->app->bind('datatables.html', fn() => $this->app->make(Html\Builder::class));
39+
$this->app->bind('datatables.html', fn () => $this->app->make(Html\Builder::class));
4040

41-
DataTables::macro('getHtmlBuilder', fn(): Html\Builder => app('datatables.html'));
41+
DataTables::macro('getHtmlBuilder', fn (): Html\Builder => app('datatables.html'));
4242
}
4343
}

tests/BuilderOptionsPluginsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function it_has_search_panes_plugin()
273273
$builder->searchPanes(['hide' => true]);
274274
$this->assertEquals(['hide' => true], $builder->getAttribute('searchPanes'));
275275

276-
$builder->searchPanes(fn() => ['show' => true]);
276+
$builder->searchPanes(fn () => ['show' => true]);
277277
$this->assertEquals(['show' => true], $builder->getAttribute('searchPanes'));
278278

279279
$builder->searchPanes(SearchPane::make()->show()->cascadePanes());

0 commit comments

Comments
 (0)