@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | protected function parseIds($value) |
23 | 23 | { |
24 | 24 | if ($value instanceof Model) { |
25 | - return [$this->executeWithinOptionalBinaryTransformation(function () use ($value) { |
|
25 | + return [$this->executeWithinOptionalBinaryTransformation(function() use ($value) { |
|
26 | 26 | return $value->{$this->relatedKey}; |
27 | 27 | }, $value)]; |
28 | 28 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | protected function parseId($value) |
49 | 49 | { |
50 | - return $value instanceof Model ? $this->executeWithinOptionalBinaryTransformation(function () use ($value) { |
|
50 | + return $value instanceof Model ? $this->executeWithinOptionalBinaryTransformation(function() use ($value) { |
|
51 | 51 | $value->{$this->relatedKey}; |
52 | 52 | }, $value) : $value; |
53 | 53 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | call_user_func_array([$query, 'whereIn'], $arguments); |
70 | 70 | } |
71 | 71 | |
72 | - return $this->executeWithinOptionalBinaryTransformation(function () use ($query) { |
|
72 | + return $this->executeWithinOptionalBinaryTransformation(function() use ($query) { |
|
73 | 73 | return $query->where($this->foreignPivotKey, $this->parent->{$this->parentKey}); |
74 | 74 | }, $this->parent); |
75 | 75 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | { |
86 | 86 | $record[$this->relatedPivotKey] = $id; |
87 | 87 | |
88 | - $record[$this->foreignPivotKey] = $this->executeWithinOptionalBinaryTransformation(function () { |
|
88 | + $record[$this->foreignPivotKey] = $this->executeWithinOptionalBinaryTransformation(function() { |
|
89 | 89 | return $this->parent->{$this->parentKey}; |
90 | 90 | }, $this->parent); |
91 | 91 |