Completed
Branch master (cea02a)
by Colin
04:13
created
src/SluggableServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     /**
99 99
      * Get the services provided by the provider.
100 100
      *
101
-     * @return array
101
+     * @return string[]
102 102
      */
103 103
     public function provides()
104 104
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     protected function registerCreator()
57 57
     {
58
-        $this->app->singleton('sluggable.creator', function ($app) {
58
+        $this->app->singleton('sluggable.creator', function($app) {
59 59
             return new SluggableMigrationCreator($app['files']);
60 60
         });
61 61
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function registerEvents()
69 69
     {
70
-        $this->app['events']->listen('eloquent.saving*', function ($model) {
70
+        $this->app['events']->listen('eloquent.saving*', function($model) {
71 71
             if ($model instanceof SluggableInterface) {
72 72
                 $model->sluggify();
73 73
             }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function registerCommands()
83 83
     {
84
-        $this->app['sluggable.table'] = $this->app->share(function ($app) {
84
+        $this->app['sluggable.table'] = $this->app->share(function($app) {
85 85
             // Once we have the migration creator registered, we will create the command
86 86
             // and inject the creator. The creator is responsible for the actual file
87 87
             // creation of the migrations, and may be extended by these developers.
Please login to merge, or discard this patch.
src/SluggableTrait.php 1 patch
Spacing   +4 added lines, -4 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;
Please login to merge, or discard this patch.
src/SluggableRouter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function model($key, $class, Closure $callback = null)
24 24
     {
25
-        $this->bind($key, function ($value) use ($class, $callback) {
25
+        $this->bind($key, function($value) use ($class, $callback) {
26 26
             if (is_null($value)) {
27 27
                 return null;
28 28
             }
Please login to merge, or discard this patch.