Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2024-03-18 17:48:57 +00:00
parent 1bea8f8d5c
commit 8fa00e2ef6
57 changed files with 148 additions and 131 deletions

View File

@@ -2,9 +2,9 @@
namespace App\Console\Commands;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Console\Command;
use GuzzleHttp\Client;
use Illuminate\Support\Facades\App;
class CloudflarePurgeCommand extends Command
@@ -25,10 +25,10 @@ class CloudflarePurgeCommand extends Command
$response = $client->request(
'POST',
"https://api.cloudflare.com/client/v4/zones/" . $cf_zone_id . "/purge_cache",
'https://api.cloudflare.com/client/v4/zones/'.$cf_zone_id.'/purge_cache',
[
'headers' => [
'Authorization' => 'Bearer ' . $cf_auth_bearer,
'Authorization' => 'Bearer '.$cf_auth_bearer,
'Content-Type' => 'application/json',
],
'json' => [

View File

@@ -14,7 +14,7 @@ class UserCreateCommand extends Command
public function handle(): void
{
if (config('app.env') === 'production') {
if (!$this->confirm('You are in production mode. Are you sure you want to continue?')) {
if (! $this->confirm('You are in production mode. Are you sure you want to continue?')) {
return;
}
}
@@ -27,14 +27,15 @@ class UserCreateCommand extends Command
$password_confirmation = $this->secret('Confirm password');
$admin = $this->confirm('Is this user an admin?');
$this->info('Name: ' . $name);
$this->info('Email: ' . $email);
$this->info('Password: ' . $password);
$this->info('Password confirmation: ' . $password_confirmation);
$this->info('Admin: ' . $admin);
$this->info('Name: '.$name);
$this->info('Email: '.$email);
$this->info('Password: '.$password);
$this->info('Password confirmation: '.$password_confirmation);
$this->info('Admin: '.$admin);
if ($password !== $password_confirmation) {
$this->error('Passwords do not match!');
return;
}
@@ -45,6 +46,6 @@ class UserCreateCommand extends Command
'admin' => $admin,
]);
$this->info('User with name ' . $user->name . 'created successfully.');
$this->info('User with name '.$user->name.'created successfully.');
}
}