Skip to content

Commit 86e7ef6

Browse files
committed
chore: format
1 parent 44f45b9 commit 86e7ef6

File tree

8 files changed

+21
-28
lines changed

8 files changed

+21
-28
lines changed

demo/app/Models/Flamingo.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ public static function getAgGridColumnDefinitions(): array
6767
new AgGridColumnDefinition(
6868
'is_hungry',
6969
__('Is Hungry'),
70-
new AgGridBooleanFormatter()
70+
new AgGridBooleanFormatter
7171
),
7272
new AgGridColumnDefinition(
7373
'last_vaccinated_on',
7474
__('Last Vaccinated'),
75-
new AgGridDateFormatter(),
75+
new AgGridDateFormatter,
7676
),
7777
new AgGridColumnDefinition(
7878
'preferred_food_types',
7979
__('Preferred Food Types'),
80-
new AgGridArrayFormatter(),
80+
new AgGridArrayFormatter,
8181
),
8282
new AgGridColumnDefinition(
8383
'keeper_id',
@@ -88,12 +88,12 @@ public static function getAgGridColumnDefinitions(): array
8888
new AgGridColumnDefinition(
8989
'created_at',
9090
__('Created At'),
91-
new AgGridDateTimeFormatter(),
91+
new AgGridDateTimeFormatter,
9292
),
9393
new AgGridColumnDefinition(
9494
'updated_at',
9595
__('Updated At'),
96-
new AgGridDateTimeFormatter(),
96+
new AgGridDateTimeFormatter,
9797
),
9898
];
9999
}

src/AgGridColumnDefinition.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ public function __construct(
1212
public ?AgGridValueFormatter $valueFormatter = null,
1313
public ?\Closure $valueGetter = null,
1414
public ?string $excelFormat = null
15-
) {
16-
}
15+
) {}
1716
}

src/AgGridFormatterContext.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@
66

77
class AgGridFormatterContext
88
{
9-
public function __construct(public string $locale, public ?DateTimeZone $timezone = null)
10-
{
11-
}
9+
public function __construct(public string $locale, public ?DateTimeZone $timezone = null) {}
1210
}

src/Data/AgGridSetValue.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ class AgGridSetValue
77
public function __construct(
88
public readonly string|int $value,
99
public readonly ?string $label = null,
10-
) {
11-
}
10+
) {}
1211

1312
public static function fromValue(string|int|null $value): ?self
1413
{

src/Formatters/AgGridArrayFormatter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
class AgGridArrayFormatter implements AgGridValueFormatter
99
{
10-
public function __construct(private readonly string $separator = ',', private readonly ?AgGridValueFormatter $itemFormatter = null)
11-
{
12-
}
10+
public function __construct(private readonly string $separator = ',', private readonly ?AgGridValueFormatter $itemFormatter = null) {}
1311

1412
public function format(AgGridFormatterContext $context, $value): ?string
1513
{

src/Support/RelationMetadata.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ class RelationMetadata
99
public function __construct(
1010
public string $name,
1111
public Model $model,
12-
) {
13-
}
12+
) {}
1413
}

tests/ExportTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Flamingo::class,
2020
);
2121

22-
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request()));
22+
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request));
2323

2424
$response->assertDownload('export.xlsx');
2525
});
@@ -32,7 +32,7 @@
3232
Flamingo::class,
3333
);
3434

35-
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request()));
35+
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request));
3636

3737
$response->assertDownload('export.csv');
3838
});
@@ -45,7 +45,7 @@
4545
Flamingo::class,
4646
);
4747

48-
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request()));
48+
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request));
4949

5050
$response->assertDownload('export.csv');
5151
});
@@ -59,7 +59,7 @@
5959
Flamingo::class,
6060
);
6161

62-
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request()));
62+
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request));
6363

6464
$response->assertDownload('export.csv');
6565
});
@@ -73,7 +73,7 @@
7373
Flamingo::class,
7474
);
7575

76-
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request()));
76+
$response = TestResponse::fromBaseResponse($queryBuilder->toResponse(new Request));
7777

7878
$response->assertDownload('export.csv');
7979
});

tests/TestClasses/Models/Flamingo.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static function getAgGridColumnDefinitions(): array
6060
new AgGridColumnDefinition(
6161
'species',
6262
__('Species'),
63-
new AgGridBackedEnumFormatter(),
63+
new AgGridBackedEnumFormatter,
6464
),
6565
new AgGridColumnDefinition(
6666
'weight',
@@ -69,17 +69,17 @@ public static function getAgGridColumnDefinitions(): array
6969
new AgGridColumnDefinition(
7070
'is_hungry',
7171
__('Is Hungry'),
72-
new AgGridBooleanFormatter()
72+
new AgGridBooleanFormatter
7373
),
7474
new AgGridColumnDefinition(
7575
'last_vaccinated_on',
7676
__('Last Vaccinated'),
77-
new AgGridDateFormatter(),
77+
new AgGridDateFormatter,
7878
),
7979
new AgGridColumnDefinition(
8080
'preferred_food_types',
8181
__('Preferred Food Types'),
82-
new AgGridArrayFormatter(),
82+
new AgGridArrayFormatter,
8383
),
8484
new AgGridColumnDefinition(
8585
'keeper_id',
@@ -90,12 +90,12 @@ public static function getAgGridColumnDefinitions(): array
9090
new AgGridColumnDefinition(
9191
'created_at',
9292
__('Created At'),
93-
new AgGridDateTimeFormatter(),
93+
new AgGridDateTimeFormatter,
9494
),
9595
new AgGridColumnDefinition(
9696
'updated_at',
9797
__('Updated At'),
98-
new AgGridDateTimeFormatter(),
98+
new AgGridDateTimeFormatter,
9999
),
100100
];
101101
}

0 commit comments

Comments
 (0)