Skip to content

Commit 02e2bb4

Browse files
lrljoegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 9160342 commit 02e2bb4

17 files changed

+33
-33
lines changed

src/Commands/MakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function getModelImport(): string
127127
if (isset($this->modelPath)) {
128128
$filename = rtrim($this->modelPath, '/').'/'.$this->model.'.php';
129129
if (File::exists($filename)) {
130-
//In case the file has more than one class which is highly unlikely but still possible
130+
// In case the file has more than one class which is highly unlikely but still possible
131131
$classes = array_filter($this->getClassesList($filename), function ($class) {
132132
return substr($class, strrpos($class, '\\') + 1) == $this->model;
133133
});

src/Traits/WithData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trait WithData
2121
*/
2222
public function bootedWithData(): void
2323
{
24-
//Sets up the Builder Instance
24+
// Sets up the Builder Instance
2525
$this->setBuilder($this->builder());
2626
}
2727

src/Traits/WithReordering.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function enablePaginatedReordering(): void {}
5252

5353
public function enableReordering(): void
5454
{
55-
//$this->enablePaginatedReordering();
55+
// $this->enablePaginatedReordering();
5656

5757
$this->setReorderingSession();
5858
$this->setReorderingBackup();

src/Views/Filters/NumberFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Rappasoft\LaravelLivewireTables\Views\Filter;
66
use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasWireables;
7-
use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{IsStringFilter};
7+
use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\IsStringFilter;
88

99
class NumberFilter extends Filter
1010
{

src/Views/Filters/NumberRangeFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Rappasoft\LaravelLivewireTables\Views\Filter;
66
use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasWireables;
7-
use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasOptions};
7+
use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\HasOptions;
88

99
class NumberRangeFilter extends Filter
1010
{

src/Views/Traits/Filters/HasCustomPosition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ public function hasFilterSlidedownColspan(): bool
6969

7070
public function setFilterSlidedownRow(string $filterSlidedownRow): self
7171
{
72-
//$this->filterSlidedownRow = (is_int($filterSlidedownRow) ? $filterSlidedownRow : intval($filterSlidedownRow));
72+
// $this->filterSlidedownRow = (is_int($filterSlidedownRow) ? $filterSlidedownRow : intval($filterSlidedownRow));
7373
$this->filterSlidedownRow = intval($filterSlidedownRow);
7474

7575
return $this;
7676
}
7777

7878
public function setFilterSlidedownColspan(string $filterSlidedownColspan): self
7979
{
80-
//$this->filterSlidedownColspan = (is_int($filterSlidedownColspan) ? $filterSlidedownColspan : intval($filterSlidedownColspan));
80+
// $this->filterSlidedownColspan = (is_int($filterSlidedownColspan) ? $filterSlidedownColspan : intval($filterSlidedownColspan));
8181
$this->filterSlidedownColspan = intval($filterSlidedownColspan);
8282

8383
return $this;

src/Views/Traits/Filters/HasVisibility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

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

5-
use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasVisibility as HasCoreVisibility;
65
use Rappasoft\LaravelLivewireTables\Views\{Column,Filter};
6+
use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasVisibility as HasCoreVisibility;
77

88
trait HasVisibility
99
{

tests/Features/AutoInjectRappasoftAssetsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
final class AutoInjectRappasoftAssetsTest extends TestCase
99
{
10-
public function test_shouldInjectRappasoftAndThirdParty()
10+
public function test_should_inject_rappasoft_and_third_party()
1111
{
1212
config()->set('livewire-tables.inject_core_assets_enabled', true);
1313
config()->set('livewire-tables.inject_third_party_assets_enabled', true);
@@ -20,7 +20,7 @@ public function test_shouldInjectRappasoftAndThirdParty()
2020
$this->assertStringContainsStringIgnoringCase('<script src="/rappasoft/laravel-livewire-tables/thirdparty.min.js" ></script>', $injectionReturn);
2121
}
2222

23-
public function test_shouldNotInjectRappasoftOrThirdParty()
23+
public function test_should_not_inject_rappasoft_or_third_party()
2424
{
2525
config()->set('livewire-tables.inject_core_assets_enabled', false);
2626
config()->set('livewire-tables.inject_third_party_assets_enabled', false);
@@ -30,7 +30,7 @@ public function test_shouldNotInjectRappasoftOrThirdParty()
3030
$this->assertEquals('<html><head> </head><body></body></html>', AutoInjectRappasoftAssets::injectAssets('<html><head></head><body></body></html>'));
3131
}
3232

33-
public function test_shouldOnlyInjectThirdParty()
33+
public function test_should_only_inject_third_party()
3434
{
3535
config()->set('livewire-tables.inject_core_assets_enabled', false);
3636
config()->set('livewire-tables.inject_third_party_assets_enabled', true);
@@ -41,7 +41,7 @@ public function test_shouldOnlyInjectThirdParty()
4141
$this->assertStringContainsStringIgnoringCase('<script src="/rappasoft/laravel-livewire-tables/thirdparty.min.js" ></script>', $injectionReturn);
4242
}
4343

44-
public function test_shouldOnlyInjectRappasoft()
44+
public function test_should_only_inject_rappasoft()
4545
{
4646
config()->set('livewire-tables.inject_core_assets_enabled', true);
4747
config()->set('livewire-tables.inject_third_party_assets_enabled', false);

tests/Mechanisms/RappasoftFrontendAssetsTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class RappasoftFrontendAssetsTest extends TestCase
1010
{
11-
public function test_JsResponseSetupCacheEnabled(): array
11+
public function test_js_response_setup_cache_enabled(): array
1212
{
1313
config()->set('livewire-tables.cache_assets', true);
1414
$lastModified = \Carbon\Carbon::now()->timestamp;
@@ -22,7 +22,7 @@ public function test_JsResponseSetupCacheEnabled(): array
2222
return ['lastModified' => $lastModified, 'responseHeaders' => $response->headers->all()];
2323
}
2424

25-
public function test_JsResponseSetupCacheDisabled(): array
25+
public function test_js_response_setup_cache_disabled(): array
2626
{
2727
config()->set('livewire-tables.cache_assets', false);
2828
$date = date_create();
@@ -36,7 +36,7 @@ public function test_JsResponseSetupCacheDisabled(): array
3636
return ['lastModified' => date_timestamp_get($date), 'responseHeaders' => $response->headers->all()];
3737
}
3838

39-
public function test_CssResponseSetupCacheEnabled(): array
39+
public function test_css_response_setup_cache_enabled(): array
4040
{
4141
config()->set('livewire-tables.cache_assets', true);
4242
$date = date_create();
@@ -50,7 +50,7 @@ public function test_CssResponseSetupCacheEnabled(): array
5050
return ['lastModified' => date_timestamp_get($date), 'responseHeaders' => $response->headers->all()];
5151
}
5252

53-
public function test_CssResponseSetupCacheDisabled(): array
53+
public function test_css_response_setup_cache_disabled(): array
5454
{
5555
config()->set('livewire-tables.cache_assets', false);
5656

@@ -66,7 +66,7 @@ public function test_CssResponseSetupCacheDisabled(): array
6666
return ['lastModified' => date_timestamp_get($date), 'responseHeaders' => $response->headers->all()];
6767
}
6868

69-
public function test_ThirdPartyCssResponseSetupCacheEnabled(): array
69+
public function test_third_party_css_response_setup_cache_enabled(): array
7070
{
7171
config()->set('livewire-tables.cache_assets', true);
7272

@@ -82,7 +82,7 @@ public function test_ThirdPartyCssResponseSetupCacheEnabled(): array
8282
return ['lastModified' => date_timestamp_get($date), 'responseHeaders' => $response->headers->all()];
8383
}
8484

85-
public function test_ThirdPartyCssResponseSetupCacheDisabled(): array
85+
public function test_third_party_css_response_setup_cache_disabled(): array
8686
{
8787
config()->set('livewire-tables.cache_assets', false);
8888

@@ -98,7 +98,7 @@ public function test_ThirdPartyCssResponseSetupCacheDisabled(): array
9898
return ['lastModified' => date_timestamp_get($date), 'responseHeaders' => $response->headers->all()];
9999
}
100100

101-
public function test_ThirdPartyJsResponseSetupCacheEnabled(): array
101+
public function test_third_party_js_response_setup_cache_enabled(): array
102102
{
103103
config()->set('livewire-tables.cache_assets', true);
104104
$lastModified = \Carbon\Carbon::now()->timestamp;
@@ -112,7 +112,7 @@ public function test_ThirdPartyJsResponseSetupCacheEnabled(): array
112112
return ['lastModified' => $lastModified, 'responseHeaders' => $response->headers->all()];
113113
}
114114

115-
public function test_ThirdPartyJsResponseSetupCacheDisabled(): array
115+
public function test_third_party_js_response_setup_cache_disabled(): array
116116
{
117117
config()->set('livewire-tables.cache_assets', false);
118118
$date = date_create();
@@ -148,7 +148,7 @@ public function test_scripts()
148148
$this->assertTrue($assets->hasRenderedRappsoftTableScripts);
149149
}
150150

151-
public function test_thirdPartystyles()
151+
public function test_third_partystyles()
152152
{
153153
$assets = app(RappasoftFrontendAssets::class);
154154

@@ -159,7 +159,7 @@ public function test_thirdPartystyles()
159159
$this->assertTrue($assets->hasRenderedRappsoftTableThirdPartyStyles);
160160
}
161161

162-
public function test_thirdPartyscripts()
162+
public function test_third_partyscripts()
163163
{
164164
$assets = app(RappasoftFrontendAssets::class);
165165

tests/Traits/Configuration/ColumnSelectConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function test_variables_are_correct_types(): void
1212
$this->assertIsArray($this->basicTable->selectedColumns);
1313
}
1414

15-
public function test_check_protected_fields_columnSelectStatus(): void
15+
public function test_check_protected_fields_column_select_status(): void
1616
{
1717
$this->expectException(\Livewire\Exceptions\PropertyNotFoundException::class);
1818
$this->assertIsBool($this->basicTable->columnSelectStatus);

0 commit comments

Comments
 (0)