Skip to content

Commit

Permalink
Style fixes on MorphMany.php
Browse files Browse the repository at this point in the history
  • Loading branch information
josue-itg committed Jun 23, 2022
1 parent 5efcd1b commit 61f375b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Database/Eloquent/Relations/MorphMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public function match(array $models, Collection $results, $relation)
* @param array $attributes
* @return \Illuminate\Database\Eloquent\Model
*/
public function forceCreate(array $attributes = []) {
public function forceCreate(array $attributes = [])
{
$attributes[$this->getMorphType()] = $this->morphClass;
parent::forceCreate($attributes);
}
Expand Down

0 comments on commit 61f375b

Please sign in to comment.