mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
optimization, break early
This commit is contained in:
parent
02a946b17b
commit
e285df4f82
1 changed files with 1 additions and 0 deletions
|
@ -617,6 +617,7 @@ class CakeSchema extends CakeObject {
|
|||
foreach ($fields as $value) {
|
||||
if (isset($value['key']) && $value['key'] === 'primary') {
|
||||
$hasPrimaryAlready = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue