Completed
Push — master ( 60faec...f4874b )
by recca
08:57
created
src/Action/Api/BaseApiAwareAction.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace PayumTW\Collect\Action\Api;
4 4
 
5 5
 use PayumTW\Collect\Api;
6
-use Payum\Core\ApiAwareInterface;
7 6
 use Payum\Core\Action\ActionInterface;
7
+use Payum\Core\ApiAwareInterface;
8 8
 use Payum\Core\Exception\UnsupportedApiException;
9 9
 
10 10
 abstract class BaseApiAwareAction implements ActionInterface, ApiAwareInterface
Please login to merge, or discard this patch.
src/Action/CaptureAction.php 1 patch
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,17 +2,17 @@
 block discarded – undo
2 2
 
3 3
 namespace PayumTW\Collect\Action;
4 4
 
5
-use Payum\Core\Request\Capture;
6
-use Payum\Core\GatewayAwareTrait;
7
-use Payum\Core\GatewayAwareInterface;
8
-use Payum\Core\Action\ActionInterface;
9
-use Payum\Core\Bridge\Spl\ArrayObject;
10
-use Payum\Core\Request\GetHttpRequest;
11 5
 use PayumTW\Collect\Action\Api\BaseApiAwareAction;
12 6
 use PayumTW\Collect\Request\Api\CreateTransaction;
7
+use Payum\Core\Action\ActionInterface;
8
+use Payum\Core\Bridge\Spl\ArrayObject;
13 9
 use Payum\Core\Exception\RequestNotSupportedException;
14
-use Payum\Core\Security\GenericTokenFactoryAwareTrait;
10
+use Payum\Core\GatewayAwareInterface;
11
+use Payum\Core\GatewayAwareTrait;
12
+use Payum\Core\Request\Capture;
13
+use Payum\Core\Request\GetHttpRequest;
15 14
 use Payum\Core\Security\GenericTokenFactoryAwareInterface;
15
+use Payum\Core\Security\GenericTokenFactoryAwareTrait;
16 16
 
17 17
 class CaptureAction extends BaseApiAwareAction implements ActionInterface, GatewayAwareInterface, GenericTokenFactoryAwareInterface
18 18
 {
Please login to merge, or discard this patch.
src/Api.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace PayumTW\Collect;
4 4
 
5 5
 use Http\Message\MessageFactory;
6
-use Payum\Core\HttpClientInterface;
7 6
 use Payum\Core\Exception\Http\HttpException;
7
+use Payum\Core\HttpClientInterface;
8 8
 
9 9
 abstract class Api
10 10
 {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,10 +54,9 @@
 block discarded – undo
54 54
 
55 55
     /**
56 56
      * @param string $method
57
-     * @param array $fields
58 57
      * @param string $type
59 58
      * @param bool $isJson
60
-     * @return array
59
+     * @return string
61 60
      */
62 61
     protected function doRequest($method, $params, $type = 'cancel', $isJson = true)
63 62
     {
Please login to merge, or discard this patch.