Permalink
Browse files

Removing dead comparisons, extra uses() call.

  • Loading branch information...
1 parent d810b43 commit ea0d5c84bef26b44663f1810d417ff499afe7b66 @markstory markstory committed Jun 9, 2009
Showing with 4 additions and 6 deletions.
  1. +4 −6 cake/console/libs/tasks/project.php
@@ -24,9 +24,7 @@
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
-if (!class_exists('File')) {
- uses('file');
-}
+
/**
* Task class for creating new project apps and plugins
*
@@ -144,7 +142,7 @@ function bake($path, $skel = null, $skip = array('empty')) {
$looksGood = $this->in('Look okay?', array('y', 'n', 'q'), 'y');
- if (low($looksGood) == 'y' || low($looksGood) == 'yes') {
+ if (low($looksGood) == 'y') {
$verbose = $this->in(__('Do you want verbose output?', true), array('y', 'n'), 'n');
$Folder = new Folder($skel);
@@ -157,14 +155,14 @@ function bake($path, $skel = null, $skip = array('empty')) {
return false;
}
- if (low($verbose) == 'y' || low($verbose) == 'yes') {
+ if (low($verbose) == 'y') {
foreach ($Folder->messages() as $message) {
$this->out($message);
}
}
return true;
- } elseif (low($looksGood) == 'q' || low($looksGood) == 'quit') {
+ } elseif (low($looksGood) == 'q') {
$this->out('Bake Aborted.');
} else {
$this->execute(false);

0 comments on commit ea0d5c8

Please sign in to comment.