From 79b2611bbc8fe17a18787ebc1e0e7a983cee62fe Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 23 Feb 2019 21:26:35 +0100 Subject: [PATCH] Use local vars in LabelIconWidget Change-Id: I037b02c7336d68f520e028a16df0edd0237458d8 --- includes/ooui/LabelIconWidget.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/ooui/LabelIconWidget.php b/includes/ooui/LabelIconWidget.php index 6cceec2d3..d3a55d616 100644 --- a/includes/ooui/LabelIconWidget.php +++ b/includes/ooui/LabelIconWidget.php @@ -25,20 +25,20 @@ class LabelIconWidget extends Widget { public function __construct( $config ) { parent::__construct( $config ); - $this->tableRow = new Tag( 'div' ); - $this->tableRow->setAttributes( [ + $tableRow = new Tag( 'div' ); + $tableRow->setAttributes( [ 'class' => 'oo-ui-labelIconWidget-row', ] ); - $this->icon = new Tag( 'div' ); - $this->label = new Tag( 'div' ); + $icon = new Tag( 'div' ); + $label = new Tag( 'div' ); - $this->initializeIconElement( array_merge( $config, [ 'iconElement' => $this->icon ] ) ); - $this->initializeLabelElement( array_merge( $config, [ 'labelElement' => $this->label ] ) ); + $this->initializeIconElement( array_merge( $config, [ 'iconElement' => $icon ] ) ); + $this->initializeLabelElement( array_merge( $config, [ 'labelElement' => $label ] ) ); $this->initializeTitledElement( $config ); $this->addClasses( [ 'oo-ui-labelIconWidget' ] ); - $this->tableRow->appendContent( $this->icon, $this->label ); - $this->appendContent( $this->tableRow ); + $tableRow->appendContent( $icon, $label ); + $this->appendContent( $tableRow ); } }