Passed
Push — master ( c67049...162243 )
by Maksim
02:42
created
src/Eloquent/Relationships/CompositeBelongsToMany.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.