Skip to content

Commit 2df6558

Browse files
committed
Minor Tweaks
1 parent efae78a commit 2df6558

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/Traits/ComponentUtilities.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
use Livewire\Attributes\Locked;
88
use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException;
99
use Rappasoft\LaravelLivewireTables\Traits\Configuration\ComponentConfiguration;
10-
use Rappasoft\LaravelLivewireTables\Traits\Core\QueryStrings\HasQueryString;
1110
use Rappasoft\LaravelLivewireTables\Traits\Helpers\ComponentHelpers;
1211

1312
trait ComponentUtilities
1413
{
1514
use ComponentConfiguration,
1615
ComponentHelpers;
17-
use HasQueryString;
1816

1917
public array $table = [];
2018

@@ -86,7 +84,8 @@ public function bootedComponentUtilities(): void
8684

8785
protected function runCoreConfiguration(): void
8886
{
89-
if (! $this->hasRunConfigure) {
87+
if (!$this->hasRunConfigure)
88+
{
9089
// Fire Lifecycle Hooks for configuring
9190
$this->callHook('configuring');
9291
$this->callTraitHook('configuring');
@@ -97,7 +96,7 @@ protected function runCoreConfiguration(): void
9796
// Fire Lifecycle Hooks for configured
9897
$this->callHook('configured');
9998
$this->callTraitHook('configured');
100-
99+
101100
$this->hasRunConfigure = true;
102101

103102
}

src/Traits/HasAllTraits.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ trait HasAllTraits
1212
use WithLoadingPlaceholder;
1313
use HasTheme;
1414
use ComponentUtilities,
15-
WithQueryString,
1615
WithActions,
1716
WithData,
17+
WithQueryString,
1818
WithColumns,
1919
WithSorting,
2020
WithSearch,

src/Traits/WithQueryString.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
use Livewire\Attributes\Locked;
66
use Rappasoft\LaravelLivewireTables\Traits\Configuration\QueryStringConfiguration;
77
use Rappasoft\LaravelLivewireTables\Traits\Helpers\QueryStringHelpers;
8+
use Rappasoft\LaravelLivewireTables\Traits\Core\QueryStrings\HasQueryString;
89

910
trait WithQueryString
1011
{
1112
use QueryStringConfiguration,
1213
QueryStringHelpers;
13-
14+
use HasQueryString;
15+
1416
#[Locked]
1517
public ?bool $queryStringStatus;
1618

0 commit comments

Comments
 (0)