Passed
Pull Request — master (#5)
by Maksim
05:00
created
src/Http/Traits/HasCompositePrimaryKey.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,9 +139,10 @@
 block discarded – undo
139 139
             (new CompositeKeyScope($keys, $ids, $inverse, $this->getBinaryColumns()))->apply($query);
140 140
         } else {
141 141
             //remap hex ID to binary ID even if index is not composite
142
-            if($this->shouldProcessBinaryAttribute($keys[0]))
143
-                $ids = array_map(function($hex){
142
+            if($this->shouldProcessBinaryAttribute($keys[0])) {
143
+                            $ids = array_map(function($hex){
144 144
                     return hex2bin($hex);
145
+            }
145 146
                 }, $ids);
146 147
             if ($inverse) {
147 148
                 $query->whereNotIn($this->qualifyColumn($keys[0]), $ids);
Please login to merge, or discard this patch.