From e541d6a02aeb4f602972b0faebe2450c54a61cae Mon Sep 17 00:00:00 2001 From: Sammyjo20 Date: Sun, 17 Sep 2023 11:20:48 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=84=20Code=20Style=20Fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Console/Commands/ListCommand.php | 13 +++++++------ src/SaloonServiceProvider.php | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Console/Commands/ListCommand.php b/src/Console/Commands/ListCommand.php index fc4e1c5..a3e19c1 100644 --- a/src/Console/Commands/ListCommand.php +++ b/src/Console/Commands/ListCommand.php @@ -4,8 +4,8 @@ namespace Saloon\Laravel\Console\Commands; -use Illuminate\Console\Command; use Illuminate\Support\Str; +use Illuminate\Console\Command; class ListCommand extends Command { @@ -32,7 +32,8 @@ public function handle() { $this->newLine(); - $this->components->twoColumnDetail('General', + $this->components->twoColumnDetail( + 'General', 'Integrations: ' . count($this->getIntegrations()) . '' ); @@ -176,13 +177,13 @@ protected function getIntegrationRequestEndpoint(string $request): string foreach ($matchSegments as $key => $matchSegment) { if (Str::contains($matchSegment, '$this->')) { $matchSegments[$key] = '{' . Str::before( - Str::after(str_replace(' ', '', $matchSegment), '>'), - ".'" - ) . '}'; + Str::after(str_replace(' ', '', $matchSegment), '>'), + '.\'' + ) . '}'; } } - return str_replace("'", "", implode('/', $matchSegments)); + return str_replace('\'', '', implode('/', $matchSegments)); } protected function getIntegrationConnectorBaseUrl(string $connector): string diff --git a/src/SaloonServiceProvider.php b/src/SaloonServiceProvider.php index a43c4da..4c81888 100644 --- a/src/SaloonServiceProvider.php +++ b/src/SaloonServiceProvider.php @@ -8,9 +8,9 @@ use Saloon\Enums\PipeOrder; use Saloon\Contracts\Sender; use Illuminate\Support\ServiceProvider; -use Saloon\Laravel\Console\Commands\ListCommand; use Saloon\Laravel\Http\Faking\MockClient; use Saloon\Laravel\Console\Commands\MakePlugin; +use Saloon\Laravel\Console\Commands\ListCommand; use Saloon\Laravel\Console\Commands\MakeRequest; use Saloon\Laravel\Console\Commands\MakeResponse; use Saloon\Laravel\Console\Commands\MakeConnector;