Apply fixes from StyleCI

This commit is contained in:
Marcel Pociot authored and StyleCI Bot committed 2020-06-17 10:35:07 +00:00
1 parent 0e33bc7d99
commit 83676deddb
56 files changed
+189 -316

No files matched your search

+3 -2
View File
@@ -15,17 +15,18 @@ class PublishCommand extends Command
$configFile = implode(DIRECTORY_SEPARATOR, [
$_SERVER['HOME'],
'.expose',
'config.php'
'config.php',
]);
if (! $this->option('force') && file_exists($configFile)) {
$this->error('Expose configuration file already exists at '.$configFile);
return;
}
@mkdir(dirname($configFile), 0755, true);
file_put_contents($configFile, file_get_contents(base_path('config/expose.php')));
$this->info('Published expose configuration file to: ' . $configFile);
$this->info('Published expose configuration file to: '.$configFile);
}
}