X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fchanges%2FChangesListFilter.php;h=2fc1006ed72f238b8c57409f3329a24249bfcacd;hp=bd895bb07562b29a901c664a4009b78a7f08fbcd;hb=2480aae0c97d822e10b50619e7b48b25c45af073;hpb=f72f4b759591c27c03154d10528a4096b3bb6cea diff --git a/includes/changes/ChangesListFilter.php b/includes/changes/ChangesListFilter.php index bd895bb075..2fc1006ed7 100644 --- a/includes/changes/ChangesListFilter.php +++ b/includes/changes/ChangesListFilter.php @@ -186,12 +186,8 @@ abstract class ChangesListFilter { * @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' ); } @@ -220,9 +216,7 @@ abstract class ChangesListFilter { * @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(), @@ -315,6 +309,7 @@ abstract class ChangesListFilter { * structured UI. * * This can either be the exact filter, or a new filter that replaces it. + * @return bool */ public function isFeatureAvailableOnStructuredUi() { return $this->displaysOnStructuredUi();