Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Sep 30, 2023
1 parent 27e8f80 commit bbe471c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion src/Traits/PayPalAPI/Invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,4 @@ protected function getInvoiceMessagePayload(string $subject, string $note, array

return collect($data)->filter()->toArray();
}
}
}
2 changes: 1 addition & 1 deletion src/Traits/PayPalAPI/Orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function confirmOrder(string $order_id, array $data)
}

/**
>>>>>>> v3.0
* >>>>>>> v3.0
* Authorizes payment for an order.
*
* @param string $order_id
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/PayPalAPI/ReferencedPayouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ trait ReferencedPayouts
/**
* Create a referenced Batch Payout.
*
* @param array $data
* @param array $data
*
* @throws \Throwable
*
Expand Down
106 changes: 53 additions & 53 deletions tests/Mocks/Responses/Orders.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait Orders
{
/**
* @return array
*/
public function mockCreateOrdersResponse(): array
{
<?php

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait Orders
{
/**
* @return array
*/
public function mockCreateOrdersResponse(): array
{
return Utils::jsonDecode('{
"id": "5O190127TN364715T",
"status": "CREATED",
Expand All @@ -36,22 +36,22 @@ public function mockCreateOrdersResponse(): array
"method": "POST"
}
]
}', true);
}

/**
* @return empty
*/
public function mockUpdateOrdersResponse()
{
return '';
}

/**
* @return array
*/
public function mockOrderDetailsResponse(): array
{
}', true);
}

/**
* @return empty
*/
public function mockUpdateOrdersResponse()
{
return '';
}

/**
* @return array
*/
public function mockOrderDetailsResponse(): array
{
return Utils::jsonDecode('{
"id": "5O190127TN364715T",
"status": "PAYER_ACTION_REQUIRED",
Expand Down Expand Up @@ -87,14 +87,14 @@ public function mockOrderDetailsResponse(): array
"method": "GET"
}
]
}', true);
}

/**
* @return array
*/
public function mockOrderPaymentAuthorizedResponse(): array
{
}', true);
}

/**
* @return array
*/
public function mockOrderPaymentAuthorizedResponse(): array
{
return Utils::jsonDecode('{
"id": "5O190127TN364715T",
"status": "COMPLETED",
Expand Down Expand Up @@ -172,14 +172,14 @@ public function mockOrderPaymentAuthorizedResponse(): array
"method": "GET"
}
]
}', true);
}

/**
* @return array
*/
public function mockOrderPaymentCapturedResponse(): array
{
}', true);
}

/**
* @return array
*/
public function mockOrderPaymentCapturedResponse(): array
{
return Utils::jsonDecode('{
"id": "5O190127TN364715T",
"status": "COMPLETED",
Expand Down Expand Up @@ -262,11 +262,11 @@ public function mockOrderPaymentCapturedResponse(): array
"method": "GET"
}
]
}', true);
}

private function mockConfirmOrderResponse()
{
}', true);
}

private function mockConfirmOrderResponse()
{
return Utils::jsonDecode('{
"id": "5O190127TN364715T",
"status": "PAYER_ACTION_REQUIRED",
Expand Down Expand Up @@ -298,6 +298,6 @@ private function mockConfirmOrderResponse()
"method": "GET"
}
]
}', true);
}
}
}', true);
}
}

0 comments on commit bbe471c

Please sign in to comment.