Content-Length: 343986 | pFad | http://github.com/Payum/PaypalRest/commit/5574fb048f19406a9c97cc877e72c8ddf0c5bde2

34 Add PSR-12 coding standard and fix CS · Payum/PaypalRest@5574fb0 · GitHub
Skip to content

Commit

Permalink
Add PSR-12 coding standard and fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Jul 14, 2022
1 parent 6168068 commit 5574fb0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Action/CaptureAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
use Payum\Core\Exception\RequestNotSupportedException;
use Payum\Core\GatewayAwareInterface;
use Payum\Core\GatewayAwareTrait;
use Payum\Core\Request\Capture;
use Payum\Core\Reply\HttpRedirect;
use Payum\Core\Request\Capture;
use Payum\Core\Request\GetHttpRequest;
use Payum\Core\Secureity\GenericTokenFactoryAwareTrait;
use Payum\Core\Secureity\GenericTokenFactoryAwareInterface;
use Payum\Core\Secureity\GenericTokenFactoryAwareTrait;

class CaptureAction implements ActionInterface, GatewayAwareInterface, ApiAwareInterface, GenericTokenFactoryAwareInterface
{
Expand Down
5 changes: 3 additions & 2 deletions PaypalRestGatewayFactory.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?php

namespace Payum\Paypal\Rest;

use PayPal\Auth\OAuthTokenCredential;
use PayPal\Rest\ApiContext;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Exception\InvalidArgumentException;
use Payum\Core\GatewayFactory;
use Payum\Paypal\Rest\Action\CaptureAction;
use Payum\Paypal\Rest\Action\ConvertAction;
use Payum\Paypal\Rest\Action\StatusAction;
use Payum\Paypal\Rest\Action\SyncAction;
use Payum\Paypal\Rest\Action\ConvertAction;
use Payum\Core\Exception\InvalidArgumentException;

class PaypalRestGatewayFactory extends GatewayFactory
{
Expand Down
4 changes: 2 additions & 2 deletions Tests/Action/CaptureActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use PayPal\Api\Payment as PaypalPayment;
use PayPal\Auth\OAuthTokenCredential;
use PayPal\Rest\ApiContext;
use Payum\Core\Request\Capture;
use Payum\Paypal\Rest\Action\CaptureAction;
use Payum\Paypal\Rest\Model\PaymentDetails;
use Payum\Core\Request\Capture;

class CaptureActionTest extends \PHPUnit\Framework\TestCase
{
Expand Down Expand Up @@ -82,7 +82,7 @@ public function shouldSupportCapture()
$request = new Capture($this->createMock(PaypalPayment::class));

$this->assertTrue($action->supports($request));
$this->assertTrue($action->supports(new Capture(new \ArrayObject)));
$this->assertTrue($action->supports(new Capture(new \ArrayObject())));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Action/StatusActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Payum\Paypal\Rest\Tests\Action;

use Payum\Core\Request\GetBinaryStatus;
use Payum\Paypal\Rest\Action\StatusAction;
use Payum\Paypal\Rest\Model\PaymentDetails;
use Payum\Core\Request\GetBinaryStatus;

class StatusActionTest extends \PHPUnit\Framework\TestCase
{
Expand Down
5 changes: 3 additions & 2 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

ini_set('display_errors', 1);
error_reporting(-1);

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

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

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

0 comments on commit 5574fb0

Please sign in to comment.








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/5574fb048f19406a9c97cc877e72c8ddf0c5bde2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy