Skip to content

Commit 8e67e05

Browse files
rappasoftgithub-actions[bot]
authored andcommitted
Fix styling
1 parent f59f53a commit 8e67e05

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Views/Columns/ComponentColumn.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ public function getContents(Model $row)
3434
throw new DataTableConfigurationException('You must specify a component view for a component column');
3535
}
3636

37-
$attributes = [];
38-
$value = $this->getValue($row);
37+
$attributes = [];
38+
$value = $this->getValue($row);
3939
$slotContent = $value;
4040

4141
if ($this->hasAttributesCallback()) {
4242
$attributes = call_user_func($this->getAttributesCallback(), $value, $row, $this);
4343

44-
if (!is_array($attributes)) {
44+
if (! is_array($attributes)) {
4545
throw new DataTableConfigurationException('The return type of callback must be an array');
4646
}
4747
}
@@ -53,7 +53,7 @@ public function getContents(Model $row)
5353
}
5454

5555
return view($this->getComponentView(), [
56-
'attributes' => new ComponentAttributeBag($attributes),
56+
'attributes' => new ComponentAttributeBag($attributes),
5757
'slot' => $slotContent,
5858
]);
5959
}

src/Views/Traits/Configuration/ComponentColumnConfiguration.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@ trait ComponentColumnConfiguration
77
public function component(string $component): self
88
{
99
$this->componentView = 'components.' . $component;
10+
1011
return $this;
1112
}
1213

1314
public function attributes(callable $callback): self
1415
{
1516
$this->attributesCallback = $callback;
17+
1618
return $this;
1719
}
1820

1921
public function slot(callable $callback): self
2022
{
2123
$this->slotCallback = $callback;
24+
2225
return $this;
2326
}
2427
}

0 commit comments

Comments
 (0)