Code Duplication    Length = 3-3 lines in 2 locations

src/wp-admin/plugins.php 1 location

@@ 158-160 (lines=3) @@
155
			if ( is_wp_error($valid) )
156
				wp_die($valid);
157
158
			if ( ! WP_DEBUG ) {
159
				error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
160
			}
161
162
			@ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
163
			// Go back to "sandbox" scope so we get the same errors as before

src/wp-includes/load.php 1 location

@@ 332-334 (lines=3) @@
329
			ini_set( 'log_errors', 1 );
330
			ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' );
331
		}
332
	} else {
333
		error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
334
	}
335
336
	if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || wp_doing_ajax() ) {
337
		@ini_set( 'display_errors', 0 );