Code Duplication    Length = 4-4 lines in 2 locations

includes/admin/views/html-admin-page-status-report.php 1 location

@@ 71-74 (lines=4) @@
68
			<td><?php
69
				$memory = wc_let_to_num( WP_MEMORY_LIMIT );
70
71
				if ( function_exists( 'memory_get_usage' ) ) {
72
					$system_memory = wc_let_to_num( @ini_get( 'memory_limit' ) );
73
					$memory        = max( $memory, $system_memory );
74
				}
75
76
				if ( $memory < 67108864 ) {
77
					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend setting memory to at least 64MB. See: %s', 'woocommerce' ), size_format( $memory ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">' . __( 'Increasing memory allocated to PHP', 'woocommerce' ) . '</a>' ) . '</mark>';

includes/class-wc-tracker.php 1 location

@@ 165-168 (lines=4) @@
162
163
		$memory = wc_let_to_num( WP_MEMORY_LIMIT );
164
165
		if ( function_exists( 'memory_get_usage' ) ) {
166
			$system_memory = wc_let_to_num( @ini_get( 'memory_limit' ) );
167
			$memory        = max( $memory, $system_memory );
168
		}
169
170
		$wp_data['memory_limit'] = size_format( $memory );
171
		$wp_data['debug_mode']   = ( defined('WP_DEBUG') && WP_DEBUG ) ? 'Yes' : 'No';