Completed
Pull Request — master (#254)
by
unknown
02:30
created
src/SluggableTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             return $this->__toString();
48 48
         }
49 49
 
50
-        $source = array_map([$this, 'generateSource'], (array)$from);
50
+        $source = array_map([$this, 'generateSource'], (array) $from);
51 51
 
52 52
         return join($source, ' ');
53 53
     }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             return end($suffix);
211 211
         }
212 212
 
213
-        array_walk($list, function (&$value, $key) use ($len) {
213
+        array_walk($list, function(&$value, $key) use ($len) {
214 214
             $value = intval(substr($value, $len));
215 215
         });
216 216
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         $instance = new static;
236 236
 
237 237
         //check for direct match or something that has a separator followed by a suffix
238
-        $query = $instance->where(function ($query) use (
238
+        $query = $instance->where(function($query) use (
239 239
           $save_to,
240 240
           $config,
241 241
           $slug
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
     public static function findBySlugOrIdOrFail($slug, array $columns = ['*'])
408 408
     {
409 409
         if (!$result = self::findBySlug($slug, $columns)) {
410
-            return self::findOrFail((int)$slug, $columns);
410
+            return self::findOrFail((int) $slug, $columns);
411 411
         }
412 412
 
413 413
         return $result;
@@ -438,9 +438,9 @@  discard block
 block discarded – undo
438 438
      */
439 439
     public static function findBySlugOrNew($slug, array $columns = ['*'])
440 440
     {
441
-        $model =  self::findBySlug($slug,$columns);
441
+        $model = self::findBySlug($slug, $columns);
442 442
 
443
-        if(is_null($model)){
443
+        if (is_null($model)) {
444 444
             return (new self);
445 445
         }
446 446
         return $model;
Please login to merge, or discard this patch.