mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -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' => [
|
||||
|
||||
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user