X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fwidget%2FComplexNamespaceInputWidget.php;h=d3ada03b713cfec4be100ad6220b6bd7d68a8ee8;hb=14fc5db36d0c15a6a62d24ee68c3b1ff31061a82;hp=dc95e75ef6ed22e680a82d4428cd8425f0f7c68c;hpb=9dfb45cc7c6ab53b55a484233795e7451cbee680;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/widget/ComplexNamespaceInputWidget.php b/includes/widget/ComplexNamespaceInputWidget.php index dc95e75ef6..d3ada03b71 100644 --- a/includes/widget/ComplexNamespaceInputWidget.php +++ b/includes/widget/ComplexNamespaceInputWidget.php @@ -37,17 +37,17 @@ class ComplexNamespaceInputWidget extends \OOUI\Widget { * wrapping the "include associated namespace" checkbox * @param string $config['associatedLabel']['label'] Label text for the label */ - public function __construct( array $config = array() ) { + public function __construct( array $config = [] ) { // Configuration initialization $config = array_merge( - array( + [ // Config options for nested widgets - 'namespace' => array(), - 'invert' => array(), - 'invertLabel' => array(), - 'associated' => array(), - 'associatedLabel' => array(), - ), + 'namespace' => [], + 'invert' => [], + 'invertLabel' => [], + 'associated' => [], + 'associatedLabel' => [], + ], $config ); @@ -60,28 +60,28 @@ class ComplexNamespaceInputWidget extends \OOUI\Widget { $this->namespace = new NamespaceInputWidget( $config['namespace'] ); if ( $config['associated'] !== null ) { $this->associated = new \OOUI\CheckboxInputWidget( array_merge( - array( 'value' => '1' ), + [ 'value' => '1' ], $config['associated'] ) ); // TODO Should use a LabelWidget? But they don't work like HTML