Skip to content
Permalink
Browse files

Removing use of low() from core classes. Refs #6525

  • Loading branch information...
markstory committed Oct 21, 2009
1 parent 8b419d2 commit 0657afcf30763320664262bfd3f6fbfee0042c14
Showing with 9 additions and 9 deletions.
  1. +1 −1 cake/basics.php
  2. +2 −2 cake/console/libs/api.php
  3. +6 −6 cake/console/libs/tasks/db_config.php
@@ -467,7 +467,7 @@ function cache($path, $data = null, $expires = '+1 day', $target = 'cache') {
$expires = strtotime($expires, $now);
}
switch (low($target)) {
switch (strtolower($target)) {
case 'cache':
$filename = CACHE . $path;
break;
@@ -169,8 +169,8 @@ function help() {
foreach ($commands as $cmd) {
$this->out("{$cmd}\n\n");
}
} elseif (isset($commands[low($this->args[1])])) {
$this->out($commands[low($this->args[1])] . "\n\n");
} elseif (isset($commands[strtolower($this->args[1])])) {
$this->out($commands[strtolower($this->args[1])] . "\n\n");
} else {
$this->out("Command '" . $this->args[1] . "' not found");
}
@@ -109,7 +109,7 @@ function __interactive() {
$persistent = $this->in('Persistent Connection?', array('y', 'n'), 'n');
}
if (low($persistent) == 'n') {
if (strtolower($persistent) == 'n') {
$persistent = 'false';
} else {
$persistent = 'true';
@@ -125,7 +125,7 @@ function __interactive() {
$port = $this->in('Port?', null, 'n');
}
if (low($port) == 'n') {
if (strtolower($port) == 'n') {
$port = null;
}
$login = '';
@@ -158,7 +158,7 @@ function __interactive() {
$prefix = $this->in('Table Prefix?', null, 'n');
}
if (low($prefix) == 'n') {
if (strtolower($prefix) == 'n') {
$prefix = null;
}
$encoding = '';
@@ -167,7 +167,7 @@ function __interactive() {
$encoding = $this->in('Table encoding?', null, 'n');
}
if (low($encoding) == 'n') {
if (strtolower($encoding) == 'n') {
$encoding = null;
}
$schema = '';
@@ -178,7 +178,7 @@ function __interactive() {
}
}
if (low($schema) == 'n') {
if (strtolower($schema) == 'n') {
$schema = null;
}
@@ -190,7 +190,7 @@ function __interactive() {
$dbConfigs[] = $config;
$doneYet = $this->in('Do you wish to add another database configuration?', null, 'n');
if (low($doneYet == 'n')) {
if (strtolower($doneYet == 'n')) {
$done = true;
}
}

0 comments on commit 0657afc

Please sign in to comment.
You can’t perform that action at this time.