Code Duplication    Length = 4-4 lines in 3 locations

maintenance/syncFileBackend.php 1 location

@@ 267-270 (lines=4) @@
264
265
		$t_start = microtime( true );
266
		$status = $dst->doQuickOperations( $ops, [ 'bypassReadOnly' => 1 ] );
267
		if ( !$status->isOK() ) {
268
			sleep( 10 ); // wait and retry copy again
269
			$status = $dst->doQuickOperations( $ops, [ 'bypassReadOnly' => 1 ] );
270
		}
271
		$elapsed_ms = floor( ( microtime( true ) - $t_start ) * 1000 );
272
		if ( $status->isOK() && $this->getOption( 'verbose' ) ) {
273
			$this->output( "Synchronized these file(s) [{$elapsed_ms}ms]:\n" .

maintenance/copyFileBackend.php 2 locations

@@ 276-279 (lines=4) @@
273
		// Copy in the batch of source files...
274
		$t_start = microtime( true );
275
		$status = $dst->doQuickOperations( $ops, [ 'bypassReadOnly' => 1 ] );
276
		if ( !$status->isOK() ) {
277
			sleep( 10 ); // wait and retry copy again
278
			$status = $dst->doQuickOperations( $ops, [ 'bypassReadOnly' => 1 ] );
279
		}
280
		$elapsed_ms = floor( ( microtime( true ) - $t_start ) * 1000 );
281
		if ( !$status->isOK() ) {
282
			$this->error( print_r( $status->getErrorsArray(), true ) );
@@ 313-316 (lines=4) @@
310
		// Delete the batch of source files...
311
		$t_start = microtime( true );
312
		$status = $dst->doQuickOperations( $ops, [ 'bypassReadOnly' => 1 ] );
313
		if ( !$status->isOK() ) {
314
			sleep( 10 ); // wait and retry copy again
315
			$status = $dst->doQuickOperations( $ops, [ 'bypassReadOnly' => 1 ] );
316
		}
317
		$elapsed_ms = floor( ( microtime( true ) - $t_start ) * 1000 );
318
		if ( !$status->isOK() ) {
319
			$this->error( print_r( $status->getErrorsArray(), true ) );