Skip to content

Commit 6f70f67

Browse files
committed
csfix
1 parent 6a818bb commit 6f70f67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Traits/FiresPivotEventsTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function attach($ids, array $attributes = [], $touch = true)
1717
{
1818
list($idsOnly, $idsAttributes) = $this->getIdsWithAttributes($ids, $attributes);
1919

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

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

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

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

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

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

0 commit comments

Comments
 (0)