converting $foo == / $foo == 0 to !$foo (and a few $foo === 0)

This commit is contained in:
dogmatic69 2012-09-14 18:42:25 +01:00
parent cf8fccae96
commit 22a2e1b51e
29 changed files with 57 additions and 62 deletions
lib/Cake/Console/Command/Task

View file

@ -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.'));
}
}