Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
Shift
2023-01-07 20:32:31 +00:00
parent f9ae387337
commit 87acc30a0b
235 changed files with 14454 additions and 14841 deletions

View File

@@ -46,12 +46,12 @@ class InstallDB extends Command
try {
if ($this->confirm('Do you want to migrate tables now?')) {
$env = base_path().DIRECTORY_SEPARATOR.'.env';
if (!is_file($env)) {
if (! is_file($env)) {
throw new \Exception("Please run 'php artisan install:faveo'");
}
$dummy_confirm = $this->confirm('Would you like to install dummy data in database to test before going live?');
$this->call('key:generate', ['--force' => true]);
if (!$dummy_confirm) {
if (! $dummy_confirm) {
$this->call('install:migrate');
$this->call('install:seed');
} else {
@@ -62,8 +62,8 @@ class InstallDB extends Command
$data = [
[
'user_name' => 'demo_admin',
'email' => '',
'password' => 'demopass',
'email' => '',
'password' => 'demopass',
],
];
$this->table($headers, $data);