Skip to content

Commit

Permalink
Removing dead options.
Browse files Browse the repository at this point in the history
Removing extra uses()
  • Loading branch information
markstory committed Jun 9, 2009
1 parent ea0d5c8 commit fd7ad7e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cake/console/libs/tasks/plugin.php
Expand Up @@ -24,9 +24,7 @@
* @lastmodified $Date$ * @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php The MIT License * @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/ */
if (!class_exists('File')) {
uses('file');
}
/** /**
* Task class for creating a plugin * Task class for creating a plugin
* *
Expand Down Expand Up @@ -136,7 +134,7 @@ function bake($plugin) {


$looksGood = $this->in('Look okay?', array('y', 'n', 'q'), 'y'); $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'); $verbose = $this->in(__('Do you want verbose output?', true), array('y', 'n'), 'n');


$Folder = new Folder($this->path . $pluginPath); $Folder = new Folder($this->path . $pluginPath);
Expand All @@ -146,7 +144,7 @@ function bake($plugin) {
$Folder->create($this->path . $pluginPath . DS . $directory); $Folder->create($this->path . $pluginPath . DS . $directory);
} }


if (low($verbose) == 'y' || low($verbose) == 'yes') { if (low($verbose) == 'y') {
foreach ($Folder->messages() as $message) { foreach ($Folder->messages() as $message) {
$this->out($message); $this->out($message);
} }
Expand Down

0 comments on commit fd7ad7e

Please sign in to comment.