@@ -12,8 +12,8 @@ discard block |
||
12 | 12 | { |
13 | 13 | use CompositeRelationships; |
14 | 14 | |
15 | - private function normalizeIds($ids){ |
|
16 | - return $this->getQuery()->getModel()->hexBinaryColumns($this->relatedKey) ? (is_array($ids) ? array_map(function($id){ |
|
15 | + private function normalizeIds($ids) { |
|
16 | + return $this->getQuery()->getModel()->hexBinaryColumns($this->relatedKey) ? (is_array($ids) ? array_map(function($id) { |
|
17 | 17 | return $this->getQuery()->getModel()->recoverBinaryKey($this->relatedKey, $id); |
18 | 18 | }, $ids) : $this->getQuery()->getModel()->recoverBinaryKey($this->relatedKey, $ids)) : $ids; |
19 | 19 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | protected function parseIds($value) |
29 | 29 | { |
30 | 30 | if ($value instanceof Model) { |
31 | - return [$this->executeWithinOptionalBinaryTransformation(function () use ($value) { |
|
31 | + return [$this->executeWithinOptionalBinaryTransformation(function() use ($value) { |
|
32 | 32 | return $value->{$this->relatedKey}; |
33 | 33 | }, $value)]; |
34 | 34 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | protected function parseId($value) |
55 | 55 | { |
56 | - return $value instanceof Model ? $this->executeWithinOptionalBinaryTransformation(function () use ($value) { |
|
56 | + return $value instanceof Model ? $this->executeWithinOptionalBinaryTransformation(function() use ($value) { |
|
57 | 57 | $value->{$this->relatedKey}; |
58 | 58 | }, $value) : $value; |
59 | 59 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | call_user_func_array([$query, 'whereIn'], $arguments); |
76 | 76 | } |
77 | 77 | |
78 | - return $this->executeWithinOptionalBinaryTransformation(function () use ($query) { |
|
78 | + return $this->executeWithinOptionalBinaryTransformation(function() use ($query) { |
|
79 | 79 | return $query->where($this->foreignPivotKey, $this->parent->{$this->parentKey}); |
80 | 80 | }, $this->parent); |
81 | 81 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | { |
92 | 92 | $record[$this->relatedPivotKey] = $id; |
93 | 93 | |
94 | - $record[$this->foreignPivotKey] = $this->executeWithinOptionalBinaryTransformation(function () { |
|
94 | + $record[$this->foreignPivotKey] = $this->executeWithinOptionalBinaryTransformation(function() { |
|
95 | 95 | return $this->parent->{$this->parentKey}; |
96 | 96 | }, $this->parent); |
97 | 97 |