Completed
Pull Request — master (#351)
by
unknown
02:04
created
src/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $this->mergeConfigFrom(__DIR__ . '/../resources/config/sluggable.php', 'sluggable');
42 42
 
43
-        $this->app->singleton(SluggableObserver::class, function ($app) {
43
+        $this->app->singleton(SluggableObserver::class, function($app) {
44 44
             return new SluggableObserver(new SlugService(), $app['events']);
45 45
         });
46 46
     }
Please login to merge, or discard this patch.
src/Services/SlugService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
             return $this->model->__toString();
126 126
         }
127 127
 
128
-        $sourceStrings = array_map(function ($key) {
128
+        $sourceStrings = array_map(function($key) {
129 129
             return data_get($this->model, $key);
130
-        }, (array)$from);
130
+        }, (array) $from);
131 131
 
132 132
         return join($sourceStrings, ' ');
133 133
     }
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             return end($suffix);
298 298
         }
299 299
 
300
-        $list->transform(function ($value, $key) use ($len) {
300
+        $list->transform(function($value, $key) use ($len) {
301 301
             return intval(substr($value, $len));
302 302
         });
303 303
 
Please login to merge, or discard this patch.