Test Failed
Branch master (b4f8bd)
by Carlos
04:15
created
database/migrations/create_laravel_follow_tables.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function up()
21 21
     {
22
-        Schema::create(config('follow.followable_table', 'followables'), function (Blueprint $table) {
22
+        Schema::create(config('follow.followable_table', 'followables'), function(Blueprint $table) {
23 23
             $table->unsignedInteger('user_id');
24 24
             $table->unsignedInteger('followable_id');
25 25
             $table->string('followable_type')->index();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function down()
41 41
     {
42
-        Schema::table(config('follow.followable_table', 'followables'), function ($table) {
42
+        Schema::table(config('follow.followable_table', 'followables'), function($table) {
43 43
             $table->dropForeign(config('follow.followable_table', 'followables').'_user_id_foreign');
44 44
         });
45 45
 
Please login to merge, or discard this patch.
src/Follow.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
             $targets = [$targets];
119 119
         }
120 120
 
121
-        $result->ids = array_map(function ($target) use ($result) {
121
+        $result->ids = array_map(function($target) use ($result) {
122 122
             if ($target instanceof Model) {
123 123
                 $result->classname = get_class($target);
124 124
 
Please login to merge, or discard this patch.
src/FollowRelation.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
     public function scopePopular($query, $type = null)
48 48
     {
49 49
         $query->select('followable_id', 'followable_type', \DB::raw('COUNT(*) AS count'))
50
-                     ->groupBy('followable_id', 'followable_type')
51
-                     ->orderByDesc('count');
50
+                        ->groupBy('followable_id', 'followable_type')
51
+                        ->orderByDesc('count');
52 52
 
53 53
         if ($type) {
54 54
             $query->where('followable_type', $this->normalizeFollowableType($type));
Please login to merge, or discard this patch.