Code Duplication    Length = 2-2 lines in 2 locations

Sources/Load.php 1 location

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

Sources/ManageServer.php 1 location

@@ 762-763 (lines=2) @@
759
		$modSettings['load_average'] = @file_get_contents('/proc/loadavg');
760
		if (!empty($modSettings['load_average']) && preg_match('~^([^ ]+?) ([^ ]+?) ([^ ]+)~', $modSettings['load_average'], $matches) !== 0)
761
			$modSettings['load_average'] = (float) $matches[1];
762
		elseif (($modSettings['load_average'] = @`uptime`) !== null && preg_match('~load averages?: (\d+\.\d+), (\d+\.\d+), (\d+\.\d+)~i', $modSettings['load_average'], $matches) !== 0)
763
			$modSettings['load_average'] = (float) $matches[1];
764
		else
765
			unset($modSettings['load_average']);
766