mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
0e33bc7d99
commit
83676deddb
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user