@@ -74,6 +74,9 @@ |
||
| 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) { |
@@ -93,9 +93,9 @@ discard block |
||
| 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 |
||
| 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 |
@@ -26,7 +26,7 @@ |
||
| 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 = []) |
@@ -116,7 +116,7 @@ |
||
| 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 |
@@ -3,8 +3,6 @@ |
||
| 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; |
@@ -3,7 +3,6 @@ |
||
| 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 | /** |