Code Duplication    Length = 7-7 lines in 2 locations

packages/debug-helper/modules/inc/mockers/class-nonces-runner.php 1 location

@@ 24-30 (lines=7) @@
21
	 *
22
	 * @return bool
23
	 */
24
	public function run( $number ) {
25
		for ( $i = $number, $per_batch = 500; $i > 0; $i -= $per_batch ) {
26
			$this->run_batch( min( $per_batch, $i ) );
27
		}
28
29
		return true;
30
	}
31
32
	/**
33
	 * Add a batch of mock options.

packages/debug-helper/modules/inc/mockers/class-options-runner.php 1 location

@@ 25-31 (lines=7) @@
22
	 *
23
	 * @return bool
24
	 */
25
	public function run( $number ) {
26
		for ( $i = $number, $per_batch = 500; $i > 0; $i -= $per_batch ) {
27
			$this->run_batch( min( $per_batch, $i ) );
28
		}
29
30
		return true;
31
	}
32
33
	/**
34
	 * Add a batch of mock options.