Code Duplication    Length = 6-6 lines in 2 locations

infolog/inc/class.infolog_ical.inc.php 1 location

@@ 1174-1179 (lines=6) @@
1171
1172
		if (isset($deviceInfo) && is_array($deviceInfo))
1173
		{
1174
			if (!isset($this->productManufacturer)
1175
				|| $this->productManufacturer == ''
1176
				|| $this->productManufacturer == 'file')
1177
			{
1178
				$this->productManufacturer = strtolower($deviceInfo['manufacturer']);
1179
			}
1180
			if (!isset($this->productName) || $this->productName == '')
1181
			{
1182
				$this->productName = strtolower($deviceInfo['model']);

calendar/inc/class.calendar_ical.inc.php 1 location

@@ 2030-2035 (lines=6) @@
2027
						}
2028
				}
2029
			}
2030
			if (!isset($this->productManufacturer) ||
2031
				 $this->productManufacturer == '' ||
2032
				 $this->productManufacturer == 'file')
2033
			{
2034
				$this->productManufacturer = strtolower($deviceInfo['manufacturer']);
2035
			}
2036
			if (!isset($this->productName) || $this->productName == '')
2037
			{
2038
				$this->productName = strtolower($deviceInfo['model']);