Passed
Push — master ( 56e7e1...f8eeb0 )
by Carlos
53s queued 12s
created
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 = UserFollower::where('follower_id', $this->getKey())->get();
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.
src/FollowServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@
 block discarded – undo
9 9
     public function boot()
10 10
     {
11 11
         $this->publishes([
12
-            \dirname(__DIR__) . '/config/follow.php' => config_path('follow.php'),
12
+            \dirname(__DIR__).'/config/follow.php' => config_path('follow.php'),
13 13
         ], 'config');
14 14
 
15 15
         $this->publishes([
16
-            \dirname(__DIR__) . '/migrations/' => database_path('migrations'),
16
+            \dirname(__DIR__).'/migrations/' => database_path('migrations'),
17 17
         ], 'migrations');
18 18
     }
19 19
 }
Please login to merge, or discard this patch.