Index: trunk/extensions/Notificator/Notificator.body.php |
— | — | @@ -11,12 +11,12 @@ |
12 | 12 | |
13 | 13 | global $wgScript, $wgTitle; |
14 | 14 | |
15 | | - if ( ! $receiverLabel ) { |
| 15 | + if ( !$receiverLabel ) { |
16 | 16 | $receiverLabel = $receiver; |
17 | 17 | } |
18 | 18 | |
19 | 19 | // Check that the database table is in place |
20 | | - if ( ! Notificator::checkDatabaseTableExists() ) { |
| 20 | + if ( !Notificator::checkDatabaseTableExists() ) { |
21 | 21 | $output = '<span class="error">' . |
22 | 22 | htmlspecialchars( wfMsg( 'notificator-db-table-does-not-exist' ) ) . '</span>'; |
23 | 23 | return array( $output, 'noparse' => true, 'isHTML' => true ); |
— | — | @@ -107,13 +107,13 @@ |
108 | 108 | // User::isValidEmailAddr() has been moved to Sanitizer::validateEmail as of |
109 | 109 | // MediaWiki version 1.18 (I think). |
110 | 110 | foreach ( $receiverArray as $singleEmailAddress ) { |
111 | | - if ( ! Sanitizer::validateEmail( $singleEmailAddress ) ) { |
| 111 | + if ( !Sanitizer::validateEmail( $singleEmailAddress ) ) { |
112 | 112 | $receiverIsValid = false; |
113 | 113 | } |
114 | 114 | } |
115 | 115 | } else { |
116 | 116 | foreach ( $receiverArray as $singleEmailAddress ) { |
117 | | - if ( ! User::isValidEmailAddr( $singleEmailAddress ) ) { |
| 117 | + if ( !User::isValidEmailAddr( $singleEmailAddress ) ) { |
118 | 118 | $receiverIsValid = false; |
119 | 119 | } |
120 | 120 | } |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | // (= notified already) |
129 | 129 | // Returns revId from the database - if there is no record, return 0 |
130 | 130 | |
131 | | - if ( ! $pageId || ! $revId || ! $receiver ) { |
| 131 | + if ( !$pageId || !$revId || !$receiver ) { |
132 | 132 | return -1; |
133 | 133 | } |
134 | 134 | |
— | — | @@ -146,7 +146,7 @@ |
147 | 147 | |
148 | 148 | $oldRevId = $row['rev_id']; |
149 | 149 | |
150 | | - if ( ! $oldRevId ) { |
| 150 | + if ( !$oldRevId ) { |
151 | 151 | $oldRevId = 0; |
152 | 152 | } elseif ( $oldRevId == $revId ) { |
153 | 153 | $oldRevId = -2; |
Index: trunk/extensions/Notificator/SpecialNotificator.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | $revId = $wgRequest->getText( 'revId' ); |
23 | 23 | $receiver = $wgRequest->getText( 'receiver' ); |
24 | 24 | |
25 | | - if ( ! $pageId || ! $revId || ! $receiver ) { |
| 25 | + if ( !$pageId || !$revId || !$receiver ) { |
26 | 26 | $output = '<span class="error">' . htmlspecialchars( |
27 | 27 | wfMsg( 'notificator-special-page-accessed-directly' ) ) . '</span>'; |
28 | 28 | } else { |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | $pageTitle = $titleObj->getFullText(); |
31 | 31 | $linkToPage = $titleObj->getFullURL(); |
32 | 32 | |
33 | | - if ( ! Notificator::receiverIsValid( $receiver ) ) { |
| 33 | + if ( !Notificator::receiverIsValid( $receiver ) ) { |
34 | 34 | $output = '<span class="error">' . htmlspecialchars( |
35 | 35 | wfMsg( 'notificator-e-mail-address-invalid' ) . ' ' . |
36 | 36 | wfMsg( 'notificator-notification-not-sent' ) ) . '</span>'; |