@@ -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:disable"); |
22 | 22 | $this->setDescription("Disable cache types"); |
23 | 23 | $this->addArgument('type', InputArgument::OPTIONAL, '[cache code/type]'); |
@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | { |
33 | 33 | $output->writeln('<info>Disabling all cache types</info>'); |
34 | 34 | |
35 | - $cacheType = $input->getArgument('type'); |
|
36 | - $command = $this->getCommand(new Config($output), $cacheType); |
|
37 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
35 | + $cacheType=$input->getArgument('type'); |
|
36 | + $command=$this->getCommand(new Config($output), $cacheType); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
39 | 39 | } |
40 | 40 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function getCommand(Config $config, $cacheType) |
46 | 46 | { |
47 | - $type = $config->type; |
|
47 | + $type=$config->type; |
|
48 | 48 | switch ($type) { |
49 | 49 | case 'magento': |
50 | 50 | return "cd /var/www/public;../bin/n98-magerun.phar cache:disable $cacheType"; |
@@ -15,8 +15,7 @@ discard block |
||
15 | 15 | protected $_config; |
16 | 16 | protected $_projectPath; |
17 | 17 | |
18 | - protected function configure() |
|
19 | - { |
|
18 | + protected function configure() { |
|
20 | 19 | $this->_projectPath = getcwd(); |
21 | 20 | $this->setName("cache:disable"); |
22 | 21 | $this->setDescription("Disable cache types"); |
@@ -28,8 +27,7 @@ discard block |
||
28 | 27 | * @param OutputInterface $output |
29 | 28 | * @return ProcessCommand |
30 | 29 | */ |
31 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
32 | - { |
|
30 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
33 | 31 | $output->writeln('<info>Disabling all cache types</info>'); |
34 | 32 | |
35 | 33 | $cacheType = $input->getArgument('type'); |
@@ -42,8 +40,7 @@ discard block |
||
42 | 40 | * @param Config $config |
43 | 41 | * @return bool|string |
44 | 42 | */ |
45 | - protected function getCommand(Config $config, $cacheType) |
|
46 | - { |
|
43 | + protected function getCommand(Config $config, $cacheType) { |
|
47 | 44 | $type = $config->type; |
48 | 45 | switch ($type) { |
49 | 46 | case 'magento': |
@@ -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:disable"); |
22 | 22 | $this->setDescription("Disable cache types"); |
23 | 23 | $this->addArgument('type', InputArgument::OPTIONAL, '[cache code/type]'); |
@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | { |
33 | 33 | $output->writeln('<info>Disabling all cache types</info>'); |
34 | 34 | |
35 | - $cacheType = $input->getArgument('type'); |
|
36 | - $command = $this->getCommand(new Config($output), $cacheType); |
|
37 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
35 | + $cacheType=$input->getArgument('type'); |
|
36 | + $command=$this->getCommand(new Config($output), $cacheType); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
39 | 39 | } |
40 | 40 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function getCommand(Config $config, $cacheType) |
46 | 46 | { |
47 | - $type = $config->type; |
|
47 | + $type=$config->type; |
|
48 | 48 | switch ($type) { |
49 | 49 | case 'magento': |
50 | 50 | return "cd /var/www/public;../bin/n98-magerun.phar cache:disable $cacheType"; |
@@ -15,8 +15,7 @@ discard block |
||
15 | 15 | protected $_config; |
16 | 16 | protected $_projectPath; |
17 | 17 | |
18 | - protected function configure() |
|
19 | - { |
|
18 | + protected function configure() { |
|
20 | 19 | $this->_projectPath = getcwd(); |
21 | 20 | $this->setName("cache:disable"); |
22 | 21 | $this->setDescription("Disable cache types"); |
@@ -28,8 +27,7 @@ discard block |
||
28 | 27 | * @param OutputInterface $output |
29 | 28 | * @return ProcessCommand |
30 | 29 | */ |
31 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
32 | - { |
|
30 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
33 | 31 | $output->writeln('<info>Disabling all cache types</info>'); |
34 | 32 | |
35 | 33 | $cacheType = $input->getArgument('type'); |
@@ -42,8 +40,7 @@ discard block |
||
42 | 40 | * @param Config $config |
43 | 41 | * @return bool|string |
44 | 42 | */ |
45 | - protected function getCommand(Config $config, $cacheType) |
|
46 | - { |
|
43 | + protected function getCommand(Config $config, $cacheType) { |
|
47 | 44 | $type = $config->type; |
48 | 45 | switch ($type) { |
49 | 46 | case 'magento': |
@@ -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:disable"); |
22 | 22 | $this->setDescription("Disable cache types"); |
23 | 23 | $this->addArgument('type', InputArgument::OPTIONAL, '[cache code/type]'); |
@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | { |
33 | 33 | $output->writeln('<info>Disabling all cache types</info>'); |
34 | 34 | |
35 | - $cacheType = $input->getArgument('type'); |
|
36 | - $command = $this->getCommand(new Config($output), $cacheType); |
|
37 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
35 | + $cacheType=$input->getArgument('type'); |
|
36 | + $command=$this->getCommand(new Config($output), $cacheType); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
39 | 39 | } |
40 | 40 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function getCommand(Config $config, $cacheType) |
46 | 46 | { |
47 | - $type = $config->type; |
|
47 | + $type=$config->type; |
|
48 | 48 | switch ($type) { |
49 | 49 | case 'magento': |
50 | 50 | return "cd /var/www/public;../bin/n98-magerun.phar cache:disable $cacheType"; |
@@ -15,8 +15,7 @@ discard block |
||
15 | 15 | protected $_config; |
16 | 16 | protected $_projectPath; |
17 | 17 | |
18 | - protected function configure() |
|
19 | - { |
|
18 | + protected function configure() { |
|
20 | 19 | $this->_projectPath = getcwd(); |
21 | 20 | $this->setName("cache:disable"); |
22 | 21 | $this->setDescription("Disable cache types"); |
@@ -28,8 +27,7 @@ discard block |
||
28 | 27 | * @param OutputInterface $output |
29 | 28 | * @return ProcessCommand |
30 | 29 | */ |
31 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
32 | - { |
|
30 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
33 | 31 | $output->writeln('<info>Disabling all cache types</info>'); |
34 | 32 | |
35 | 33 | $cacheType = $input->getArgument('type'); |
@@ -42,8 +40,7 @@ discard block |
||
42 | 40 | * @param Config $config |
43 | 41 | * @return bool|string |
44 | 42 | */ |
45 | - protected function getCommand(Config $config, $cacheType) |
|
46 | - { |
|
43 | + protected function getCommand(Config $config, $cacheType) { |
|
47 | 44 | $type = $config->type; |
48 | 45 | switch ($type) { |
49 | 46 | case 'magento': |
@@ -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:disable"); |
22 | 22 | $this->setDescription("Disable cache types"); |
23 | 23 | $this->addArgument('type', InputArgument::OPTIONAL, '[cache code/type]'); |
@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | { |
33 | 33 | $output->writeln('<info>Disabling all cache types</info>'); |
34 | 34 | |
35 | - $cacheType = $input->getArgument('type'); |
|
36 | - $command = $this->getCommand(new Config($output), $cacheType); |
|
37 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
35 | + $cacheType=$input->getArgument('type'); |
|
36 | + $command=$this->getCommand(new Config($output), $cacheType); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
39 | 39 | } |
40 | 40 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function getCommand(Config $config, $cacheType) |
46 | 46 | { |
47 | - $type = $config->type; |
|
47 | + $type=$config->type; |
|
48 | 48 | switch ($type) { |
49 | 49 | case 'magento': |
50 | 50 | return "cd /var/www/public;../bin/n98-magerun.phar cache:disable $cacheType"; |
@@ -15,8 +15,7 @@ discard block |
||
15 | 15 | protected $_config; |
16 | 16 | protected $_projectPath; |
17 | 17 | |
18 | - protected function configure() |
|
19 | - { |
|
18 | + protected function configure() { |
|
20 | 19 | $this->_projectPath = getcwd(); |
21 | 20 | $this->setName("cache:disable"); |
22 | 21 | $this->setDescription("Disable cache types"); |
@@ -28,8 +27,7 @@ discard block |
||
28 | 27 | * @param OutputInterface $output |
29 | 28 | * @return ProcessCommand |
30 | 29 | */ |
31 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
32 | - { |
|
30 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
33 | 31 | $output->writeln('<info>Disabling all cache types</info>'); |
34 | 32 | |
35 | 33 | $cacheType = $input->getArgument('type'); |
@@ -42,8 +40,7 @@ discard block |
||
42 | 40 | * @param Config $config |
43 | 41 | * @return bool|string |
44 | 42 | */ |
45 | - protected function getCommand(Config $config, $cacheType) |
|
46 | - { |
|
43 | + protected function getCommand(Config $config, $cacheType) { |
|
47 | 44 | $type = $config->type; |
48 | 45 | switch ($type) { |
49 | 46 | case 'magento': |