Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing dead options.

Removing extra uses()
  • Loading branch information...
commit fd7ad7e861bbbeb7f0279752a001d8ce79b47d76 1 parent ea0d5c8
@markstory markstory authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 cake/console/libs/tasks/plugin.php
View
8 cake/console/libs/tasks/plugin.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 a plugin
*
@@ -136,7 +134,7 @@ function bake($plugin) {
$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($this->path . $pluginPath);
@@ -146,7 +144,7 @@ function bake($plugin) {
$Folder->create($this->path . $pluginPath . DS . $directory);
}
- if (low($verbose) == 'y' || low($verbose) == 'yes') {
+ if (low($verbose) == 'y') {
foreach ($Folder->messages() as $message) {
$this->out($message);
}
Please sign in to comment.
Something went wrong with that request. Please try again.