@@ -40,7 +40,7 @@ |
||
| 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 | } |
@@ -125,9 +125,9 @@ discard block |
||
| 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 |
||
| 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 | |