@@ -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:reindex"); |
23 | 23 | $this->setDescription("Reindex data"); |
24 | 24 | $this->addArgument('index', InputArgument::OPTIONAL, '[indexer]'); |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
33 | 33 | { |
34 | 34 | $output->writeln('<info>Reindexing data</info>'); |
35 | - $index = $input->getArgument('index'); |
|
35 | + $index=$input->getArgument('index'); |
|
36 | 36 | |
37 | - $command = $this->getCommand(new Config($output), $index); |
|
38 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
37 | + $command=$this->getCommand(new Config($output), $index); |
|
38 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
41 | 41 | |
@@ -46,10 +46,10 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config, $index) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento': |
52 | - $index = (!is_null($index)) ? ' '.$index : ':all'; |
|
52 | + $index=(!is_null($index)) ? ' '.$index : ':all'; |
|
53 | 53 | return "cd /var/www/public;../bin/n98-magerun.phar index:reindex$index"; |
54 | 54 | break; |
55 | 55 | case 'magento2': |
@@ -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"); |
@@ -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"); |
@@ -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"); |
@@ -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"); |
@@ -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"); |
@@ -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"); |
@@ -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 | $this->setName("redis:flush-all"); |
21 | 21 | $this->setDescription("Flush redis storage"); |
22 | 22 | } |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | { |
31 | 31 | $output->writeln('<info>Flushing Redis Storage</info>'); |
32 | 32 | |
33 | - $command = "redis-cli flushall"; |
|
34 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
33 | + $command="redis-cli flushall"; |
|
34 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
35 | 35 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
36 | 36 | } |
37 | 37 | } |
@@ -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"; |