@@ -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"; |
@@ -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"; |
@@ -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"; |
@@ -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"); |
@@ -27,8 +26,7 @@ discard block |
||
27 | 26 | * @param OutputInterface $output |
28 | 27 | * @return ProcessCommand |
29 | 28 | */ |
30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
31 | - { |
|
29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
33 | 31 | |
34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
40 | 38 | * @param Config $config |
41 | 39 | * @return bool|string |
42 | 40 | */ |
43 | - protected function getCommand(Config $config) |
|
44 | - { |
|
41 | + protected function getCommand(Config $config) { |
|
45 | 42 | $type = $config->type; |
46 | 43 | switch ($type) { |
47 | 44 | case 'magento': |
@@ -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': |
@@ -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"); |
@@ -27,8 +26,7 @@ discard block |
||
27 | 26 | * @param OutputInterface $output |
28 | 27 | * @return ProcessCommand |
29 | 28 | */ |
30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
31 | - { |
|
29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
33 | 31 | |
34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
40 | 38 | * @param Config $config |
41 | 39 | * @return bool|string |
42 | 40 | */ |
43 | - protected function getCommand(Config $config) |
|
44 | - { |
|
41 | + protected function getCommand(Config $config) { |
|
45 | 42 | $type = $config->type; |
46 | 43 | switch ($type) { |
47 | 44 | case 'magento': |
@@ -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"); |
@@ -27,8 +26,7 @@ discard block |
||
27 | 26 | * @param OutputInterface $output |
28 | 27 | * @return ProcessCommand |
29 | 28 | */ |
30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
31 | - { |
|
29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
33 | 31 | |
34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
40 | 38 | * @param Config $config |
41 | 39 | * @return bool|string |
42 | 40 | */ |
43 | - protected function getCommand(Config $config) |
|
44 | - { |
|
41 | + protected function getCommand(Config $config) { |
|
45 | 42 | $type = $config->type; |
46 | 43 | switch ($type) { |
47 | 44 | case 'magento': |
@@ -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"); |
@@ -27,8 +26,7 @@ discard block |
||
27 | 26 | * @param OutputInterface $output |
28 | 27 | * @return ProcessCommand |
29 | 28 | */ |
30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
31 | - { |
|
29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
33 | 31 | |
34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
40 | 38 | * @param Config $config |
41 | 39 | * @return bool|string |
42 | 40 | */ |
43 | - protected function getCommand(Config $config) |
|
44 | - { |
|
41 | + protected function getCommand(Config $config) { |
|
45 | 42 | $type = $config->type; |
46 | 43 | switch ($type) { |
47 | 44 | case 'magento': |
@@ -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"); |
@@ -27,8 +26,7 @@ discard block |
||
27 | 26 | * @param OutputInterface $output |
28 | 27 | * @return ProcessCommand |
29 | 28 | */ |
30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
31 | - { |
|
29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
33 | 31 | |
34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
40 | 38 | * @param Config $config |
41 | 39 | * @return bool|string |
42 | 40 | */ |
43 | - protected function getCommand(Config $config) |
|
44 | - { |
|
41 | + protected function getCommand(Config $config) { |
|
45 | 42 | $type = $config->type; |
46 | 43 | switch ($type) { |
47 | 44 | case 'magento': |