Passed
Push — master ( 1a4dd8...786e6d )
by Carlos
06:24
created
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.
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
             $userForeignKey = config('follow.users_table_foreign_key', 'user_id');
24 24
             $table->unsignedInteger($userForeignKey);
25 25
             $table->unsignedInteger('followable_id');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function down()
42 42
     {
43
-        Schema::table(config('follow.followable_table', 'followables'), function ($table) {
43
+        Schema::table(config('follow.followable_table', 'followables'), function($table) {
44 44
             $table->dropForeign(config('follow.followable_table', 'followables').'_user_id_foreign');
45 45
         });
46 46
 
Please login to merge, or discard this patch.
src/Traits/HasPivotEvents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function setPivotChanges(string $type, string $relation, array $ids = [])
23 23
     {
24
-        collect($ids)->each(function ($attributes, $id) use ($type, $relation) {
24
+        collect($ids)->each(function($attributes, $id) use ($type, $relation) {
25 25
             data_set($this->pivotChanges, "{$type}.{$relation}.{$id}", $attributes);
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/BelongsToMany.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             )->toArray();
56 56
         }
57 57
 
58
-        $idsWithAttributes = collect($ids)->mapWithKeys(function ($id) {
58
+        $idsWithAttributes = collect($ids)->mapWithKeys(function($id) {
59 59
             return [$id => []];
60 60
         })->all();
61 61
 
Please login to merge, or discard this patch.