mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Add some newlines to multiline statements in Hooks.php
Change-Id: I6c26dcb2dcdb345f74a14d859faa0b09fed4e0d4
This commit is contained in:
parent
0d071e2a7b
commit
e793977f23
|
@ -479,7 +479,8 @@ class Hooks implements
|
|||
unset( $preferences['enotifusertalkpages']['section'] );
|
||||
}
|
||||
if ( $this->config->get( ConfigNames::WatchlistNotifications ) &&
|
||||
isset( $notifications['watchlist-change'] ) ) {
|
||||
isset( $notifications['watchlist-change'] )
|
||||
) {
|
||||
$preferences['enotifwatchlistpages']['type'] = 'hidden';
|
||||
unset( $preferences['enotifusertalkpages']['section'] );
|
||||
$preferences['enotifminoredits']['type'] = 'hidden';
|
||||
|
@ -565,7 +566,8 @@ class Hooks implements
|
|||
$thresholdCount = $this->getEditCount( $userIdentity );
|
||||
if ( in_array( $thresholdCount, $thresholds ) ) {
|
||||
DeferredUpdates::addCallableUpdate( static function () use (
|
||||
$revisionRecord, $userIdentity, $title, $thresholdCount ) {
|
||||
$revisionRecord, $userIdentity, $title, $thresholdCount
|
||||
) {
|
||||
$notificationMapper = new NotificationMapper();
|
||||
$notifications = $notificationMapper->fetchByUser( $userIdentity, 10, null, [ 'thank-you-edit' ] );
|
||||
/** @var Notification $notification */
|
||||
|
@ -695,8 +697,7 @@ class Hooks implements
|
|||
* @param array $oldUGMs
|
||||
* @param array $newUGMs
|
||||
*/
|
||||
public function onUserGroupsChanged( $userId, $add, $remove, $performer,
|
||||
$reason, $oldUGMs, $newUGMs ) {
|
||||
public function onUserGroupsChanged( $userId, $add, $remove, $performer, $reason, $oldUGMs, $newUGMs ) {
|
||||
if ( !$performer ) {
|
||||
// TODO: Implement support for autopromotion
|
||||
return;
|
||||
|
@ -1145,7 +1146,8 @@ class Hooks implements
|
|||
*/
|
||||
public function onSendWatchlistEmailNotification( $targetUser, $title, $emailNotification ) {
|
||||
if ( $this->config->get( ConfigNames::WatchlistNotifications ) &&
|
||||
isset( $this->config->get( ConfigNames::Notifications )["watchlist-change"] ) ) {
|
||||
isset( $this->config->get( ConfigNames::Notifications )["watchlist-change"] )
|
||||
) {
|
||||
// Let echo handle watchlist notifications entirely
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue