X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fwidget%2FComplexNamespaceInputWidget.php;h=5f5d1cd10ff3fdec242c9cf736a9c95609b4a42c;hp=21c57099fbc95d87532c54ab52df46a5a418d30d;hb=e8b10f68049c19a;hpb=b60dded47b7c4437a21baea8ee0780243340abb6 diff --git a/includes/widget/ComplexNamespaceInputWidget.php b/includes/widget/ComplexNamespaceInputWidget.php index 21c57099fb..5f5d1cd10f 100644 --- a/includes/widget/ComplexNamespaceInputWidget.php +++ b/includes/widget/ComplexNamespaceInputWidget.php @@ -1,15 +1,13 @@ array(), - 'invert' => array(), - 'invertLabel' => array(), - 'associated' => array(), - 'associatedLabel' => array(), - ), + 'namespace' => [], + 'invert' => [], + 'invertLabel' => [], + 'associated' => [], + 'associatedLabel' => [], + ], $config ); - // Parent constructor parent::__construct( $config ); // Properties @@ -60,28 +57,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