Skip to content

Commit d7bb75f

Browse files
lrljoegithub-actions[bot]
authored andcommitted
Fix styling
1 parent cd136aa commit d7bb75f

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed
Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
1-
<?php
2-
3-
namespace Rappasoft\LaravelLivewireTables\Views\Columns;
4-
5-
use Illuminate\Database\Eloquent\Model;
6-
use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException;
7-
use Rappasoft\LaravelLivewireTables\Views\Column;
8-
9-
class IncrementColumn extends Column
10-
{
11-
12-
protected string $view = 'livewire-tables::includes.columns.increment';
13-
14-
public function __construct(string $title, ?string $from = null)
15-
{
16-
parent::__construct($title, $from);
17-
$this->label(fn () => null);
18-
19-
}
20-
21-
public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
22-
{
23-
return view($this->getView())
24-
->withColumn($this)
25-
->withIsTailwind($this->isTailwind())
26-
->withIsBootstrap($this->isBootstrap())
27-
->withAttributes($this->hasAttributesCallback() ? app()->call($this->getAttributesCallback(), ['row' => $row]) : []);
28-
}
29-
}
1+
<?php
2+
3+
namespace Rappasoft\LaravelLivewireTables\Views\Columns;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException;
7+
use Rappasoft\LaravelLivewireTables\Views\Column;
8+
9+
class IncrementColumn extends Column
10+
{
11+
protected string $view = 'livewire-tables::includes.columns.increment';
12+
13+
public function __construct(string $title, ?string $from = null)
14+
{
15+
parent::__construct($title, $from);
16+
$this->label(fn () => null);
17+
18+
}
19+
20+
public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
21+
{
22+
return view($this->getView())
23+
->withColumn($this)
24+
->withIsTailwind($this->isTailwind())
25+
->withIsBootstrap($this->isBootstrap())
26+
->withAttributes($this->hasAttributesCallback() ? app()->call($this->getAttributesCallback(), ['row' => $row]) : []);
27+
}
28+
}

0 commit comments

Comments
 (0)