Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
zeezo887 committed Nov 14, 2024
1 parent ba50f4a commit befdd69
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/TwillUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,10 @@ public function syncUsingPrimaryKey(BelongsToMany $relation, $ids, $detaching =
$this->attach($id, $attributes, false);

$changes['attached'][] = $this->castKey($id);
}

// Now we'll try to update an existing pivot record with the attributes that were
// given to the method. If the model is actually updated we will add it to the
// list of updated pivot records so we return them back out to the consumer.
elseif (count($attributes) > 0) {
} elseif (count($attributes) > 0) {
// Now we'll try to update an existing pivot record with the attributes that were
// given to the method. If the model is actually updated we will add it to the
// list of updated pivot records so we return them back out to the consumer.
if ($this->hasPivotColumn($this->updatedAt())) {
$attributes = $this->addTimestampsToAttachment($attributes, true);
}
Expand Down

0 comments on commit befdd69

Please sign in to comment.