Content-Length: 377815 | pFad | http://github.com/Payum/PaypalRest/commit/ada89c970ad63aa700ee7f23c413d2d77540776e

41 Add PHPUnit CS rule · Payum/PaypalRest@ada89c9 · GitHub
Skip to content

Commit ada89c9

Browse files
committed
Add PHPUnit CS rule
1 parent 95d51b8 commit ada89c9

File tree

3 files changed

+3
-20
lines changed

3 files changed

+3
-20
lines changed

Action/CaptureAction.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public function __construct()
3535
$this->apiClass = ApiContext::class;
3636
}
3737

38-
/**
39-
* {@inheritDoc}
40-
*/
4138
public function execute($request)
4239
{
4340
/** @var $request Capture */
@@ -112,13 +109,9 @@ public function execute($request)
112109
}
113110
}
114111

115-
/**
116-
* {@inheritDoc}
117-
*/
118112
public function supports($request)
119113
{
120-
return
121-
$request instanceof Capture &&
114+
return $request instanceof Capture &&
122115
($request->getModel() instanceof PaypalPayment || $request->getModel() instanceof \ArrayAccess)
123116
;
124117
}
@@ -148,7 +141,7 @@ private function captureArrayAccess(\ArrayAccess $model, Capture $request): Payp
148141

149142
$cancelUri = HttpUri::createFromString($returnUrl);
150143
$redirectUrls->setReturnUrl($returnUrl)
151-
->setCancelUrl((string) UriModifier::mergeQuery($cancelUri, 'cancelled=1'));
144+
->setCancelUrl((string) UriModifier::mergeQuery($cancelUri, 'cancelled=1'));
152145

153146
$payment = new PaypalPayment();
154147
$payment->setIntent('sale')

Action/ConvertAction.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class ConvertAction implements ActionInterface, GatewayAwareInterface
1717
{
1818
use GatewayAwareTrait;
1919

20-
/**
21-
* {@inheritDoc}
22-
*/
2320
public function execute($request)
2421
{
2522
RequestNotSupportedException::assertSupports($this, $request);
@@ -42,13 +39,9 @@ public function execute($request)
4239
$request->setResult((array) $details);
4340
}
4441

45-
/**
46-
* {@inheritDoc}
47-
*/
4842
public function supports($request)
4943
{
50-
return
51-
$request instanceof Convert &&
44+
return $request instanceof Convert &&
5245
$request->getSource() instanceof PaymentInterface &&
5346
$request->getTo() == 'array'
5447
;

PaypalRestGatewayFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
class PaypalRestGatewayFactory extends GatewayFactory
1616
{
17-
/**
18-
* {@inheritDoc}
19-
*/
2017
protected function populateConfig(ArrayObject $config)
2118
{
2219
if (false == class_exists(ApiContext::class)) {

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/ada89c970ad63aa700ee7f23c413d2d77540776e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy