Initialise array with contents in one go
Change-Id: Id9ea7a8f17905a0e1e3c0ff12a9ba6c54de54dbe
This commit is contained in:
parent
7a31c491d4
commit
1dcfa9acb3
1 changed files with 5 additions and 4 deletions
|
|
@ -51,10 +51,11 @@ class ListToggle {
|
|||
*/
|
||||
public function getHTML() {
|
||||
// Select: All, None, Invert
|
||||
$links = [];
|
||||
$links[] = $this->checkboxLink( 'all' );
|
||||
$links[] = $this->checkboxLink( 'none' );
|
||||
$links[] = $this->checkboxLink( 'invert' );
|
||||
$links = [
|
||||
$this->checkboxLink( 'all' ),
|
||||
$this->checkboxLink( 'none' ),
|
||||
$this->checkboxLink( 'invert' ),
|
||||
];
|
||||
|
||||
return Html::rawElement( 'div',
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in a new issue