Code Duplication    Length = 8-8 lines in 2 locations

lib/Cake/Console/Shell.php 1 location

@@ 261-268 (lines=8) @@
258
 * @return void
259
 */
260
	public function __isset($name) {
261
		if (is_array($this->uses)) {
262
			foreach ($this->uses as $modelClass) {
263
				list(, $class) = pluginSplit($modelClass);
264
				if ($name === $class) {
265
					return $this->loadModel($modelClass);
266
				}
267
			}
268
		}
269
	}
270
271
/**

lib/Cake/Controller/Controller.php 1 location

@@ 363-370 (lines=8) @@
360
				return true;
361
		}
362
363
		if (is_array($this->uses)) {
364
			foreach ($this->uses as $modelClass) {
365
				list($plugin, $class) = pluginSplit($modelClass, true);
366
				if ($name === $class) {
367
					return $this->loadModel($modelClass);
368
				}
369
			}
370
		}
371
372
		if ($name === $this->modelClass) {
373
			list($plugin, $class) = pluginSplit($name, true);