Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Commands/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function getModelImport(): string
if (isset($this->modelPath)) {
$filename = rtrim($this->modelPath, '/').'/'.$this->model.'.php';
if (File::exists($filename)) {
//In case the file has more than one class which is highly unlikely but still possible
// In case the file has more than one class which is highly unlikely but still possible
$classes = array_filter($this->getClassesList($filename), function ($class) {
return substr($class, strrpos($class, '\\') + 1) == $this->model;
});
Expand Down
4 changes: 2 additions & 2 deletions src/Traits/HasAllTraits.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ trait HasAllTraits
use HasLocalisations;
use WithLoadingPlaceholder;
use HasTheme;
use WithQuery,
use WithFilters,
WithQuery,
ComponentUtilities,
WithActions,
WithData,
Expand All @@ -29,7 +30,6 @@ trait HasAllTraits
WithCustomisations,
WithDebugging,
WithEvents,
WithFilters,
WithFooter,
WithRefresh,
WithReordering,
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/WithData.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ trait WithData
*/
public function bootedWithData(): void
{
//Sets up the Builder Instance
// Sets up the Builder Instance
$this->setBuilder($this->builder());
}

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/WithReordering.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function enablePaginatedReordering(): void {}

public function enableReordering(): void
{
//$this->enablePaginatedReordering();
// $this->enablePaginatedReordering();

$this->setReorderingSession();
$this->setReorderingBackup();
Expand Down
4 changes: 2 additions & 2 deletions src/Views/Traits/Filters/HasCustomPosition.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ public function hasFilterSlidedownColspan(): bool

public function setFilterSlidedownRow(string $filterSlidedownRow): self
{
//$this->filterSlidedownRow = (is_int($filterSlidedownRow) ? $filterSlidedownRow : intval($filterSlidedownRow));
// $this->filterSlidedownRow = (is_int($filterSlidedownRow) ? $filterSlidedownRow : intval($filterSlidedownRow));
$this->filterSlidedownRow = intval($filterSlidedownRow);

return $this;
}

public function setFilterSlidedownColspan(string $filterSlidedownColspan): self
{
//$this->filterSlidedownColspan = (is_int($filterSlidedownColspan) ? $filterSlidedownColspan : intval($filterSlidedownColspan));
// $this->filterSlidedownColspan = (is_int($filterSlidedownColspan) ? $filterSlidedownColspan : intval($filterSlidedownColspan));
$this->filterSlidedownColspan = intval($filterSlidedownColspan);

return $this;
Expand Down
4 changes: 2 additions & 2 deletions tests/Localisations/BaseLocalisationCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ public static function localisationProvider(): array
'tw',
'uk',
];
//return $availableLocales;
// return $availableLocales;

foreach ($availableLocales as $availableLocale) {
//$array = require($baseDir.$availableLocale.'/core.php');
// $array = require($baseDir.$availableLocale.'/core.php');
$localisations[] = [
'locale' => $availableLocale,
// 'localisationStrings' => $array,
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Traits/Helpers/ColumnHelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function test_can_get_visible_tablet_columns_count(): void
$this->assertSame(7, $this->basicTable->getVisibleTabletColumnsCount());
}

/// *** ** //
// / *** ** //

public function test_can_tell_if_columns_should_collapse_always(): void
{
Expand Down Expand Up @@ -299,7 +299,7 @@ public function test_can_check_if_column_has_secondary_header_filter(): void
$this->assertTrue($column->hasSecondaryHeaderCallback());

$contents = $column->getSecondaryHeaderFilter($this->basicTable->getFilterByKey($column->getSecondaryHeaderCallback()), $this->basicTable->getFilterGenericData());
//$contents = $column->getSecondaryHeaderFilter($this->basicTable->getFilterByKey('breed'));
// $contents = $column->getSecondaryHeaderFilter($this->basicTable->getFilterByKey('breed'));
$this->assertStringContainsString('id="table-filter-breed-8-header"', $contents);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Traits/Helpers/ComponentHelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function test_can_get_hide_configurable_areas_when_reordering_status(): v

// Exists in DataTableComponentTest
// public function test_can_get_dataTable_fingerprint(): void
//{
// {
// $this->assertSame($this->defaultFingerPrintingAlgo($this->basicTable::class), $this->basicTable->getDataTableFingerprint());
// }

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Views/Columns/DateColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Rappasoft\LaravelLivewireTables\Tests\Unit\Views\Columns;

//use Illuminate\Support\Facades\Exceptions;
// use Illuminate\Support\Facades\Exceptions;
use Rappasoft\LaravelLivewireTables\Tests\Models\Pet;
use Rappasoft\LaravelLivewireTables\Tests\TestCase;
use Rappasoft\LaravelLivewireTables\Views\Columns\DateColumn;
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Views/Columns/IconColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Rappasoft\LaravelLivewireTables\Tests\Unit\Views\Columns;

//use Illuminate\Support\Facades\Exceptions;
// use Illuminate\Support\Facades\Exceptions;
use Rappasoft\LaravelLivewireTables\Tests\Models\Pet;
use Rappasoft\LaravelLivewireTables\Tests\TestCase;
use Rappasoft\LaravelLivewireTables\Views\Columns\IconColumn;
Expand Down
Loading