mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Remove unused local variables
Change-Id: If708a112ae6df070da19f52682f0e2b19fe67959
This commit is contained in:
parent
563bf12331
commit
84d5cd33a2
|
@ -974,7 +974,7 @@ class AbuseFilter {
|
|||
|
||||
$local_log_ids = array();
|
||||
global $wgAbuseFilterNotifications, $wgAbuseFilterNotificationsPrivate;
|
||||
foreach ( $log_rows as $index => $data ) {
|
||||
foreach ( $log_rows as $data ) {
|
||||
$data['afl_var_dump'] = $var_dump;
|
||||
$data['afl_id'] = $dbw->nextSequenceValue( 'abuse_filter_log_afl_id_seq' );
|
||||
$dbw->insert( 'abuse_filter_log', $data, __METHOD__ );
|
||||
|
|
|
@ -29,7 +29,7 @@ class AbuseFilterHooks {
|
|||
// poor man's PST, see bug 20310
|
||||
$text = str_replace( "\r\n", "\n", $text );
|
||||
|
||||
$continue = self::filterEdit( $context, null, $text, $status, $summary, $minoredit );
|
||||
self::filterEdit( $context, null, $text, $status, $summary, $minoredit );
|
||||
|
||||
if ( !$status->isOK() ) {
|
||||
$msg = $status->getErrorsArray();
|
||||
|
|
|
@ -707,8 +707,7 @@ class AbuseFilterParser {
|
|||
*/
|
||||
protected function move( ) {
|
||||
wfProfileIn( __METHOD__ );
|
||||
list( $val, $type, $code, $offset ) =
|
||||
self::nextToken( $this->mCode, $this->mPos );
|
||||
list( $val, $type, , $offset ) = self::nextToken( $this->mCode, $this->mPos );
|
||||
|
||||
$token = new AFPToken( $type, $val, $this->mPos );
|
||||
$this->mPos = $offset;
|
||||
|
|
Loading…
Reference in a new issue