mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing dead options.
Removing extra uses()
This commit is contained in:
parent
ea0d5c84be
commit
fd7ad7e861
1 changed files with 3 additions and 5 deletions
|
@ -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 @@ class PluginTask extends Shell {
|
|||
|
||||
$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 @@ class PluginTask extends Shell {
|
|||
$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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue