summaryrefslogtreecommitdiff
path: root/src/Columns
diff options
context:
space:
mode:
Diffstat (limited to 'src/Columns')
-rw-r--r--src/Columns/ButtonColumn.php2
-rw-r--r--src/Columns/Column.php2
-rw-r--r--src/Columns/ElementColumn.php6
-rw-r--r--src/Columns/LinkColumn.php2
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;