Skip to content

Commit

Permalink
Apply fixes from StyleCI (#583)
Browse files Browse the repository at this point in the history
Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
srmklive and StyleCIBot authored Sep 13, 2023
1 parent 2d99c7f commit 9dc9454
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 55 deletions.
2 changes: 0 additions & 2 deletions src/Traits/PayPalAPI/Orders/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Traits\PayPalAPI\Orders;

use Carbon\Carbon;
use Illuminate\Support\Str;
use Throwable;

trait Helpers
Expand Down
1 change: 1 addition & 0 deletions src/Traits/PayPalExperienceContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ trait PayPalExperienceContext

/**
* Set Brand Name when setting experience context for payment.
*
* @param string $brand
*
* @return \Srmklive\PayPal\Services\PayPal
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 9dc9454

Please sign in to comment.