Skip to content

Commit 5ce6c5d

Browse files
authored
Fix code style and static analyzer issues
1 parent 9ec11a0 commit 5ce6c5d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Services/DataTable.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -799,15 +799,12 @@ protected function buildFastExcelFile(): FastExcel
799799
$dataTable->skipPaging();
800800

801801
if ($dataTable instanceof QueryDataTable) {
802-
// @phpstan-ignore-next-line
803-
$queryGenerator = function ($dataTable): Generator
804-
{
802+
$queryGenerator = function ($dataTable): Generator {
805803
foreach ($dataTable->getFilteredQuery()->cursor() as $row) {
806804
yield $row;
807805
}
808806
};
809807

810-
// @phpstan-ignore-next-line
811808
return new FastExcel($queryGenerator($dataTable));
812809
}
813810

0 commit comments

Comments
 (0)