Skip to content

Commit

Permalink
csfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fico7489 committed Sep 6, 2020
1 parent 6a818bb commit 6f70f67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Traits/FiresPivotEventsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function attach($ids, array $attributes = [], $touch = true)
{
list($idsOnly, $idsAttributes) = $this->getIdsWithAttributes($ids, $attributes);

if ($this->parent->fireModelEvent('pivotAttaching', true, $this->getRelationName(), $idsOnly, $idsAttributes) === false) {
if (false === $this->parent->fireModelEvent('pivotAttaching', true, $this->getRelationName(), $idsOnly, $idsAttributes)) {
return false;
}

Expand All @@ -43,7 +43,7 @@ public function detach($ids = null, $touch = true)

list($idsOnly) = $this->getIdsWithAttributes($ids);

if ($this->parent->fireModelEvent('pivotDetaching', true, $this->getRelationName(), $idsOnly) === false) {
if (false === $this->parent->fireModelEvent('pivotDetaching', true, $this->getRelationName(), $idsOnly)) {
return false;
}

Expand All @@ -65,7 +65,7 @@ public function updateExistingPivot($id, array $attributes, $touch = true)
{
list($idsOnly, $idsAttributes) = $this->getIdsWithAttributes($id, $attributes);

if ($this->parent->fireModelEvent('pivotUpdating', true, $this->getRelationName(), $idsOnly, $idsAttributes) === false) {
if (false === $this->parent->fireModelEvent('pivotUpdating', true, $this->getRelationName(), $idsOnly, $idsAttributes)) {
return false;
}

Expand Down

0 comments on commit 6f70f67

Please sign in to comment.