Code Duplication    Length = 3-3 lines in 2 locations

lib/Cake/Console/Command/Task/ModelTask.php 1 location

@@ 179-181 (lines=3) @@
176
				$prompt = __d('cake_console', 'Make a selection from the choices above');
177
			}
178
			$choice = $this->in($prompt, null, $default);
179
			if (intval($choice) > 0 && intval($choice) <= $max) {
180
				$valid = true;
181
			}
182
		}
183
		return $choice - 1;
184
	}

lib/Cake/Console/Command/Task/PluginTask.php 1 location

@@ 206-208 (lines=3) @@
203
			}
204
			$prompt = __d('cake_console', 'Choose a plugin path from the paths above.');
205
			$choice = $this->in($prompt, null, 1);
206
			if (intval($choice) > 0 && intval($choice) <= $max) {
207
				$valid = true;
208
			}
209
		}
210
		$this->path = $pathOptions[$choice - 1];
211
	}