Test Failed
Push — master ( 7e4340...adf1bc )
by Carlos
11:03 queued 07:33
created
src/FollowServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,15 +24,15 @@
 block discarded – undo
24 24
     public function boot()
25 25
     {
26 26
         $this->publishes([
27
-            \dirname(__DIR__) . '/config/follow.php' => config_path('follow.php'),
27
+            \dirname(__DIR__).'/config/follow.php' => config_path('follow.php'),
28 28
         ], 'config');
29 29
 
30 30
         $this->publishes([
31
-            \dirname(__DIR__) . '/migrations/' => database_path('migrations'),
31
+            \dirname(__DIR__).'/migrations/' => database_path('migrations'),
32 32
         ], 'migrations');
33 33
 
34 34
         if ($this->app->runningInConsole()) {
35
-            $this->loadMigrationsFrom(\dirname(__DIR__) . '/migrations/');
35
+            $this->loadMigrationsFrom(\dirname(__DIR__).'/migrations/');
36 36
         }
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
config/follow.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	/*
4
+    /*
5 5
      * Table name for followers records.
6 6
      */
7
-	'relation_table' => 'user_follower',
7
+    'relation_table' => 'user_follower',
8 8
 ];
Please login to merge, or discard this patch.
migrations/2020_04_04_000000_create_user_follower_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create(config('follow.relation_table', 'user_follower'), function (Blueprint $table) {
11
+        Schema::create(config('follow.relation_table', 'user_follower'), function(Blueprint $table) {
12 12
             $table->increments('id');
13 13
             $table->unsignedBigInteger('following_id')->index();
14 14
             $table->unsignedBigInteger('follower_id')->index();
Please login to merge, or discard this patch.
src/Followable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,8 +192,8 @@
 block discarded – undo
192 192
 
193 193
         $followed = $this->followings()->wherePivot('accepted_at', '!=', null)->pluck('following_id');
194 194
 
195
-        $followables->map(function ($followable) use ($followed, $resolver) {
196
-            $resolver = $resolver ?? fn ($m) => $m;
195
+        $followables->map(function($followable) use ($followed, $resolver) {
196
+            $resolver = $resolver ?? fn($m) => $m;
197 197
             $followable = $resolver($followable);
198 198
 
199 199
             if ($followable && \in_array(Followable::class, \class_uses($followable))) {
Please login to merge, or discard this patch.