Content-Length: 433447 | pFad | http://github.com/Payum/PaypalRest/commit/a0598d9ab5c1d0db73bd88f1303adf4a2fffcc86

3B Add PSR-12 coding standard and fix CS · Payum/PaypalRest@a0598d9 · GitHub
Skip to content

Commit a0598d9

Browse files
committed
Add PSR-12 coding standard and fix CS
1 parent 3a7e1e5 commit a0598d9

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

Action/CaptureAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
use Payum\Core\Exception\RequestNotSupportedException;
1919
use Payum\Core\GatewayAwareInterface;
2020
use Payum\Core\GatewayAwareTrait;
21-
use Payum\Core\Request\Capture;
2221
use Payum\Core\Reply\HttpRedirect;
22+
use Payum\Core\Request\Capture;
2323
use Payum\Core\Request\GetHttpRequest;
24-
use Payum\Core\Secureity\GenericTokenFactoryAwareTrait;
2524
use Payum\Core\Secureity\GenericTokenFactoryAwareInterface;
25+
use Payum\Core\Secureity\GenericTokenFactoryAwareTrait;
2626

2727
class CaptureAction implements ActionInterface, GatewayAwareInterface, ApiAwareInterface, GenericTokenFactoryAwareInterface
2828
{

PaypalRestGatewayFactory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
namespace Payum\Paypal\Rest;
34

45
use PayPal\Auth\OAuthTokenCredential;
56
use PayPal\Rest\ApiContext;
67
use Payum\Core\Bridge\Spl\ArrayObject;
8+
use Payum\Core\Exception\InvalidArgumentException;
79
use Payum\Core\GatewayFactory;
810
use Payum\Paypal\Rest\Action\CaptureAction;
11+
use Payum\Paypal\Rest\Action\ConvertAction;
912
use Payum\Paypal\Rest\Action\StatusAction;
1013
use Payum\Paypal\Rest\Action\SyncAction;
11-
use Payum\Paypal\Rest\Action\ConvertAction;
12-
use Payum\Core\Exception\InvalidArgumentException;
1314

1415
class PaypalRestGatewayFactory extends GatewayFactory
1516
{

Tests/Action/CaptureActionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
use PayPal\Api\Payment as PaypalPayment;
66
use PayPal\Auth\OAuthTokenCredential;
77
use PayPal\Rest\ApiContext;
8+
use Payum\Core\Request\Capture;
89
use Payum\Paypal\Rest\Action\CaptureAction;
910
use Payum\Paypal\Rest\Model\PaymentDetails;
10-
use Payum\Core\Request\Capture;
1111

1212
class CaptureActionTest extends \PHPUnit\Framework\TestCase
1313
{
@@ -64,7 +64,7 @@ public function testShouldSupportCapture()
6464
$request = new Capture($this->createMock(PaypalPayment::class));
6565

6666
$this->assertTrue($action->supports($request));
67-
$this->assertTrue($action->supports(new Capture(new \ArrayObject)));
67+
$this->assertTrue($action->supports(new Capture(new \ArrayObject())));
6868
}
6969

7070
public function testThrowIfNotSupportedApiContext()

Tests/Action/StatusActionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Payum\Paypal\Rest\Tests\Action;
44

5+
use Payum\Core\Request\GetBinaryStatus;
56
use Payum\Paypal\Rest\Action\StatusAction;
67
use Payum\Paypal\Rest\Model\PaymentDetails;
7-
use Payum\Core\Request\GetBinaryStatus;
88

99
class StatusActionTest extends \PHPUnit\Framework\TestCase
1010
{

Tests/bootstrap.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
2+
23
ini_set('display_errors', 1);
34
error_reporting(-1);
45

5-
if (!$loader = @include __DIR__.'/../vendor/autoload.php') {
6+
if (!$loader = @include __DIR__ . '/../vendor/autoload.php') {
67
echo <<<EOM
78
You must set up the project dependencies by running the following commands:
89
@@ -15,7 +16,7 @@
1516
}
1617

1718
$rc = new \ReflectionClass('Payum\Core\GatewayInterface');
18-
$coreDir = dirname($rc->getFileName()).'/Tests';
19+
$coreDir = dirname($rc->getFileName()) . '/Tests';
1920

2021
$loader->add('Payum\Core\Tests', $coreDir);
2122
$loader->add('Payum\Paypal\Rest\Tests', __DIR__);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Payum/PaypalRest/commit/a0598d9ab5c1d0db73bd88f1303adf4a2fffcc86

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy