X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fchanges%2FChangesListFilterGroup.php;h=57627525a34eaf3cb19cdf03ba7d1fbd32a851a0;hb=6c9a2923fe1ee3a65cb027be5e781772f2b12fbd;hp=3555158ed4a92df53a2db6b1b3d100df9e7607f5;hpb=e1090009434d4908a37c8bc481fe07e96c5f647f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/ChangesListFilterGroup.php b/includes/changes/ChangesListFilterGroup.php index 3555158ed4..57627525a3 100644 --- a/includes/changes/ChangesListFilterGroup.php +++ b/includes/changes/ChangesListFilterGroup.php @@ -165,7 +165,7 @@ abstract class ChangesListFilterGroup { $this->title = $groupDefinition['title']; } - if ( isset ( $groupDefinition['whatsThisHeader'] ) ) { + if ( isset( $groupDefinition['whatsThisHeader'] ) ) { $this->whatsThisHeader = $groupDefinition['whatsThisHeader']; $this->whatsThisBody = $groupDefinition['whatsThisBody']; $this->whatsThisUrl = $groupDefinition['whatsThisUrl']; @@ -229,12 +229,8 @@ abstract class ChangesListFilterGroup { * @param string $backwardKey i18n key for conflict message in reverse * direction (when in UI context of $other object) */ - public function conflictsWith( $other, $globalKey, $forwardKey, - $backwardKey ) { - - if ( $globalKey === null || $forwardKey === null || - $backwardKey === null ) { - + public function conflictsWith( $other, $globalKey, $forwardKey, $backwardKey ) { + if ( $globalKey === null || $forwardKey === null || $backwardKey === null ) { throw new MWException( 'All messages must be specified' ); } @@ -263,9 +259,7 @@ abstract class ChangesListFilterGroup { * @param string $contextDescription i18n key for conflict message in this * direction (when in UI context of $this object) */ - public function setUnidirectionalConflict( $other, $globalDescription, - $contextDescription ) { - + public function setUnidirectionalConflict( $other, $globalDescription, $contextDescription ) { if ( $other instanceof ChangesListFilterGroup ) { $this->conflictingGroups[] = [ 'group' => $other->getName(), @@ -358,7 +352,7 @@ abstract class ChangesListFilterGroup { 'messageKeys' => [ $this->title ] ]; - if ( isset ( $this->whatsThisHeader ) ) { + if ( isset( $this->whatsThisHeader ) ) { $output['whatsThisHeader'] = $this->whatsThisHeader; $output['whatsThisBody'] = $this->whatsThisBody; $output['whatsThisUrl'] = $this->whatsThisUrl;