Skip to content

Commit 2343304

Browse files
Model - Update idValue to pass rector
1 parent 4c39031 commit 2343304

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/Model.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ protected function idValue($data)
469469
{
470470
return $data->{$this->primaryKey};
471471
}
472-
elseif (is_array($data) && ! empty($data[$this->primaryKey]))
472+
473+
if (is_array($data) && ! empty($data[$this->primaryKey]))
473474
{
474475
return $data[$this->primaryKey];
475476
}

0 commit comments

Comments
 (0)