@@ -19,7 +19,7 @@ discard block |
||
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 |
||
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 |
||
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 |