Completed
Push — proposal-voting-box-users ( 30049d )
by Arthur
02:09
created
app/Services/KeyFobAccess.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -235,6 +235,9 @@
 block discarded – undo
235 235
         return $this->user;
236 236
     }
237 237
 
238
+    /**
239
+     * @return KeyFob
240
+     */
238 241
     public function lookupKeyFob($keyId)
239 242
     {
240 243
         try {
Please login to merge, or discard this patch.
app/Helpers/GoCardlessHelper.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
         ]);
31 31
     }
32 32
 
33
+    /**
34
+     * @return double
35
+     */
33 36
     public function getPayment($paymentId)
34 37
     {
35 38
         return $this->client->payments()->get($paymentId);
@@ -56,6 +59,11 @@  discard block
 block discarded – undo
56 59
     }
57 60
 
58 61
 
62
+    /**
63
+     * @param string|null $mandate
64
+     * @param integer $amount
65
+     * @param string $subscriptionNumber
66
+     */
59 67
     public function createSubscription($mandate, $amount, $dayOfMonth, $subscriptionNumber)
60 68
     {
61 69
         $subscription = $this->client->subscriptions()->create([
@@ -75,6 +83,10 @@  discard block
 block discarded – undo
75 83
 
76 84
         return $subscription;
77 85
     }
86
+
87
+    /**
88
+     * @param string $id
89
+     */
78 90
     public function cancelSubscription($id)
79 91
     {
80 92
         return $this->client->subscriptions()->cancel($id);
Please login to merge, or discard this patch.
app/Repo/UserRepository.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,6 +196,9 @@  discard block
 block discarded – undo
196 196
         $this->subscriptionChargeRepository->cancelOutstandingCharges($userId);
197 197
     }
198 198
 
199
+    /**
200
+     * @param integer $userId
201
+     */
199 202
     public function recordGoCardlessMandateDetails($userId, $subscriptionId)
200 203
     {
201 204
         /** @var User $user */
@@ -205,6 +208,11 @@  discard block
 block discarded – undo
205 208
         $user->save();
206 209
     }
207 210
 
211
+    /**
212
+     * @param integer $userId
213
+     * @param string $paymentMethod
214
+     * @param integer $paymentDay
215
+     */
208 216
     public function updateUserPaymentMethod($userId, $paymentMethod, $paymentDay = null)
209 217
     {
210 218
         /** @var User $user */
@@ -216,6 +224,9 @@  discard block
 block discarded – undo
216 224
         $user->save();
217 225
     }
218 226
 
227
+    /**
228
+     * @param integer $userId
229
+     */
219 230
     public function recordGoCardlessSubscription($userId, $subscriptionId, $paymentDay = null)
220 231
     {
221 232
         /** @var User $user */
@@ -230,7 +241,7 @@  discard block
 block discarded – undo
230 241
     /**
231 242
      * Record the fact that the user has agreed to the member induction and the rules
232 243
      *
233
-     * @param $userId
244
+     * @param integer $userId
234 245
      */
235 246
     public function recordInductionCompleted($userId)
236 247
     {
Please login to merge, or discard this patch.