mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 05:28:18 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
ce9a732317
commit
ba5d865bcf
@ -15,8 +15,8 @@ use CachetHQ\Cachet\Models\User;
|
||||
use Dotenv\Dotenv;
|
||||
use Dotenv\Exception\InvalidPathException;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
/**
|
||||
* This is the install command class.
|
||||
@ -315,7 +315,7 @@ class InstallCommand extends Command
|
||||
|
||||
/**
|
||||
* Configure Cachet.
|
||||
*
|
||||
*
|
||||
* @param array $config
|
||||
*
|
||||
* @return void
|
||||
@ -350,17 +350,17 @@ class InstallCommand extends Command
|
||||
|
||||
// We need to refresh the config to get access to the newly connected database.
|
||||
$this->getFreshConfiguration();
|
||||
|
||||
|
||||
// Now we need to install the application.
|
||||
// $this->call('cachet:install');
|
||||
|
||||
|
||||
$user = [
|
||||
'username' => $this->ask('Please enter your username'),
|
||||
'email' => $this->ask('Please enter your email'),
|
||||
'password' => $this->secret('Please enter your password'),
|
||||
'level' => User::LEVEL_ADMIN,
|
||||
];
|
||||
|
||||
|
||||
User::create($user);
|
||||
}
|
||||
|
||||
@ -412,7 +412,7 @@ class InstallCommand extends Command
|
||||
protected function getFreshConfiguration()
|
||||
{
|
||||
$app = require $this->laravel->bootstrapPath().'/app.php';
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user