mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-06-02 12:53:33 +00:00
converting $foo == / $foo == 0 to !$foo (and a few $foo === 0)
This commit is contained in:
parent
cf8fccae96
commit
22a2e1b51e
29 changed files with 57 additions and 62 deletions
lib/Cake/Console/Command/Task
|
@ -316,9 +316,9 @@ class ViewTask extends BakeTask {
|
|||
*/
|
||||
public function customAction() {
|
||||
$action = '';
|
||||
while ($action == '') {
|
||||
while (!$action) {
|
||||
$action = $this->in(__d('cake_console', 'Action Name? (use lowercase_underscored function name)'));
|
||||
if ($action == '') {
|
||||
if (!$action) {
|
||||
$this->out(__d('cake_console', 'The action name you supplied was empty. Please try again.'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue