Skip to content

Commit 01e61fb

Browse files
lrljoegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 1b580ac commit 01e61fb

File tree

5 files changed

+16
-21
lines changed

5 files changed

+16
-21
lines changed

src/DataTransferObjects/FilterGenericData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(string $tableName, string $filterLayout, bool $isTai
2525

2626
public function toArray(): array
2727
{
28-
return [
28+
return [
2929
'tableName' => $this->tableName,
3030
'filterLayout' => $this->filterLayout,
3131
'isTailwind' => $this->isTailwind,

src/LaravelLivewireTablesServiceProvider.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ public function boot(): void
2525
);
2626

2727
// Load Default Translations
28-
if(config('livewire-tables.use_json_translations', false))
29-
{
30-
// Load Default Translations
28+
if (config('livewire-tables.use_json_translations', false)) {
29+
// Load Default Translations
3130
$this->loadJsonTranslationsFrom(
3231
__DIR__.'/../resources/lang/json'
3332
);
@@ -37,12 +36,9 @@ public function boot(): void
3736
$this->app->langPath('vendor/livewire-tables')
3837
);
3938

40-
}
41-
else
42-
{
39+
} else {
4340
$this->loadTranslationsFrom(__DIR__.'/../resources/lang/php', 'livewire-tables');
4441
}
45-
4642

4743
$this->loadViewsFrom(__DIR__.'/../resources/views', 'livewire-tables');
4844

src/Traits/Core/HasLocalisations.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66

77
trait HasLocalisations
88
{
9-
public string $localisationPathString = "livewire-tables::core.";
9+
public string $localisationPathString = 'livewire-tables::core.';
1010

1111
#[Computed]
1212
public function getLocalisationPath(): string
1313
{
1414
return $this->generateLocalisationPath();
1515
}
16-
16+
1717
public function generateLocalisationPath(): string
1818
{
1919
$this->localisationPathString = (config('livewire-tables.use_json_translations', false)) ? 'livewire-tables::' : 'livewire-tables::core.';
20+
2021
return $this->localisationPathString;
2122
}
22-
23-
}
23+
}

src/Views/Traits/Core/HasView.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core;
44

5+
use Illuminate\Support\Facades\Log;
56
use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException;
67
use Rappasoft\LaravelLivewireTables\Views\{Column,Filter};
7-
use Illuminate\Support\Facades\Log;
88

99
trait HasView
1010
{
@@ -16,7 +16,7 @@ protected function bootedHasView(): void
1616
}
1717

1818
public function getView(): string
19-
{
19+
{
2020
return $this->view;
2121
}
2222

@@ -25,14 +25,13 @@ public function getColumnView()
2525
return view($this->getView());
2626
}
2727

28-
2928
public function getColumnViewWithDefaults()
3029
{
3130
return $this->getColumnView()
32-
->withIsTailwind($this->isTailwind())
33-
->withIsBootstrap($this->isBootstrap())
34-
->withLocalisationPath($this->getLocalisationPath());
35-
31+
->withIsTailwind($this->isTailwind())
32+
->withIsBootstrap($this->isBootstrap())
33+
->withLocalisationPath($this->getLocalisationPath());
34+
3635
}
3736

3837
/**

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ public function getEnvironmentSetUp($app): void
201201
config()->set('cache.default', 'array');
202202
config()->set('view.cache', false);
203203
config()->set('view.compiled', realpath(storage_path('framework/views')).'/'.rand(0, 100));
204-
// config()->set('livewire-tables.use_json_translations', true);
204+
// config()->set('livewire-tables.use_json_translations', true);
205205

206206
$app['config']->set('app.env', 'testing');
207207
$app['config']->set('database.default', 'sqlite');
208208
$app['config']->set('cache.default', 'array');
209209
$app['config']->set('view.cache', false);
210210
$app['config']->set('view.compiled', realpath(storage_path('framework/views')).'/'.rand(0, 100));
211-
// $app['config']->set('livewire-tables.use_json_translations', true);
211+
// $app['config']->set('livewire-tables.use_json_translations', true);
212212

213213
if (file_exists(__DIR__.'/../database/database.sqlite')) {
214214
$app['config']->set('database.connections.sqlite', [

0 commit comments

Comments
 (0)