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

@@ 743-744 (lines=2) @@
740
		$modSettings['load_average'] = @file_get_contents('/proc/loadavg');
741
		if (!empty($modSettings['load_average']) && preg_match('~^([^ ]+?) ([^ ]+?) ([^ ]+)~', $modSettings['load_average'], $matches) !== 0)
742
			$modSettings['load_average'] = (float) $matches[1];
743
		elseif (($modSettings['load_average'] = @`uptime`) !== null && preg_match('~load averages?: (\d+\.\d+), (\d+\.\d+), (\d+\.\d+)~i', $modSettings['load_average'], $matches) !== 0)
744
			$modSettings['load_average'] = (float) $matches[1];
745
		else
746
			unset($modSettings['load_average']);
747