Code Duplication    Length = 5-5 lines in 2 locations

includes/api/ApiQueryRecentChanges.php 1 location

@@ 481-485 (lines=5) @@
478
		}
479
480
		/* Add flags, such as new, minor, bot. */
481
		if ( $this->fld_flags ) {
482
			$vals['bot'] = (bool)$row->rc_bot;
483
			$vals['new'] = $row->rc_type == RC_NEW;
484
			$vals['minor'] = (bool)$row->rc_minor;
485
		}
486
487
		/* Add sizes of each revision. (Only available on 1.10+) */
488
		if ( $this->fld_sizes ) {

includes/api/ApiQueryWatchlist.php 1 location

@@ 354-358 (lines=5) @@
351
		}
352
353
		/* Add flags, such as new, minor, bot. */
354
		if ( $this->fld_flags ) {
355
			$vals['bot'] = (bool)$row->rc_bot;
356
			$vals['new'] = $row->rc_type == RC_NEW;
357
			$vals['minor'] = (bool)$row->rc_minor;
358
		}
359
360
		/* Add sizes of each revision. (Only available on 1.10+) */
361
		if ( $this->fld_sizes ) {