Skip to content

Commit 04f7388

Browse files
committed
Merge branch '1.x' of github.com:lara-zeus/list-group into 1.x
2 parents 256b35c + f671a94 commit 04f7388

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/Infolists/ListEntry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function grouped(bool $condition = true): static
3737
return $this;
3838
}
3939

40-
public function isGrouped():bool
40+
public function isGrouped(): bool
4141
{
4242
return $this->grouped;
4343
}
@@ -49,7 +49,7 @@ public function list(bool $condition = true): static
4949
return $this;
5050
}
5151

52-
public function isList():bool
52+
public function isList(): bool
5353
{
5454
return $this->list;
5555
}

src/Item/ListItem.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,30 @@
66

77
final class ListItem implements Arrayable
88
{
9-
protected int|string $id;
9+
protected int | string $id;
10+
1011
protected string $label = '';
12+
1113
protected ?string $icon = null;
14+
1215
protected ?string $iconSize = null;
16+
1317
protected ?string $color = null;
18+
1419
protected ?string $iconColor = null;
20+
1521
protected ?string $url = null;
22+
1623
protected ?string $badge = null;
24+
1725
protected ?bool $openInNewTab = false;
1826

1927
public static function make(): ListItem
2028
{
2129
return new ListItem();
2230
}
2331

24-
public function id(int|string $id): ListItem
32+
public function id(int | string $id): ListItem
2533
{
2634
$this->id = $id;
2735

0 commit comments

Comments
 (0)