Code Duplication    Length = 7-14 lines in 2 locations

maintenance/populateCategory.php 1 location

@@ 136-149 (lines=14) @@
133
			usleep( $throttle * 1000 );
134
		}
135
136
		if ( $dbw->insert(
137
			'updatelog',
138
			[ 'ul_key' => 'populate category' ],
139
			__METHOD__,
140
			'IGNORE'
141
		) ) {
142
			$this->output( "Category population complete.\n" );
143
144
			return true;
145
		} else {
146
			$this->output( "Could not insert category population row.\n" );
147
148
			return false;
149
		}
150
	}
151
}
152

maintenance/Maintenance.php 1 location

@@ 1582-1588 (lines=7) @@
1579
			return false;
1580
		}
1581
1582
		if ( $db->insert( 'updatelog', [ 'ul_key' => $key ], __METHOD__, 'IGNORE' ) ) {
1583
			return true;
1584
		} else {
1585
			$this->output( $this->updatelogFailedMessage() . "\n" );
1586
1587
			return false;
1588
		}
1589
	}
1590
1591
	/**