Completed
Push — rewrite-observer ( 3f0850...586ca1 )
by Colin
02:22
created
src/Services/SlugService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
             return end($suffix);
282 282
         }
283 283
 
284
-        $list->transform(function ($value, $key) use ($len) {
284
+        $list->transform(function($value, $key) use ($len) {
285 285
             return intval(substr($value, $len));
286 286
         });
287 287
 
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $query = $this->model->newQuery();
306 306
 
307 307
         //check for direct match or something that has a separator followed by a suffix
308
-        $query->where(function (Builder $q) use ($attribute, $slug, $separator) {
308
+        $query->where(function(Builder $q) use ($attribute, $slug, $separator) {
309 309
             $q->where($attribute, $slug)
310 310
               ->orWhere($attribute, 'LIKE', $slug . $separator . '%');
311 311
         });
Please login to merge, or discard this patch.