Skip to content

Commit 8144aea

Browse files
author
Sébastien HEYD
committed
style(datatable): fix array alignment and add missing newlines
- Align array key-value pairs in Datatable attributes property for better readability - Add missing newlines at end of test files to comply with PSR-12 standards
1 parent 4f8ddd1 commit 8144aea

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/Datatables/Datatable.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ abstract class Datatable
2828
protected $permissions = ['backend_access'];
2929
protected $orderAttr = [];
3030
protected $attributes = [
31-
'filters' => true,
32-
'info' => true,
33-
'lengthChange' => true,
34-
'order' => [],
35-
'ordering' => true,
36-
'pageLength' => 10,
37-
'paging' => true,
38-
'pagingType' => 'simple_numbers',
39-
'searching' => true,
40-
'stateSave' => false,
41-
'condensed' => false,
42-
'lengthMenu' => [[10, 25, 50, 100, -1], [10, 25, 50, 100, '']],
43-
'buttons' => ['filters'],
31+
'filters' => true,
32+
'info' => true,
33+
'lengthChange' => true,
34+
'order' => [],
35+
'ordering' => true,
36+
'pageLength' => 10,
37+
'paging' => true,
38+
'pagingType' => 'simple_numbers',
39+
'searching' => true,
40+
'stateSave' => false,
41+
'condensed' => false,
42+
'lengthMenu' => [[10, 25, 50, 100, -1], [10, 25, 50, 100, '']],
43+
'buttons' => ['filters'],
4444
'footerCallback' => null,
4545
];
4646

tests/Datatables/SumTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ public function testFooterCallbackHandlesFormattedData()
4848
$this->assertStringContainsString('tempDiv.textContent', $footerCallback);
4949
$this->assertStringContainsString("val === '.' ? '0' : val", $footerCallback);
5050
}
51-
}
51+
}

tests/Datatables/TestSumDatatable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ public function columns(): array
3636
->sum(),
3737
];
3838
}
39-
}
39+
}

0 commit comments

Comments
 (0)