Completed
Push — master ( 786648...435fbe )
by Colin
04:00 queued 53s
created
resources/database/migrations/2015_08_17_185144_authors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function up()
19 19
     {
20
-        Schema::create('authors', function (Blueprint $table) {
20
+        Schema::create('authors', function(Blueprint $table) {
21 21
             $table->increments('id');
22 22
             $table->string('name');
23 23
         });
Please login to merge, or discard this patch.
resources/database/migrations/2013_11_04_163552_posts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function up()
19 19
     {
20
-        Schema::create('posts', function (Blueprint $table) {
20
+        Schema::create('posts', function(Blueprint $table) {
21 21
             $table->increments('id');
22 22
             $table->string('title');
23 23
             $table->string('subtitle')->nullable();
Please login to merge, or discard this patch.
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 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
             return $this->model->__toString();
129 129
         }
130 130
 
131
-        $sourceStrings = array_map(function ($key) {
131
+        $sourceStrings = array_map(function($key) {
132 132
             return array_get($this->model, $key);
133
-        }, (array)$from);
133
+        }, (array) $from);
134 134
 
135 135
         return join($sourceStrings, ' ');
136 136
     }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             return end($suffix);
286 286
         }
287 287
 
288
-        $list->transform(function ($value, $key) use ($len) {
288
+        $list->transform(function($value, $key) use ($len) {
289 289
             return intval(substr($value, $len));
290 290
         });
291 291
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,6 +168,7 @@  discard block
 block discarded – undo
168 168
      * Return a class that has a `slugify()` method, used to convert
169 169
      * strings into slugs.
170 170
      *
171
+     * @param string $attribute
171 172
      * @return Slugify
172 173
      */
173 174
     protected function getSlugEngine($attribute)
@@ -378,7 +379,7 @@  discard block
 block discarded – undo
378 379
     /**
379 380
      * Determine the version of Laravel (or the Illuminate components) that we are running.
380 381
      *
381
-     * @return mixed|string
382
+     * @return string
382 383
      */
383 384
     protected function getApplicationVersion()
384 385
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 use Cocur\Slugify\Slugify;
4 4
 use Illuminate\Database\Eloquent\Model;
5 5
 use Illuminate\Support\Collection;
6
-use Illuminate\Support\Str;
7 6
 
8 7
 /**
9 8
  * Class SlugService
Please login to merge, or discard this patch.