@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param Config $config |
37 | - * @return bool|string |
|
37 | + * @return string|false |
|
38 | 38 | */ |
39 | 39 | protected function getCommand(Config $config) |
40 | 40 | { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param Config $config |
37 | - * @return bool|string |
|
37 | + * @return string|false |
|
38 | 38 | */ |
39 | 39 | protected function getCommand(Config $config) |
40 | 40 | { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param Config $config |
37 | - * @return bool|string |
|
37 | + * @return string|false |
|
38 | 38 | */ |
39 | 39 | protected function getCommand(Config $config) |
40 | 40 | { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -9,8 +9,8 @@ |
||
9 | 9 | /** |
10 | 10 | * @param array $options |
11 | 11 | * @param array $config |
12 | - * @param $projectPath |
|
13 | - * @param $output |
|
12 | + * @param string $projectPath |
|
13 | + * @param \Symfony\Component\Console\Output\OutputInterface $output |
|
14 | 14 | * @return Magento2Project|MagentoProject |
15 | 15 | */ |
16 | 16 | public static function create(array $options, array $config, $projectPath, $output) |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public static function verify(array $options, OutputInterface $output) |
16 | 16 | { |
17 | - $hostPlugin = `vagrant plugin list | grep vagrant-hostsupdater`; |
|
17 | + $hostPlugin=`vagrant plugin list | grep vagrant-hostsupdater`; |
|
18 | 18 | if (is_null($hostPlugin)) { |
19 | 19 | self::editHostsInstructions($options, $output); |
20 | 20 | |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | protected static function editHostsInstructions(array $options, OutputInterface $output) |
30 | 30 | { |
31 | 31 | $output->writeln('<comment>NOTE: You will need to add the following to your hosts file!</comment>'); |
32 | - $comment = $options['vagrantfile']['vm']['network']['private_network'] . |
|
33 | - ' ' . $options['magestead']['apps']['mba_12345']['base_url']; |
|
34 | - $output->writeln('<info>' . $comment . '</info>'); |
|
32 | + $comment=$options['vagrantfile']['vm']['network']['private_network']. |
|
33 | + ' '.$options['magestead']['apps']['mba_12345']['base_url']; |
|
34 | + $output->writeln('<info>'.$comment.'</info>'); |
|
35 | 35 | } |
36 | 36 | } |
37 | 37 | \ No newline at end of file |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | protected function configure() |
18 | 18 | { |
19 | - $this->_projectPath = getcwd(); |
|
19 | + $this->_projectPath=getcwd(); |
|
20 | 20 | |
21 | 21 | $this->setName("phpspec"); |
22 | 22 | $this->setDescription("Run PHPSpec against your project"); |
@@ -30,15 +30,15 @@ discard block |
||
30 | 30 | */ |
31 | 31 | protected function execute(InputInterface $input, OutputInterface $output) |
32 | 32 | { |
33 | - $option = $input->getArgument('option'); |
|
33 | + $option=$input->getArgument('option'); |
|
34 | 34 | |
35 | - $command = $this->getCommand(new Config($output), $option); |
|
35 | + $command=$this->getCommand(new Config($output), $option); |
|
36 | 36 | if (!$command) { |
37 | 37 | return $output->writeln('<error>Command not available for this application</error>'); |
38 | 38 | } |
39 | 39 | |
40 | 40 | $output->writeln('<info>Running PHPSpec</info>'); |
41 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
41 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
42 | 42 | passthru($passedCommand); |
43 | 43 | } |
44 | 44 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function getCommand(Config $config, $option) |
51 | 51 | { |
52 | - $type = $config->type; |
|
52 | + $type=$config->type; |
|
53 | 53 | switch ($type) { |
54 | 54 | case 'magento': |
55 | 55 | return "cd /var/www;bin/phpspec $option"; |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | protected function configure() |
18 | 18 | { |
19 | - $this->_projectPath = getcwd(); |
|
19 | + $this->_projectPath=getcwd(); |
|
20 | 20 | |
21 | 21 | $this->setName("vm:run"); |
22 | 22 | $this->setDescription("Run commands on your development machine via SSH"); |
@@ -30,10 +30,10 @@ discard block |
||
30 | 30 | */ |
31 | 31 | protected function execute(InputInterface $input, OutputInterface $output) |
32 | 32 | { |
33 | - $command = $input->getArgument('ssh-command'); |
|
33 | + $command=$input->getArgument('ssh-command'); |
|
34 | 34 | $output->writeln('<info>Running "'.$command.'" on Magestead</info>'); |
35 | 35 | |
36 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
36 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
37 | 37 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
38 | 38 | } |
39 | 39 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | protected function configure() |
17 | 17 | { |
18 | - $this->_projectPath = getcwd(); |
|
18 | + $this->_projectPath=getcwd(); |
|
19 | 19 | |
20 | 20 | $this->setName("vm:up"); |
21 | 21 | $this->setDescription("Spin up your development machine"); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | protected function configure() |
20 | 20 | { |
21 | - $this->_projectPath = getcwd(); |
|
21 | + $this->_projectPath=getcwd(); |
|
22 | 22 | $this->setName("index:mode:show"); |
23 | 23 | $this->setDescription("Show index mode"); |
24 | 24 | $this->addArgument('index', InputArgument::OPTIONAL, '[indexer]'); |
@@ -31,12 +31,12 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
33 | 33 | { |
34 | - $index = $input->getArgument('index'); |
|
34 | + $index=$input->getArgument('index'); |
|
35 | 35 | |
36 | - $command = $this->getCommand(new Config($output), $index); |
|
36 | + $command=$this->getCommand(new Config($output), $index); |
|
37 | 37 | if ($command) { |
38 | 38 | $output->writeln('<info>Getting index mode</info>'); |
39 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
39 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
40 | 40 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
41 | 41 | } |
42 | 42 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | protected function getCommand(Config $config, $index) |
52 | 52 | { |
53 | - $type = $config->type; |
|
53 | + $type=$config->type; |
|
54 | 54 | switch ($type) { |
55 | 55 | case 'magento2': |
56 | 56 | return "cd /var/www/public;bin/magento indexer:show-mode $index"; |