@@ -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 | } |
@@ -12,8 +12,7 @@ discard block |
||
12 | 12 | { |
13 | 13 | protected $_projectPath; |
14 | 14 | |
15 | - protected function configure() |
|
16 | - { |
|
15 | + protected function configure() { |
|
17 | 16 | $this->_projectPath = getcwd(); |
18 | 17 | |
19 | 18 | $this->setName("vm:ssh"); |
@@ -25,8 +24,7 @@ discard block |
||
25 | 24 | * @param OutputInterface $output |
26 | 25 | * @return bool |
27 | 26 | */ |
28 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
29 | - { |
|
27 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
30 | 28 | passthru('vagrant ssh'); |
31 | 29 | return true; |
32 | 30 | } |
@@ -28,6 +28,6 @@ |
||
28 | 28 | protected function execute(InputInterface $input, OutputInterface $output) |
29 | 29 | { |
30 | 30 | passthru('vagrant ssh'); |
31 | - return true; |
|
31 | + return TRUE; |
|
32 | 32 | } |
33 | 33 | } |
@@ -33,7 +33,7 @@ |
||
33 | 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 | } |
@@ -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("vm:run"); |
@@ -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 | $command = $input->getArgument('ssh-command'); |
34 | 32 | $output->writeln('<info>Running "'.$command.'" on Magestead</info>'); |
35 | 33 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $command = $this->getCommand(new Config($output), $mode); |
36 | 36 | if ($command) { |
37 | 37 | $output->writeln('<info>Setting index mode</info>'); |
38 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
38 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
39 | 39 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
40 | 40 | } |
41 | 41 |
@@ -16,8 +16,7 @@ discard block |
||
16 | 16 | protected $_config; |
17 | 17 | protected $_projectPath; |
18 | 18 | |
19 | - protected function configure() |
|
20 | - { |
|
19 | + protected function configure() { |
|
21 | 20 | $this->_projectPath = getcwd(); |
22 | 21 | $this->setName("index:mode:set"); |
23 | 22 | $this->setDescription("Set index mode type"); |
@@ -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 | $mode = $input->getArgument('mode'); |
35 | 33 | $command = $this->getCommand(new Config($output), $mode); |
36 | 34 | if ($command) { |
@@ -47,8 +45,7 @@ discard block |
||
47 | 45 | * @param $mode |
48 | 46 | * @return bool|string |
49 | 47 | */ |
50 | - protected function getCommand(Config $config, $mode) |
|
51 | - { |
|
48 | + protected function getCommand(Config $config, $mode) { |
|
52 | 49 | $type = $config->type; |
53 | 50 | switch ($type) { |
54 | 51 | case 'magento2': |
@@ -56,6 +56,6 @@ |
||
56 | 56 | break; |
57 | 57 | } |
58 | 58 | |
59 | - return false; |
|
59 | + return FALSE; |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | \ No newline at end of file |
@@ -36,7 +36,7 @@ |
||
36 | 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 |
@@ -16,8 +16,7 @@ discard block |
||
16 | 16 | protected $_config; |
17 | 17 | protected $_projectPath; |
18 | 18 | |
19 | - protected function configure() |
|
20 | - { |
|
19 | + protected function configure() { |
|
21 | 20 | $this->_projectPath = getcwd(); |
22 | 21 | $this->setName("index:mode:show"); |
23 | 22 | $this->setDescription("Show index mode"); |
@@ -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 | $index = $input->getArgument('index'); |
35 | 33 | |
36 | 34 | $command = $this->getCommand(new Config($output), $index); |
@@ -48,8 +46,7 @@ discard block |
||
48 | 46 | * @param $index |
49 | 47 | * @return bool|string |
50 | 48 | */ |
51 | - protected function getCommand(Config $config, $index) |
|
52 | - { |
|
49 | + protected function getCommand(Config $config, $index) { |
|
53 | 50 | $type = $config->type; |
54 | 51 | switch ($type) { |
55 | 52 | case 'magento2': |
@@ -57,6 +57,6 @@ |
||
57 | 57 | break; |
58 | 58 | } |
59 | 59 | |
60 | - return false; |
|
60 | + return FALSE; |
|
61 | 61 | } |
62 | 62 | } |
63 | 63 | \ No newline at end of file |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $index = $input->getArgument('index'); |
36 | 36 | |
37 | 37 | $command = $this->getCommand(new Config($output), $index); |
38 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
38 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
39 | 39 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
40 | 40 | } |
41 | 41 |
@@ -16,8 +16,7 @@ discard block |
||
16 | 16 | protected $_config; |
17 | 17 | protected $_projectPath; |
18 | 18 | |
19 | - protected function configure() |
|
20 | - { |
|
19 | + protected function configure() { |
|
21 | 20 | $this->_projectPath = getcwd(); |
22 | 21 | $this->setName("index:reindex"); |
23 | 22 | $this->setDescription("Reindex data"); |
@@ -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>Reindexing data</info>'); |
35 | 33 | $index = $input->getArgument('index'); |
36 | 34 | |
@@ -44,8 +42,7 @@ discard block |
||
44 | 42 | * @param $index |
45 | 43 | * @return bool|string |
46 | 44 | */ |
47 | - protected function getCommand(Config $config, $index) |
|
48 | - { |
|
45 | + protected function getCommand(Config $config, $index) { |
|
49 | 46 | $type = $config->type; |
50 | 47 | switch ($type) { |
51 | 48 | case 'magento': |
@@ -57,6 +57,6 @@ |
||
57 | 57 | break; |
58 | 58 | } |
59 | 59 | |
60 | - return false; |
|
60 | + return FALSE; |
|
61 | 61 | } |
62 | 62 | } |
63 | 63 | \ No newline at end of file |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $output->writeln('<info>Flushing Redis Storage</info>'); |
32 | 32 | |
33 | 33 | $command = "redis-cli flushall"; |
34 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
35 | 35 | return new ProcessCommand($passedCommand, $this->_projectPath, $output); |
36 | 36 | } |
37 | 37 | } |
@@ -14,8 +14,7 @@ discard block |
||
14 | 14 | protected $_config; |
15 | 15 | protected $_projectPath; |
16 | 16 | |
17 | - protected function configure() |
|
18 | - { |
|
17 | + protected function configure() { |
|
19 | 18 | $this->_projectPath = getcwd(); |
20 | 19 | $this->setName("redis:flush-all"); |
21 | 20 | $this->setDescription("Flush redis storage"); |
@@ -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>Flushing Redis Storage</info>'); |
32 | 30 | |
33 | 31 | $command = "redis-cli flushall"; |