Code Duplication    Length = 3-3 lines in 2 locations

docker/mu-plugins/debug.php 2 locations

@@ 71-73 (lines=3) @@
68
	if ( is_null( $stuff ) ) {
69
		// Log the file and line number.
70
		$backtrace = debug_backtrace( false ); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
71
		while ( isset( $backtrace[1]['function'] ) && __FUNCTION__ === $backtrace[1]['function'] ) {
72
			array_shift( $backtrace );
73
		}
74
		$log = sprintf( '%s line %d', $backtrace[0]['file'], $backtrace[0]['line'] );
75
	} elseif ( is_bool( $stuff ) ) {
76
		$log = $stuff ? 'TRUE' : 'FALSE';
@@ 214-216 (lines=3) @@
211
	}
212
213
	$backtrace = debug_backtrace( false );
214
	while ( isset( $backtrace[1]['function'] ) && __FUNCTION__ === $backtrace[1]['function'] ) {
215
		array_shift( $backtrace );
216
	}
217
218
	$file    = $backtrace[0]['file'];
219
	$line    = $backtrace[0]['line'];