Code Duplication    Length = 2-2 lines in 2 locations

Sources/Load.php 1 location

@@ 253-254 (lines=2) @@
250
			$modSettings['load_average'] = @file_get_contents('/proc/loadavg');
251
			if (!empty($modSettings['load_average']) && preg_match('~^([^ ]+?) ([^ ]+?) ([^ ]+)~', $modSettings['load_average'], $matches) != 0)
252
				$modSettings['load_average'] = (float) $matches[1];
253
			elseif (($modSettings['load_average'] = @`uptime`) != null && preg_match('~load average[s]?: (\d+\.\d+), (\d+\.\d+), (\d+\.\d+)~i', $modSettings['load_average'], $matches) != 0)
254
				$modSettings['load_average'] = (float) $matches[1];
255
			else
256
				unset($modSettings['load_average']);
257

Sources/ManageServer.php 1 location

@@ 572-573 (lines=2) @@
569
		$modSettings['load_average'] = @file_get_contents('/proc/loadavg');
570
		if (!empty($modSettings['load_average']) && preg_match('~^([^ ]+?) ([^ ]+?) ([^ ]+)~', $modSettings['load_average'], $matches) !== 0)
571
			$modSettings['load_average'] = (float) $matches[1];
572
		elseif (($modSettings['load_average'] = @`uptime`) !== null && preg_match('~load averages?: (\d+\.\d+), (\d+\.\d+), (\d+\.\d+)~i', $modSettings['load_average'], $matches) !== 0)
573
			$modSettings['load_average'] = (float) $matches[1];
574
		else
575
			unset($modSettings['load_average']);
576