summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2026-02-10 00:17:41 +0000
committerSam Light <samlight1994@gmail.com>2026-02-10 00:17:41 +0000
commit47c3c4b4e772c30dac12169300e20346fa47b71f (patch)
tree5b469e853b395a8b524f60c5dd7c71dfb8efe64d /src
parentce8068292cc90e32f93aad353891be5e5108d945 (diff)
Added declare strict types
Diffstat (limited to 'src')
-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
-rw-r--r--src/Concerns/Makable.php2
-rw-r--r--src/Concerns/WithAttributes.php2
-rw-r--r--src/Service.php2
-rw-r--r--src/ServiceProvider.php2
-rw-r--r--src/TableComponent.php2
-rw-r--r--src/Toolbar.php2
-rw-r--r--src/Toolbar/ColumnSelect.php2
-rw-r--r--src/Toolbar/Filter.php2
-rw-r--r--src/Toolbar/Item.php2
-rw-r--r--src/Toolbar/PageSize.php2
-rw-r--r--src/Toolbar/Search.php2
-rw-r--r--src/Toolbar/SelectFilter.php2
16 files changed, 34 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;
diff --git a/src/Concerns/Makable.php b/src/Concerns/Makable.php
index b215b2d..e7c4433 100644
--- a/src/Concerns/Makable.php
+++ b/src/Concerns/Makable.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables\Concerns;
trait Makable
diff --git a/src/Concerns/WithAttributes.php b/src/Concerns/WithAttributes.php
index d97f84a..dceec69 100644
--- a/src/Concerns/WithAttributes.php
+++ b/src/Concerns/WithAttributes.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables\Concerns;
use Illuminate\View\ComponentAttributeBag;
diff --git a/src/Service.php b/src/Service.php
index 01d6180..838980a 100644
--- a/src/Service.php
+++ b/src/Service.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables;
class Service
diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php
index 1128218..ec482f1 100644
--- a/src/ServiceProvider.php
+++ b/src/ServiceProvider.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables;
use Illuminate\Foundation\Console\AboutCommand;
diff --git a/src/TableComponent.php b/src/TableComponent.php
index 34d56c8..516c8da 100644
--- a/src/TableComponent.php
+++ b/src/TableComponent.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables;
use Exception;
diff --git a/src/Toolbar.php b/src/Toolbar.php
index 0a8aaad..602c329 100644
--- a/src/Toolbar.php
+++ b/src/Toolbar.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables;
use Illuminate\Database\Eloquent\Model;
diff --git a/src/Toolbar/ColumnSelect.php b/src/Toolbar/ColumnSelect.php
index 8e173cd..8a9335b 100644
--- a/src/Toolbar/ColumnSelect.php
+++ b/src/Toolbar/ColumnSelect.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables\Toolbar;
use Illuminate\View\View;
diff --git a/src/Toolbar/Filter.php b/src/Toolbar/Filter.php
index d444dcf..fb614ac 100644
--- a/src/Toolbar/Filter.php
+++ b/src/Toolbar/Filter.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables\Toolbar;
use Closure;
diff --git a/src/Toolbar/Item.php b/src/Toolbar/Item.php
index 1b4d1fb..25b2d0d 100644
--- a/src/Toolbar/Item.php
+++ b/src/Toolbar/Item.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables\Toolbar;
use Illuminate\Database\Eloquent\Model;
diff --git a/src/Toolbar/PageSize.php b/src/Toolbar/PageSize.php
index 71049ba..7ea02b7 100644
--- a/src/Toolbar/PageSize.php
+++ b/src/Toolbar/PageSize.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables\Toolbar;
use Illuminate\View\View;
diff --git a/src/Toolbar/Search.php b/src/Toolbar/Search.php
index 0b0dc37..c23f420 100644
--- a/src/Toolbar/Search.php
+++ b/src/Toolbar/Search.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables\Toolbar;
use Illuminate\View\View;
diff --git a/src/Toolbar/SelectFilter.php b/src/Toolbar/SelectFilter.php
index d9c6118..fa5b893 100644
--- a/src/Toolbar/SelectFilter.php
+++ b/src/Toolbar/SelectFilter.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables\Toolbar;
use Illuminate\View\View;