Passed
Pull Request — master (#16)
by Maksim
05:10 queued 02:26
created
src/Eloquent/Relationships/CompositeBelongsToMany.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     private function normalizeIds($ids)
21 21
     {
22
-        return $this->getQuery()->getModel()->hexBinaryColumns() ? (is_array($ids) ? array_map(function ($id) {
22
+        return $this->getQuery()->getModel()->hexBinaryColumns() ? (is_array($ids) ? array_map(function($id) {
23 23
             return $this->normalizeValue($id);
24 24
         }, $ids) : $this->normalizeValue($ids)) : $ids;
25 25
     }
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     protected function parseIds($value)
35 35
     {
36 36
         if ($value instanceof Model) {
37
-            return [$this->executeWithinOptionalBinaryTransformation(function () use ($value) {
37
+            return [$this->executeWithinOptionalBinaryTransformation(function() use ($value) {
38 38
                 return $value->{$this->relatedKey};
39 39
             }, $value)];
40 40
         }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     protected function parseId($value)
61 61
     {
62
-        return $value instanceof Model ? $this->executeWithinOptionalBinaryTransformation(function () use ($value) {
62
+        return $value instanceof Model ? $this->executeWithinOptionalBinaryTransformation(function() use ($value) {
63 63
             $value->{$this->relatedKey};
64 64
         }, $value) : $value;
65 65
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             call_user_func_array([$query, 'whereIn'], $arguments);
82 82
         }
83 83
 
84
-        return $this->executeWithinOptionalBinaryTransformation(function () use ($query) {
84
+        return $this->executeWithinOptionalBinaryTransformation(function() use ($query) {
85 85
             return $query->where($this->foreignPivotKey, $this->parent->{$this->parentKey});
86 86
         }, $this->parent);
87 87
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $record[$this->relatedPivotKey] = $id;
100 100
 
101
-        $record[$this->foreignPivotKey] = $this->executeWithinOptionalBinaryTransformation(function () {
101
+        $record[$this->foreignPivotKey] = $this->executeWithinOptionalBinaryTransformation(function() {
102 102
             return $this->parent->{$this->parentKey};
103 103
         }, $this->parent);
104 104
 
Please login to merge, or discard this patch.