Skip to content

Commit

Permalink
optimization, break early
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbarre committed Mar 25, 2017
1 parent 02a946b commit e285df4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Model/CakeSchema.php
Expand Up @@ -617,6 +617,7 @@ protected function _columns(&$Obj) {
foreach ($fields as $value) { foreach ($fields as $value) {
if (isset($value['key']) && $value['key'] === 'primary') { if (isset($value['key']) && $value['key'] === 'primary') {
$hasPrimaryAlready = true; $hasPrimaryAlready = true;
break;
} }
} }


Expand Down

0 comments on commit e285df4

Please sign in to comment.