Skip to content

Commit 0267585

Browse files
authored
fix: stubs (#195)
* fix: stubs * ci: duplicate analysis on push
1 parent bb4e9b4 commit 0267585

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/static-analysis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Static Analysis"
22

33
on:
44
push:
5+
branches:
6+
- master
7+
- 11.x
58
paths:
69
- .github/workflows/static-analysis.yml
710
- composer.*

src/Generators/stubs/datatables.stub

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class DummyClass extends DataTable
4343
->setTableId('DummyTableId')
4444
->columns($this->getColumns())
4545
->minifiedAjax()
46-
//->dom('DummyDOM')
4746
->orderBy(1)
4847
->selectStyleSingle()
4948
->buttons([

src/Generators/stubs/html.stub

+10-9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace DummyNamespace;
44

5+
use Yajra\DataTables\Html\Builder;
56
use Yajra\DataTables\Html\Button;
67
use Yajra\DataTables\Html\Column;
78
use Yajra\DataTables\Html\DataTableHtml;
@@ -17,15 +18,15 @@ class DummyClass extends DataTableHtml
1718
*/
1819
public function handle(): Builder
1920
{
20-
return $this->setTableId('DummyTableId')
21-
->columns($this->getColumns())
22-
->minifiedAjax()
23-
//->dom('DummyDOM')
24-
->orderBy(1)
25-
->selectStyleSingle()
26-
->buttons([
27-
DummyButtons
28-
]);
21+
return $this->getHtmlBuilder()
22+
->setTableId('DummyTableId')
23+
->columns($this->getColumns())
24+
->minifiedAjax()
25+
->orderBy(1)
26+
->selectStyleSingle()
27+
->buttons([
28+
DummyButtons
29+
]);
2930
}
3031

3132
/**

0 commit comments

Comments
 (0)