From 1dcfa9acb3ea8f402e778ec3d263f72e4ce40012 Mon Sep 17 00:00:00 2001 From: Reedy Date: Tue, 23 Feb 2016 23:39:40 +0000 Subject: [PATCH] Initialise array with contents in one go Change-Id: Id9ea7a8f17905a0e1e3c0ff12a9ba6c54de54dbe --- includes/ListToggle.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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', [ -- 2.20.1