Passed
Push — master ( 162243...cca94e )
by Maksim
07:33 queued 04:48
created
src/Eloquent/Relationships/CompositeBelongsToMany.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     private function normalizeIds($ids)
16 16
     {
17
-        return $this->getQuery()->getModel()->hexBinaryColumns($this->relatedKey) ? (is_array($ids) ? array_map(function ($id) {
17
+        return $this->getQuery()->getModel()->hexBinaryColumns($this->relatedKey) ? (is_array($ids) ? array_map(function($id) {
18 18
             return $this->getQuery()->getModel()->recoverBinaryKey($this->relatedKey, $id);
19 19
         }, $ids) : $this->getQuery()->getModel()->recoverBinaryKey($this->relatedKey, $ids)) : $ids;
20 20
     }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     protected function parseIds($value)
30 30
     {
31 31
         if ($value instanceof Model) {
32
-            return [$this->executeWithinOptionalBinaryTransformation(function () use ($value) {
32
+            return [$this->executeWithinOptionalBinaryTransformation(function() use ($value) {
33 33
                 return $value->{$this->relatedKey};
34 34
             }, $value)];
35 35
         }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function parseId($value)
56 56
     {
57
-        return $value instanceof Model ? $this->executeWithinOptionalBinaryTransformation(function () use ($value) {
57
+        return $value instanceof Model ? $this->executeWithinOptionalBinaryTransformation(function() use ($value) {
58 58
             $value->{$this->relatedKey};
59 59
         }, $value) : $value;
60 60
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             call_user_func_array([$query, 'whereIn'], $arguments);
77 77
         }
78 78
 
79
-        return $this->executeWithinOptionalBinaryTransformation(function () use ($query) {
79
+        return $this->executeWithinOptionalBinaryTransformation(function() use ($query) {
80 80
             return $query->where($this->foreignPivotKey, $this->parent->{$this->parentKey});
81 81
         }, $this->parent);
82 82
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     {
94 94
         $record[$this->relatedPivotKey] = $id;
95 95
 
96
-        $record[$this->foreignPivotKey] = $this->executeWithinOptionalBinaryTransformation(function () {
96
+        $record[$this->foreignPivotKey] = $this->executeWithinOptionalBinaryTransformation(function() {
97 97
             return $this->parent->{$this->parentKey};
98 98
         }, $this->parent);
99 99
 
Please login to merge, or discard this patch.