diff options
| author | Sam Light <samlight1994@gmail.com> | 2026-02-10 00:17:41 +0000 |
|---|---|---|
| committer | Sam Light <samlight1994@gmail.com> | 2026-02-10 00:17:41 +0000 |
| commit | 47c3c4b4e772c30dac12169300e20346fa47b71f (patch) | |
| tree | 5b469e853b395a8b524f60c5dd7c71dfb8efe64d /src/Columns | |
| parent | ce8068292cc90e32f93aad353891be5e5108d945 (diff) | |
Added declare strict types
Diffstat (limited to 'src/Columns')
| -rw-r--r-- | src/Columns/ButtonColumn.php | 2 | ||||
| -rw-r--r-- | src/Columns/Column.php | 2 | ||||
| -rw-r--r-- | src/Columns/ElementColumn.php | 6 | ||||
| -rw-r--r-- | src/Columns/LinkColumn.php | 2 |
4 files changed, 10 insertions, 2 deletions
diff --git a/src/Columns/ButtonColumn.php b/src/Columns/ButtonColumn.php index 0c76557..ffcfe61 100644 --- a/src/Columns/ButtonColumn.php +++ b/src/Columns/ButtonColumn.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + namespace Lightscale\LaralightTables\Columns; use Illuminate\Database\Eloquent\Model; diff --git a/src/Columns/Column.php b/src/Columns/Column.php index 9c9f9fe..9b70c3b 100644 --- a/src/Columns/Column.php +++ b/src/Columns/Column.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + namespace Lightscale\LaralightTables\Columns; use Closure; diff --git a/src/Columns/ElementColumn.php b/src/Columns/ElementColumn.php index 63ef09c..b3520ae 100644 --- a/src/Columns/ElementColumn.php +++ b/src/Columns/ElementColumn.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + namespace Lightscale\LaralightTables\Columns; use Closure; @@ -37,8 +39,8 @@ abstract class ElementColumn extends Column $attributes = new ComponentAttributeBag($this->getElemAttributes($row)); $attributes = $attributes->toHtml(); - return new HtmlString( + return (new HtmlString( "<{$this->element} {$attributes}>{$content}</{$this->element}>" - ); + ))->toHtml(); } } diff --git a/src/Columns/LinkColumn.php b/src/Columns/LinkColumn.php index ee974df..0660d02 100644 --- a/src/Columns/LinkColumn.php +++ b/src/Columns/LinkColumn.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + namespace Lightscale\LaralightTables\Columns; use Closure; |
