mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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);
|
$expires = strtotime($expires, $now);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (low($target)) {
|
switch (strtolower($target)) {
|
||||||
case 'cache':
|
case 'cache':
|
||||||
$filename = CACHE . $path;
|
$filename = CACHE . $path;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -169,8 +169,8 @@ class ApiShell extends Shell {
|
||||||
foreach ($commands as $cmd) {
|
foreach ($commands as $cmd) {
|
||||||
$this->out("{$cmd}\n\n");
|
$this->out("{$cmd}\n\n");
|
||||||
}
|
}
|
||||||
} elseif (isset($commands[low($this->args[1])])) {
|
} elseif (isset($commands[strtolower($this->args[1])])) {
|
||||||
$this->out($commands[low($this->args[1])] . "\n\n");
|
$this->out($commands[strtolower($this->args[1])] . "\n\n");
|
||||||
} else {
|
} else {
|
||||||
$this->out("Command '" . $this->args[1] . "' not found");
|
$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');
|
$persistent = $this->in('Persistent Connection?', array('y', 'n'), 'n');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (low($persistent) == 'n') {
|
if (strtolower($persistent) == 'n') {
|
||||||
$persistent = 'false';
|
$persistent = 'false';
|
||||||
} else {
|
} else {
|
||||||
$persistent = 'true';
|
$persistent = 'true';
|
||||||
|
@ -125,7 +125,7 @@ class DbConfigTask extends Shell {
|
||||||
$port = $this->in('Port?', null, 'n');
|
$port = $this->in('Port?', null, 'n');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (low($port) == 'n') {
|
if (strtolower($port) == 'n') {
|
||||||
$port = null;
|
$port = null;
|
||||||
}
|
}
|
||||||
$login = '';
|
$login = '';
|
||||||
|
@ -158,7 +158,7 @@ class DbConfigTask extends Shell {
|
||||||
$prefix = $this->in('Table Prefix?', null, 'n');
|
$prefix = $this->in('Table Prefix?', null, 'n');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (low($prefix) == 'n') {
|
if (strtolower($prefix) == 'n') {
|
||||||
$prefix = null;
|
$prefix = null;
|
||||||
}
|
}
|
||||||
$encoding = '';
|
$encoding = '';
|
||||||
|
@ -167,7 +167,7 @@ class DbConfigTask extends Shell {
|
||||||
$encoding = $this->in('Table encoding?', null, 'n');
|
$encoding = $this->in('Table encoding?', null, 'n');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (low($encoding) == 'n') {
|
if (strtolower($encoding) == 'n') {
|
||||||
$encoding = null;
|
$encoding = null;
|
||||||
}
|
}
|
||||||
$schema = '';
|
$schema = '';
|
||||||
|
@ -178,7 +178,7 @@ class DbConfigTask extends Shell {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (low($schema) == 'n') {
|
if (strtolower($schema) == 'n') {
|
||||||
$schema = null;
|
$schema = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ class DbConfigTask extends Shell {
|
||||||
$dbConfigs[] = $config;
|
$dbConfigs[] = $config;
|
||||||
$doneYet = $this->in('Do you wish to add another database configuration?', null, 'n');
|
$doneYet = $this->in('Do you wish to add another database configuration?', null, 'n');
|
||||||
|
|
||||||
if (low($doneYet == 'n')) {
|
if (strtolower($doneYet == 'n')) {
|
||||||
$done = true;
|
$done = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue