Code Duplication    Length = 5-5 lines in 2 locations

lib/Cake/Controller/Controller.php 1 location

@@ 1235-1239 (lines=5) @@
1232
 */
1233
	protected function _getViewObject() {
1234
		$viewClass = $this->viewClass;
1235
		if ($this->viewClass !== 'View') {
1236
			list($plugin, $viewClass) = pluginSplit($viewClass, true);
1237
			$viewClass = $viewClass . 'View';
1238
			App::uses($viewClass, $plugin . 'View');
1239
		}
1240
1241
		return new $viewClass($this);
1242
	}

lib/Cake/Network/Email/CakeEmail.php 1 location

@@ 1617-1621 (lines=5) @@
1614
			return $rendered;
1615
		}
1616
		$viewClass = $this->_viewRender;
1617
		if ($viewClass !== 'View') {
1618
			list($plugin, $viewClass) = pluginSplit($viewClass, true);
1619
			$viewClass .= 'View';
1620
			App::uses($viewClass, $plugin . 'View');
1621
		}
1622
1623
		$View = new $viewClass(null);
1624
		$View->viewVars = $this->_viewVars;