Code Duplication    Length = 4-4 lines in 2 locations

lib/modules/mod_auth/radius.php 2 locations

@@ 61-64 (lines=4) @@
58
				return false;
59
			}
60
61
			if (!radius_put_string($res, RADIUS_NAS_IDENTIFIER, isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost'))  {
62
				debug('RadiusError:' . radius_strerror($res). "\n",'auth');
63
				return false;
64
			}
65
66
			if (!radius_put_int($res, RADIUS_SERVICE_TYPE, RADIUS_FRAMED)) {
67
				debug('RadiusError:' . radius_strerror($res). "\n",'auth');
@@ 76-79 (lines=4) @@
73
				return false;
74
			}
75
76
			if (!radius_put_string($res, RADIUS_CALLING_STATION_ID, isset($_SERVER['REMOTE_HOST']) ? $_SERVER['REMOTE_HOST'] : '127.0.0.1') == -1) {
77
				debug('RadiusError:' . radius_strerror($res). "\n",'auth');
78
				return false;
79
			}
80
81
			if (!radius_put_string($res, RADIUS_USER_NAME, $login)) {
82
				debug('RadiusError:' . radius_strerror($res). "\n",'auth');