Skip to content

Instantly share code, notes, and snippets.

@svpernova09
Created July 5, 2015 17:43
Show Gist options
  • Save svpernova09/f6d7a12fc75ce3073a48 to your computer and use it in GitHub Desktop.
Save svpernova09/f6d7a12fc75ce3073a48 to your computer and use it in GitHub Desktop.
Style question
public function execute(InputInterface $input, OutputInterface $output)
{
copy(__DIR__.'/stubs/LocalizedVagrantfile', $this->basePath.'/Vagrantfile');
if (!file_exists($this->basePath.'/Homestead.yaml')) {
copy( __DIR__ . '/stubs/Homestead.yaml', $this->basePath . '/Homestead.yaml' );
}
else
{
$this->error('Homestead.yaml exists, please delete this file before continuing.');
}
public function execute(InputInterface $input, OutputInterface $output)
{
copy(__DIR__.'/stubs/LocalizedVagrantfile', $this->basePath.'/Vagrantfile');
if (file_exists($this->basePath.'/Homestead.yaml')) {
$this->error('Homestead.yaml exists, please delete this file before continuing.');
}
if (!file_exists($this->basePath.'/Homestead.yaml')) {
copy( __DIR__ . '/stubs/Homestead.yaml', $this->basePath . '/Homestead.yaml' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment