Passed
Push — master ( 0b0de5...653fca )
by Maksim
04:50 queued 02:04
created
src/Http/Traits/HasCompositePrimaryKey.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public static function bootHasCompositePrimaryKey()
21 21
     {
22
-        static::creating(function ($model) {
22
+        static::creating(function($model) {
23 23
             foreach ($model->getRawKeyName() as $key) {
24 24
                 if ((!isset($model->{$key}) || empty($model->{$key})) && in_array($key, $model->getBinaryColumns())) {
25 25
                     $v = uniqid(rand(), true);
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         } else {
156 156
             //remap hex ID to binary ID even if index is not composite
157 157
             if ($this->shouldProcessBinaryAttribute($keys[0])) {
158
-                $ids = array_map(function ($hex) use ($keys) {
158
+                $ids = array_map(function($hex) use ($keys) {
159 159
                     return $this->recoverBinaryKey($keys[0], $hex);
160 160
                 }, $ids);
161 161
             }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
         return $this->newQueryWithoutScopes()->applyIds(
187 187
             array_map(
188
-                function ($normalizedKey) {
188
+                function($normalizedKey) {
189 189
                     return $this->hasCompositeIndex() ? $this->parseNormalizedKey($normalizedKey) : $normalizedKey;
190 190
                 },
191 191
                 $ids
Please login to merge, or discard this patch.