Completed
Push — master ( 53afa6...fd97f3 )
by sebastian
12:41
created
migrations/2020_06_15_083030_create_follows_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         Schema::create(
26 26
             config('follow.table_name'),
27
-            function (Blueprint $table) {
27
+            function(Blueprint $table) {
28 28
                 $table->bigIncrements('id');
29 29
                 $table->unsignedBigInteger('follower_id');
30 30
                 $table->unsignedBigInteger('following_id');
Please login to merge, or discard this patch.
src/Behaviors/CanBeFollowBehavior.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     public function removeManyFollowers(Collection $collection)
112 112
     {
113 113
         $collection->each(
114
-            function (Model $user) {
114
+            function(Model $user) {
115 115
                 $this->removeFollower($user);
116 116
             }
117 117
         );
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-     * @return mixed
61
+     * @return null|boolean
62 62
      */
63 63
     public function acceptFollow(Model $user)
64 64
     {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     }
73 73
 
74 74
     /**
75
-     * @return mixed
75
+     * @return null|boolean
76 76
      */
77 77
     public function rejectFollow(Model $user)
78 78
     {
Please login to merge, or discard this patch.
src/Behaviors/CanFollowBehavior.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     public function followMany(Collection $collection)
82 82
     {
83 83
         $collection->each(
84
-            function (Model $user) {
84
+            function(Model $user) {
85 85
                 $this->follow($user);
86 86
             }
87 87
         );
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     public function unFollowMany(Collection $collection)
137 137
     {
138 138
         $collection->each(
139
-            function (Model $user) {
139
+            function(Model $user) {
140 140
                 $this->unFollow($user);
141 141
             }
142 142
         );
Please login to merge, or discard this patch.