mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 20:12:42 +00:00
remove unused local variables and a few improvements
This commit is contained in:
parent
f25f35353d
commit
3f4d24bfc0
38 changed files with 77 additions and 95 deletions
|
@ -1799,7 +1799,7 @@ class Model extends Object implements CakeEventListener {
|
|||
|
||||
if ($with = $this->hasAndBelongsToMany[$assoc]['with']) {
|
||||
$withModel = is_array($with) ? key($with) : $with;
|
||||
list($pluginName, $withModel) = pluginSplit($withModel);
|
||||
list(, $withModel) = pluginSplit($withModel);
|
||||
$dbMulti = $this->{$withModel}->getDataSource();
|
||||
} else {
|
||||
$dbMulti = $db;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue