Skip to content

Commit

Permalink
🪄 Code Style Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammyjo20 authored and github-actions[bot] committed Sep 17, 2023
1 parent 23761a3 commit 82ed968
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/Console/Commands/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -32,7 +32,8 @@ public function handle()
{
$this->newLine();

$this->components->twoColumnDetail('<fg=green;options=bold>General</>',
$this->components->twoColumnDetail(
'<fg=green;options=bold>General</>',
'<fg=white>Integrations: ' . count($this->getIntegrations()) . '</>'
);

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/SaloonServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\Helpers\Config;
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;
Expand Down

0 comments on commit 82ed968

Please sign in to comment.