Code Duplication    Length = 4-5 lines in 2 locations

framework/Web/UI/TTemplate.php 2 locations

@@ 375-379 (lines=5) @@
372
					$setter = 'set' . $name;
373
					$component->$setter($value[1]);
374
					break;
375
				case self::CONFIG_ASSET:		// asset URL
376
					$setter = 'set' . $name;
377
					$url = $this->publishFilePath($this->_contextPath . DIRECTORY_SEPARATOR . $value[1]);
378
					$component->$setter($url);
379
					break;
380
				case self::CONFIG_PARAMETER:		// application parameter
381
					$setter = 'set' . $name;
382
					$component->$setter($this->getApplication()->getParameters()->itemAt($value[1]));
@@ 426-429 (lines=4) @@
423
				case self::CONFIG_TEMPLATE:
424
					$component->setSubProperty($name, $value[1]);
425
					break;
426
				case self::CONFIG_ASSET:		// asset URL
427
					$url = $this->publishFilePath($this->_contextPath . DIRECTORY_SEPARATOR . $value[1]);
428
					$component->setSubProperty($name, $url);
429
					break;
430
				case self::CONFIG_PARAMETER:		// application parameter
431
					$component->setSubProperty($name, $this->getApplication()->getParameters()->itemAt($value[1]));
432
					break;