X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fwidget%2FComplexNamespaceInputWidget.php;h=d3ada03b713cfec4be100ad6220b6bd7d68a8ee8;hb=c66360d167aeacec8ec296ae8ff29fd5d3f1a557;hp=21c57099fbc95d87532c54ab52df46a5a418d30d;hpb=607a84af5f027c1a942cb5b2cd46a4958c5af7b0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/widget/ComplexNamespaceInputWidget.php b/includes/widget/ComplexNamespaceInputWidget.php index 21c57099fb..d3ada03b71 100644 --- a/includes/widget/ComplexNamespaceInputWidget.php +++ b/includes/widget/ComplexNamespaceInputWidget.php @@ -22,32 +22,32 @@ class ComplexNamespaceInputWidget extends \OOUI\Widget { /** * @param array $config Configuration options - * @param array $config['namespace'] Configuration for the NamespaceInputWidget dropdown with list - * of namespaces - * @param string $config['namespace']['includeAllValue'] If specified, add a "all namespaces" - * option to the dropdown, and use this as the input value for it - * @param array|null $config['invert'] Configuration for the "invert selection" CheckboxInputWidget. If - * null, the checkbox will not be generated. + * @param array $config['namespace'] Configuration for the NamespaceInputWidget + * dropdown with list of namespaces + * @param string $config['namespace']['includeAllValue'] If specified, + * add an "all namespaces" option to the dropdown, and use this as the input value for it + * @param array|null $config['invert'] Configuration for the "invert selection" + * CheckboxInputWidget. If null, the checkbox will not be generated. * @param array|null $config['associated'] Configuration for the "include associated namespace" - * CheckboxInputWidget. If null, the checkbox will not be generated. - * @param array $config['invertLabel'] Configuration for the FieldLayout with label wrapping the - * "invert selection" checkbox + * CheckboxInputWidget. If null, the checkbox will not be generated. + * @param array $config['invertLabel'] Configuration for the FieldLayout with label + * wrapping the "invert selection" checkbox * @param string $config['invertLabel']['label'] Label text for the label - * @param array $config['associatedLabel'] Configuration for the FieldLayout with label wrapping - * the "include associated namespace" checkbox + * @param array $config['associatedLabel'] Configuration for the FieldLayout with label + * 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