Skip to content

Commit

Permalink
style: fix code formatting in CountIcon.php, DateRange.php, and Range…
Browse files Browse the repository at this point in the history
….php
  • Loading branch information
CodeWithDennis committed Apr 13, 2024
1 parent 85aba9e commit 21f228d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Stubs/Page/Index/Table/Summaries/CountIcon.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Closure;
use CodeWithDennis\FilamentTests\Stubs\Base;
use Filament\Tables\Columns\IconColumn;
use ReflectionClass;

class CountIcon extends Base
{
Expand All @@ -14,7 +13,7 @@ class CountIcon extends Base
public function getShouldGenerate(): bool
{
return $this->getResourceTableColumnsWithSummarizers($this->resource)
->filter(fn($column) => collect($column->getSummarizers())->filter(function ($summarizer) use ($column) {
->filter(fn ($column) => collect($column->getSummarizers())->filter(function ($summarizer) use ($column) {
return $summarizer::class === \Filament\Tables\Columns\Summarizers\Count::class &&
$column::class === IconColumn::class;
})->count())->isNotEmpty();
Expand Down
2 changes: 1 addition & 1 deletion src/Stubs/Page/Index/Table/Summaries/DateRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function getShouldGenerate(): bool
{
return $this->getResourceTableColumnsWithSummarizers($this->resource)
->filter(fn ($column) => collect($column->getSummarizers())->filter(function ($summarizer) use ($column) {
if($summarizer::class === \Filament\Tables\Columns\Summarizers\Range::class) {
if ($summarizer::class === \Filament\Tables\Columns\Summarizers\Range::class) {
$reflectionProperty = (new ReflectionClass(get_class($column)))
->getProperty('isDate');

Expand Down
2 changes: 1 addition & 1 deletion src/Stubs/Page/Index/Table/Summaries/Range.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function getShouldGenerate(): bool
{
return $this->getResourceTableColumnsWithSummarizers($this->resource)
->filter(fn ($column) => collect($column->getSummarizers())->filter(function ($summarizer) use ($column) {
if($summarizer::class === \Filament\Tables\Columns\Summarizers\Range::class) {
if ($summarizer::class === \Filament\Tables\Columns\Summarizers\Range::class) {
$reflectionProperty = (new ReflectionClass(get_class($column)))
->getProperty('isDate');

Expand Down

0 comments on commit 21f228d

Please sign in to comment.