mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
don't repeat the default value in the message
the default value is the cli prompt anywaya
This commit is contained in:
parent
1c62a66b0b
commit
9ac79da3f7
2 changed files with 4 additions and 4 deletions
|
@ -114,7 +114,7 @@ class ExtractTask extends Shell {
|
||||||
$this->__paths = explode(',', $this->params['paths']);
|
$this->__paths = explode(',', $this->params['paths']);
|
||||||
} else {
|
} else {
|
||||||
$defaultPath = APP_PATH;
|
$defaultPath = APP_PATH;
|
||||||
$message = __d('cake_console', "What is the path you would like to extract?\nExample: %s\n[Q]uit [D]one", $defaultPath);
|
$message = __d('cake_console', "What is the path you would like to extract?\n[Q]uit [D]one");
|
||||||
while (true) {
|
while (true) {
|
||||||
$response = $this->in($message, null, $defaultPath);
|
$response = $this->in($message, null, $defaultPath);
|
||||||
if (strtoupper($response) === 'Q') {
|
if (strtoupper($response) === 'Q') {
|
||||||
|
@ -136,7 +136,7 @@ class ExtractTask extends Shell {
|
||||||
if (isset($this->params['output'])) {
|
if (isset($this->params['output'])) {
|
||||||
$this->__output = $this->params['output'];
|
$this->__output = $this->params['output'];
|
||||||
} else {
|
} else {
|
||||||
$message = __d('cake_console', "What is the path you would like to output?\nExample: %s\n[Q]uit", $this->__paths[0] . DS . 'locale');
|
$message = __d('cake_console', "What is the path you would like to output?\n[Q]uit", $this->__paths[0] . DS . 'locale');
|
||||||
while (true) {
|
while (true) {
|
||||||
$response = $this->in($message, null, $this->__paths[0] . DS . 'locale');
|
$response = $this->in($message, null, $this->__paths[0] . DS . 'locale');
|
||||||
if (strtoupper($response) === 'Q') {
|
if (strtoupper($response) === 'Q') {
|
||||||
|
@ -417,7 +417,7 @@ class ExtractTask extends Shell {
|
||||||
if (strtoupper($response) === 'N') {
|
if (strtoupper($response) === 'N') {
|
||||||
$response = '';
|
$response = '';
|
||||||
while ($response == '') {
|
while ($response == '') {
|
||||||
$response = $this->in(__d('cake_console', "What would you like to name this file?\nExample: %s", 'new_' . $filename), null, 'new_' . $filename);
|
$response = $this->in(__d('cake_console', "What would you like to name this file?"), null, 'new_' . $filename);
|
||||||
$File = new File($this->__output . $response);
|
$File = new File($this->__output . $response);
|
||||||
$filename = $response;
|
$filename = $response;
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,7 +220,7 @@ class TestTask extends BakeTask {
|
||||||
/**
|
/**
|
||||||
* Checks whether the chosen type can find its own fixtures.
|
* Checks whether the chosen type can find its own fixtures.
|
||||||
* Currently only model, and controller are supported
|
* Currently only model, and controller are supported
|
||||||
*
|
*
|
||||||
* @param string $type The Type of object you are generating tests for eg. controller
|
* @param string $type The Type of object you are generating tests for eg. controller
|
||||||
* @param string $className the Classname of the class the test is being generated for.
|
* @param string $className the Classname of the class the test is being generated for.
|
||||||
* @return boolean
|
* @return boolean
|
||||||
|
|
Loading…
Reference in a new issue