Passed
Push — master ( dc6e70...d507ab )
by Samuel
02:07
created
src/Equity/Library/StkRequest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@
 block discarded – undo
74 74
         return $this;
75 75
     }
76 76
 
77
+    /**
78
+     * @param integer $number
79
+     */
77 80
     private function formatPhoneNumber(&$number)
78 81
     {
79 82
         if (strlen($number) === 10) {
Please login to merge, or discard this patch.
src/Equity/Library/Transactor.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * Process the transaction request.
95 95
      *
96
-     * @param $amount
97
-     * @param $number
98
-     * @param $referenceId
96
+     * @param integer $amount
97
+     * @param integer $number
98
+     * @param integer $referenceId
99 99
      *
100 100
      * @return mixed|\Psr\Http\Message\ResponseInterface
101 101
      */
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     /**
284 284
      * Validate the response is a success, throw error if not.
285 285
      *
286
-     * @param Response $response
286
+     * @param \Psr\Http\Message\ResponseInterface $response
287 287
      *
288 288
      * @throws TransactionException
289 289
      * @throws EquityException
Please login to merge, or discard this patch.
src/Equity/Library/Validator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      *
27 27
      * @param array $data
28 28
      *
29
-     * @return bool
29
+     * @return boolean|null
30 30
      * @throws InvalidRequestException
31 31
      */
32 32
     public static function validate($data = [])
Please login to merge, or discard this patch.
src/Mpesa/Repositories/Mpesa.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
     }
117 117
 
118 118
     /**
119
-     * @param $title
119
+     * @param string $title
120 120
      * @param bool $important
121 121
      */
122 122
     public function notification($title, $important = false): void
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace Samerior\MobileMoney\Mpesa\Repositories;
4 4
 
5 5
 use Illuminate\Support\Arr;
6
-use Illuminate\Support\Facades\Log;
7
-use Samerior\MobileMoney\Mpesa\Database\Entities\MpesaB2cResultParameter;
8 6
 use Samerior\MobileMoney\Mpesa\Database\Entities\MpesaBulkPaymentRequest;
9 7
 use Samerior\MobileMoney\Mpesa\Database\Entities\MpesaBulkPaymentResponse;
10 8
 use Samerior\MobileMoney\Mpesa\Database\Entities\MpesaC2bCallback;
Please login to merge, or discard this patch.
src/Mpesa/Listeners/B2CSuccessListener.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 namespace Samerior\MobileMoney\src\Mpesa\Listeners;
5 5
 
6
-use Samerior\MobileMoney\Mpesa\Database\Entities\MpesaBulkPaymentResponse;
7 6
 use Samerior\MobileMoney\Mpesa\Events\B2cPaymentSuccessEvent;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.