Completed
Push — master ( e76c29...36b4e7 )
by Andrii
02:08
created
src/actions/RequestAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use hiqdev\yii2\merchant\Module;
9 9
 use Yii;
10 10
 use yii\base\Action;
11
-use yii\base\Event;
12 11
 use yii\web\BadRequestHttpException;
13 12
 
14 13
 class RequestAction extends Action
Please login to merge, or discard this patch.
src/controllers/PayController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      * Renders depositing buttons for given request data.
150 150
      *
151 151
      * @param DepositForm $form request data
152
-     * @return \yii\web\Response
152
+     * @return string
153 153
      */
154 154
     public function renderDeposit($form)
155 155
     {
Please login to merge, or discard this patch.
src/Module.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -234,6 +234,9 @@  discard block
 block discarded – undo
234 234
         return is_string($page) && $page[0] !== '/' ? ('/' . $this->id . '/pay/' . $page) : $page;
235 235
     }
236 236
 
237
+    /**
238
+     * @param string $destination
239
+     */
237 240
     public function getPage($destination, DepositRequest $depositRequest)
238 241
     {
239 242
         $property = $destination . 'Url';
@@ -309,6 +312,10 @@  discard block
 block discarded – undo
309 312
         return $this->transactionRepository->save($transaction);
310 313
     }
311 314
 
315
+    /**
316
+     * @param string $id
317
+     * @param string $merchant
318
+     */
312 319
     public function insertTransaction($id, $merchant, $data)
313 320
     {
314 321
         $transaction = $this->transactionRepository->create($id, $merchant, $data);
Please login to merge, or discard this patch.