@@ -12,8 +12,7 @@ discard block |
||
12 | 12 | * @param array $options |
13 | 13 | * @param OutputInterface $output |
14 | 14 | */ |
15 | - public static function verify(array $options, OutputInterface $output) |
|
16 | - { |
|
15 | + public static function verify(array $options, OutputInterface $output) { |
|
17 | 16 | $hostPlugin = `vagrant plugin list | grep vagrant-hostsupdater`; |
18 | 17 | if (is_null($hostPlugin)) { |
19 | 18 | self::editHostsInstructions($options, $output); |
@@ -26,8 +25,7 @@ discard block |
||
26 | 25 | * @param array $options |
27 | 26 | * @param OutputInterface $output |
28 | 27 | */ |
29 | - protected static function editHostsInstructions(array $options, OutputInterface $output) |
|
30 | - { |
|
28 | + protected static function editHostsInstructions(array $options, OutputInterface $output) { |
|
31 | 29 | $output->writeln('<comment>NOTE: You will need to add the following to your hosts file!</comment>'); |
32 | 30 | $comment = $options['vagrantfile']['vm']['network']['private_network'] . |
33 | 31 | ' ' . $options['magestead']['apps']['mba_12345']['base_url']; |
@@ -13,8 +13,7 @@ |
||
13 | 13 | * @param $output |
14 | 14 | * @return Magento2Project|MagentoProject |
15 | 15 | */ |
16 | - public static function create(array $options, array $config, $projectPath, $output) |
|
17 | - { |
|
16 | + public static function create(array $options, array $config, $projectPath, $output) { |
|
18 | 17 | switch ($options['app']) { |
19 | 18 | case "magento": |
20 | 19 | return new MagentoProject($options, $config, $projectPath, $output); |
@@ -14,8 +14,7 @@ discard block |
||
14 | 14 | { |
15 | 15 | protected $_projectPath; |
16 | 16 | |
17 | - protected function configure() |
|
18 | - { |
|
17 | + protected function configure() { |
|
19 | 18 | $this->_projectPath = getcwd(); |
20 | 19 | |
21 | 20 | $this->setName("phpspec"); |
@@ -28,8 +27,7 @@ discard block |
||
28 | 27 | * @param OutputInterface $output |
29 | 28 | * @return mixed |
30 | 29 | */ |
31 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
32 | - { |
|
30 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
33 | 31 | $option = $input->getArgument('option'); |
34 | 32 | |
35 | 33 | $command = $this->getCommand(new Config($output), $option); |
@@ -47,8 +45,7 @@ discard block |
||
47 | 45 | * @param $option |
48 | 46 | * @return bool|string |
49 | 47 | */ |
50 | - protected function getCommand(Config $config, $option) |
|
51 | - { |
|
48 | + protected function getCommand(Config $config, $option) { |
|
52 | 49 | $type = $config->type; |
53 | 50 | switch ($type) { |
54 | 51 | case 'magento': |
@@ -16,8 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | protected $_projectPath; |
18 | 18 | |
19 | - protected function configure() |
|
20 | - { |
|
19 | + protected function configure() { |
|
21 | 20 | $this->_projectPath = getcwd(); |
22 | 21 | |
23 | 22 | $this->setName("vm:destroy"); |
@@ -29,8 +28,7 @@ discard block |
||
29 | 28 | * @param OutputInterface $output |
30 | 29 | * @return ProcessCommand |
31 | 30 | */ |
32 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
33 | - { |
|
31 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
34 | 32 | $output->writeln('<info>Destroying your development environment</info>'); |
35 | 33 | return new ProcessCommand('vagrant destroy --force', $this->_projectPath, $output); |
36 | 34 | } |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | protected $_projectPath; |
15 | 15 | |
16 | - protected function configure() |
|
17 | - { |
|
16 | + protected function configure() { |
|
18 | 17 | $this->_projectPath = getcwd(); |
19 | 18 | |
20 | 19 | $this->setName("vm:status"); |
@@ -26,8 +25,7 @@ discard block |
||
26 | 25 | * @param OutputInterface $output |
27 | 26 | * @return ProcessCommand |
28 | 27 | */ |
29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
30 | - { |
|
28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
31 | 29 | $output->writeln('<info>Getting machine status</info>'); |
32 | 30 | return new ProcessCommand('vagrant status', $this->_projectPath, $output); |
33 | 31 | } |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | protected $_projectPath; |
15 | 15 | |
16 | - protected function configure() |
|
17 | - { |
|
16 | + protected function configure() { |
|
18 | 17 | $this->_projectPath = getcwd(); |
19 | 18 | |
20 | 19 | $this->setName("vm:resume"); |
@@ -26,8 +25,7 @@ discard block |
||
26 | 25 | * @param OutputInterface $output |
27 | 26 | * @return ProcessCommand |
28 | 27 | */ |
29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
30 | - { |
|
28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
31 | 29 | $output->writeln('<info>Resuming your development environment</info>'); |
32 | 30 | return new ProcessCommand('vagrant resume', $this->_projectPath, $output); |
33 | 31 | } |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | protected $_projectPath; |
15 | 15 | |
16 | - protected function configure() |
|
17 | - { |
|
16 | + protected function configure() { |
|
18 | 17 | $this->_projectPath = getcwd(); |
19 | 18 | |
20 | 19 | $this->setName("vm:suspend"); |
@@ -26,8 +25,7 @@ discard block |
||
26 | 25 | * @param OutputInterface $output |
27 | 26 | * @return ProcessCommand |
28 | 27 | */ |
29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
30 | - { |
|
28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
31 | 29 | $output->writeln('<info>Suspending your development machine</info>'); |
32 | 30 | return new ProcessCommand('vagrant suspend', $this->_projectPath, $output); |
33 | 31 | } |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | protected $_projectPath; |
15 | 15 | |
16 | - protected function configure() |
|
17 | - { |
|
16 | + protected function configure() { |
|
18 | 17 | $this->_projectPath = getcwd(); |
19 | 18 | |
20 | 19 | $this->setName("vm:up"); |
@@ -26,8 +25,7 @@ discard block |
||
26 | 25 | * @param OutputInterface $output |
27 | 26 | * @return ProcessCommand |
28 | 27 | */ |
29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
30 | - { |
|
28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
31 | 29 | $output->writeln('<info>Spinning up your development machine</info>'); |
32 | 30 | return new ProcessCommand('vagrant up', $this->_projectPath, $output); |
33 | 31 | } |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | protected $_projectPath; |
15 | 15 | |
16 | - protected function configure() |
|
17 | - { |
|
16 | + protected function configure() { |
|
18 | 17 | $this->_projectPath = getcwd(); |
19 | 18 | |
20 | 19 | $this->setName("vm:halt"); |
@@ -26,8 +25,7 @@ discard block |
||
26 | 25 | * @param OutputInterface $output |
27 | 26 | * @return ProcessCommand |
28 | 27 | */ |
29 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
30 | - { |
|
28 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
31 | 29 | $output->writeln('<info>Halting your development environment</info>'); |
32 | 30 | return new ProcessCommand('vagrant halt', $this->_projectPath, $output); |
33 | 31 | } |