Initialise array with contents in one go

Change-Id: Id9ea7a8f17905a0e1e3c0ff12a9ba6c54de54dbe
This commit is contained in:
Reedy 2016-02-23 23:39:40 +00:00
parent 7a31c491d4
commit 1dcfa9acb3

View file

@ -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',
[