mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 15:39:53 +00:00
Removing more strtolower loops.
This commit is contained in:
parent
b7310afddf
commit
3ae1501fd0
1 changed files with 0 additions and 4 deletions
|
@ -418,10 +418,6 @@ class BehaviorCollection extends Object {
|
||||||
*/
|
*/
|
||||||
public function dispatchMethod(&$model, $method, $params = array(), $strict = false) {
|
public function dispatchMethod(&$model, $method, $params = array(), $strict = false) {
|
||||||
$methods = array_keys($this->__methods);
|
$methods = array_keys($this->__methods);
|
||||||
foreach ($methods as $key => $value) {
|
|
||||||
$methods[$key] = strtolower($value);
|
|
||||||
}
|
|
||||||
$method = strtolower($method);
|
|
||||||
$check = array_flip($methods);
|
$check = array_flip($methods);
|
||||||
$found = isset($check[$method]);
|
$found = isset($check[$method]);
|
||||||
$call = null;
|
$call = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue