Skip to content

Commit 709e743

Browse files
committed
Add void return type to all methods
1 parent f7325d3 commit 709e743

File tree

191 files changed

+1037
-1037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+1037
-1037
lines changed

Action/AuthorizePaymentAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AuthorizePaymentAction implements ActionInterface, GatewayAwareInterface
1818
/**
1919
* @param Authorize $request
2020
*/
21-
public function execute($request)
21+
public function execute($request): void
2222
{
2323
RequestNotSupportedException::assertSupports($this, $request);
2424

Action/CapturePaymentAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CapturePaymentAction implements ActionInterface, GatewayAwareInterface
1818
/**
1919
* @param Capture $request
2020
*/
21-
public function execute($request)
21+
public function execute($request): void
2222
{
2323
RequestNotSupportedException::assertSupports($this, $request);
2424

Action/ExecuteSameRequestWithModelDetailsAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ExecuteSameRequestWithModelDetailsAction implements ActionInterface, Gatew
1818
/**
1919
* @param ModelAggregateInterface|ModelAwareInterface $request
2020
*/
21-
public function execute($request)
21+
public function execute($request): void
2222
{
2323
RequestNotSupportedException::assertSupports($this, $request);
2424

Action/GetCurrencyAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GetCurrencyAction implements ActionInterface
1111
/**
1212
* @param GetCurrency $request
1313
*/
14-
public function execute($request)
14+
public function execute($request): void
1515
{
1616
RequestNotSupportedException::assertSupports($this, $request);
1717

Action/GetTokenAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(StorageInterface $tokenStorage)
1919
/**
2020
* @param GetToken $request
2121
*/
22-
public function execute($request)
22+
public function execute($request): void
2323
{
2424
RequestNotSupportedException::assertSupports($this, $request);
2525

Action/PayoutPayoutAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PayoutPayoutAction implements ActionInterface, GatewayAwareInterface
1818
/**
1919
* @param Payout $request
2020
*/
21-
public function execute($request)
21+
public function execute($request): void
2222
{
2323
RequestNotSupportedException::assertSupports($this, $request);
2424

ApiAwareTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait ApiAwareTrait
1515

1616
protected string|object|null $apiClass;
1717

18-
public function setApi($api)
18+
public function setApi($api): void
1919
{
2020
if (empty($this->apiClass)) {
2121
throw new LogicException('You must configure apiClass in __constructor method of the class the trait is applied to.');

Bridge/Doctrine/Storage/DoctrineStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ protected function doFind($id)
3434
return $this->objectManager->find($this->modelClass, $id);
3535
}
3636

37-
protected function doUpdateModel($model)
37+
protected function doUpdateModel($model): void
3838
{
3939
$this->objectManager->persist($model);
4040
$this->objectManager->flush();
4141
}
4242

43-
protected function doDeleteModel($model)
43+
protected function doDeleteModel($model): void
4444
{
4545
$this->objectManager->remove($model);
4646
$this->objectManager->flush();

Bridge/Laminas/Storage/TableGatewayStorage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct($tableGateway, $modelClass, $idField = 'id')
7878
$this->idField = $idField;
7979
}
8080

81-
public function findBy(array $criteria)
81+
public function findBy(array $criteria): void
8282
{
8383
throw new LogicException('Method is not supported by the storage.');
8484
}
@@ -90,7 +90,7 @@ protected function doFind($id)
9090
])->current();
9191
}
9292

93-
protected function doUpdateModel($model)
93+
protected function doUpdateModel($model): void
9494
{
9595
if ($id = $this->getModelId($model)) {
9696
$this->tableGateway->update(
@@ -104,7 +104,7 @@ protected function doUpdateModel($model)
104104
}
105105
}
106106

107-
protected function doDeleteModel($model)
107+
protected function doDeleteModel($model): void
108108
{
109109
$this->tableGateway->delete([
110110
"{$this->idField} = ?" => $this->getModelId($model),

Bridge/PlainPhp/Action/GetHttpRequestAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GetHttpRequestAction implements ActionInterface
1111
/**
1212
* @param GetHttpRequest $request
1313
*/
14-
public function execute($request)
14+
public function execute($request): void
1515
{
1616
RequestNotSupportedException::assertSupports($this, $request);
1717

0 commit comments

Comments
 (0)