Code Duplication    Length = 11-13 lines in 2 locations

lib/Cake/View/Helper.php 1 location

@@ 210-220 (lines=11) @@
207
		if (isset($this->{$name})) {
208
			return $this->{$name};
209
		}
210
		switch ($name) {
211
			case 'base':
212
			case 'here':
213
			case 'webroot':
214
			case 'data':
215
				return $this->request->{$name};
216
			case 'action':
217
				return isset($this->request->params['action']) ? $this->request->params['action'] : '';
218
			case 'params':
219
				return $this->request;
220
		}
221
	}
222
223
/**

lib/Cake/View/View.php 1 location

@@ 811-823 (lines=13) @@
808
 * @return mixed
809
 */
810
	public function __get($name) {
811
		switch ($name) {
812
			case 'base':
813
			case 'here':
814
			case 'webroot':
815
			case 'data':
816
				return $this->request->{$name};
817
			case 'action':
818
				return $this->request->params['action'];
819
			case 'params':
820
				return $this->request;
821
			case 'output':
822
				return $this->Blocks->get('content');
823
		}
824
		if (isset($this->Helpers->{$name})) {
825
			$this->{$name} = $this->Helpers->{$name};
826
			return $this->Helpers->{$name};