Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 141-146 (lines=6) @@
138
			while (!$password && !$blankPassword) {
139
				$password = $this->in(__d('cake_console', 'Password:'));
140
141
				if (!$password) {
142
					$blank = $this->in(__d('cake_console', 'The password you supplied was empty. Use an empty password?'), array('y', 'n'), 'n');
143
					if ($blank === 'y') {
144
						$blankPassword = true;
145
					}
146
				}
147
			}
148
149
			$database = '';

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

@@ 177-182 (lines=6) @@
174
175
		if (!empty($this->params['schema'])) {
176
			$options['schema'] = $modelName;
177
		} else {
178
			$doSchema = $this->in(__d('cake_console', 'Would you like to import schema for this fixture?'), array('y', 'n'), 'n');
179
			if ($doSchema === 'y') {
180
				$options['schema'] = $modelName;
181
			}
182
		}
183
		if (!empty($this->params['records'])) {
184
			$doRecords = 'y';
185
		} else {