mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Removing useless condition in DboSource::cacheMethod()
This commit is contained in:
parent
edf2ea1e74
commit
5e665b32f2
1 changed files with 1 additions and 4 deletions
|
@ -493,10 +493,7 @@ class DboSource extends DataSource {
|
||||||
*/
|
*/
|
||||||
function cacheMethod($method, $key, $value = null) {
|
function cacheMethod($method, $key, $value = null) {
|
||||||
if ($this->cacheMethods === false) {
|
if ($this->cacheMethods === false) {
|
||||||
if ($value !== null) {
|
return $value;
|
||||||
return $value;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
if ($value === null) {
|
if ($value === null) {
|
||||||
return (isset($this->methodCache[$method][$key])) ? $this->methodCache[$method][$key] : null;
|
return (isset($this->methodCache[$method][$key])) ? $this->methodCache[$method][$key] : null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue