Skip to content

Commit

Permalink
fixed Review comment
Browse files Browse the repository at this point in the history
Fixed "If" without curly brackets break cakephp style guide.
  • Loading branch information
kaihoefler committed Apr 9, 2024
1 parent a8ff5d4 commit b4393ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Model/Behavior/Strategy/ConstStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ public function beforeFind(EventInterface $event, Query $query, ArrayObject $opt

$constant = Hash::get($row, $this->getConfig('field'));

if ($constant instanceof Entity) return $row;
if ($constant instanceof Entity) {
return $row;
}

$field = Inflector::singularize(Inflector::underscore($this->alias));
$value = new Entity([
Expand Down

0 comments on commit b4393ce

Please sign in to comment.