Skip to content

Commit

Permalink
Apply fixes from StyleCI (#587)
Browse files Browse the repository at this point in the history
Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
srmklive and StyleCIBot authored Sep 30, 2023
1 parent cb67633 commit 43c90ca
Show file tree
Hide file tree
Showing 68 changed files with 54 additions and 160 deletions.
3 changes: 1 addition & 2 deletions src/Services/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Srmklive\PayPal\Services;

use GuzzleHttp\Utils;
use Srmklive\PayPal\Traits\JsonEncodeDecodeSelector;

class Str extends \Illuminate\Support\Str
Expand All @@ -27,7 +26,7 @@ public static function isJson($value): bool
}

try {
(new Str)->jsonDecodeFunction()($value, true, 512, 4194304);
(new Str())->jsonDecodeFunction()($value, true, 512, 4194304);
} catch (\Exception $jsonException) {
return false;
}
Expand Down
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/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
1 change: 0 additions & 1 deletion src/Traits/PayPalHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\Exception\ClientException as HttpClientException;
use GuzzleHttp\Utils;
use Psr\Http\Message\StreamInterface;
use RuntimeException;
use Srmklive\PayPal\Services\Str;
Expand Down
1 change: 0 additions & 1 deletion tests/MockClientClasses.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use GuzzleHttp\HandlerStack as HttpHandlerStack;
use GuzzleHttp\Psr7\Response as HttpResponse;
use GuzzleHttp\Psr7\Stream as HttpStream;
use GuzzleHttp\Utils;
use Psr\Http\Message\ResponseInterface;
use Srmklive\PayPal\Services\PayPal as PayPalClient;
use Srmklive\PayPal\Traits\JsonEncodeDecodeSelector;
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/BillingPlans.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait BillingPlans
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/CatalogProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait CatalogProducts
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/Disputes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait Disputes
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/DisputesActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait DisputesActions
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait Identity
{
private function mockCreateMerchantApplicationParams(): array
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/Invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait Invoices
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/InvoicesSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait InvoicesSearch
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/InvoicesTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait InvoicesTemplates
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/Orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait Orders
{
/*
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/PartnerReferrals.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait PartnerReferrals
{
private function mockCreatePartnerReferralParams(): array
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/PaymentAuthorizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait PaymentAuthorizations
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/PaymentCaptures.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait PaymentCaptures
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/PaymentExperienceWebProfiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait PaymentExperienceWebProfiles
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/PaymentMethodsTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait PaymentMethodsTokens
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/Payouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait Payouts
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/ReferencedPayouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait ReferencedPayouts
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/Subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait Subscriptions
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/Trackers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait Trackers
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Requests/WebHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Requests;

use GuzzleHttp\Utils;

trait WebHooks
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Responses/BillingPlans.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait BillingPlans
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Responses/CatalogProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait CatalogProducts
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Responses/Disputes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait Disputes
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Responses/DisputesActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait DisputesActions
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Responses/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait Identity
{
private function mockShowProfileInfoResponse(): array
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Responses/Invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait Invoices
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Responses/InvoicesSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait InvoicesSearch
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Mocks/Responses/InvoicesTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Srmklive\PayPal\Tests\Mocks\Responses;

use GuzzleHttp\Utils;

trait InvoicesTemplates
{
/**
Expand Down
Loading

0 comments on commit 43c90ca

Please sign in to comment.