From: Reedy Date: Tue, 23 Feb 2016 23:39:40 +0000 (+0000) Subject: Initialise array with contents in one go X-Git-Tag: 1.31.0-rc.0~7835^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=1dcfa9acb3ea8f402e778ec3d263f72e4ce40012;p=lhc%2Fweb%2Fwiklou.git Initialise array with contents in one go Change-Id: Id9ea7a8f17905a0e1e3c0ff12a9ba6c54de54dbe --- diff --git a/includes/ListToggle.php b/includes/ListToggle.php index dfa1763a19..4733dfb714 100644 --- a/includes/ListToggle.php +++ b/includes/ListToggle.php @@ -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', [