mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing use of low() from core classes. Refs #6525
This commit is contained in:
parent
8b419d2dd8
commit
0657afcf30
3 changed files with 9 additions and 9 deletions
|
@ -467,7 +467,7 @@ if (!function_exists('file_put_contents')) {
|
|||
$expires = strtotime($expires, $now);
|
||||
}
|
||||
|
||||
switch (low($target)) {
|
||||
switch (strtolower($target)) {
|
||||
case 'cache':
|
||||
$filename = CACHE . $path;
|
||||
break;
|
||||
|
|
|
@ -169,8 +169,8 @@ class ApiShell extends Shell {
|
|||
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 @@ class DbConfigTask extends Shell {
|
|||
$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 @@ class DbConfigTask extends Shell {
|
|||
$port = $this->in('Port?', null, 'n');
|
||||
}
|
||||
|
||||
if (low($port) == 'n') {
|
||||
if (strtolower($port) == 'n') {
|
||||
$port = null;
|
||||
}
|
||||
$login = '';
|
||||
|
@ -158,7 +158,7 @@ class DbConfigTask extends Shell {
|
|||
$prefix = $this->in('Table Prefix?', null, 'n');
|
||||
}
|
||||
|
||||
if (low($prefix) == 'n') {
|
||||
if (strtolower($prefix) == 'n') {
|
||||
$prefix = null;
|
||||
}
|
||||
$encoding = '';
|
||||
|
@ -167,7 +167,7 @@ class DbConfigTask extends Shell {
|
|||
$encoding = $this->in('Table encoding?', null, 'n');
|
||||
}
|
||||
|
||||
if (low($encoding) == 'n') {
|
||||
if (strtolower($encoding) == 'n') {
|
||||
$encoding = null;
|
||||
}
|
||||
$schema = '';
|
||||
|
@ -178,7 +178,7 @@ class DbConfigTask extends Shell {
|
|||
}
|
||||
}
|
||||
|
||||
if (low($schema) == 'n') {
|
||||
if (strtolower($schema) == 'n') {
|
||||
$schema = null;
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ class DbConfigTask extends Shell {
|
|||
$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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue