mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +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
|
@ -279,7 +279,7 @@ class CakeSchema extends Object {
|
|||
if (empty($Object->hasAndBelongsToMany)) {
|
||||
continue;
|
||||
}
|
||||
foreach ($Object->hasAndBelongsToMany as $Assoc => $assocData) {
|
||||
foreach ($Object->hasAndBelongsToMany as $assocData) {
|
||||
if (isset($assocData['with'])) {
|
||||
$class = $assocData['with'];
|
||||
}
|
||||
|
@ -607,7 +607,7 @@ class CakeSchema extends Object {
|
|||
$db = $Obj->getDataSource();
|
||||
$fields = $Obj->schema(true);
|
||||
|
||||
$columns = $props = array();
|
||||
$columns = array();
|
||||
foreach ($fields as $name => $value) {
|
||||
if ($Obj->primaryKey == $name) {
|
||||
$value['key'] = 'primary';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue