From cd89066cb9f2772a7626b8c958568e96ae7eafb4 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sat, 4 May 2019 00:16:37 +0300 Subject: minor cs --- src/bin/roadrunner | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/bin/roadrunner b/src/bin/roadrunner index cf4317d7..95821605 100755 --- a/src/bin/roadrunner +++ b/src/bin/roadrunner @@ -122,7 +122,7 @@ class RoadRunnerCLIHelper if (is_file($finalFile)) { $output->writeln('RoadRunner binary file already exists!'); $helper = $this->getHelper('question'); - $question = new ConfirmationQuestion('Do you want overwrite it? [Y/n]'); + $question = new ConfirmationQuestion('Do you want overwrite it? [Y/n] '); if (!$helper->ask($input, $output, $question)) { return; @@ -165,7 +165,9 @@ class RoadRunnerCLIHelper $zipArchive = new ZipArchive(); $zipArchive->open($zipFileName); - $fileStreamFromZip = $zipArchive->getStream('roadrunner-' . RoadRunnerCLIHelper::getVersion() . '-' . RoadRunnerCLIHelper::getOSType() . '-amd64/rr'); + $fileStreamFromZip = $zipArchive->getStream( + 'roadrunner-' . RoadRunnerCLIHelper::getVersion() . '-' . RoadRunnerCLIHelper::getOSType() . '-amd64/rr' + ); $finalFileResource = fopen($finalFile, 'w'); if (!$fileStreamFromZip) { @@ -193,14 +195,17 @@ class RoadRunnerCLIHelper if (is_file($input->getOption('location') . DIRECTORY_SEPARATOR . '.rr.yaml')) { $output->writeln('Config file already exists!'); $helper = $this->getHelper('question'); - $question = new ConfirmationQuestion('Do you want overwrite it? [Y/n]'); + $question = new ConfirmationQuestion('Do you want overwrite it? [Y/n] '); if (!$helper->ask($input, $output, $question)) { return; } } - copy(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '.rr.yaml', - $input->getOption('location') . DIRECTORY_SEPARATOR . '.rr.yaml'); + + copy( + __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '.rr.yaml', + $input->getOption('location') . DIRECTORY_SEPARATOR . '.rr.yaml' + ); $output->writeln('Config file created!'); }) ->getApplication() -- cgit v1.2.3