@@ -4,4 +4,6 @@ |
||
| 4 | 4 | * Class MissingConfigFileException |
| 5 | 5 | * @package Magestead\Exceptions |
| 6 | 6 | */ |
| 7 | -class MissingConfigFileException extends \Exception {} |
|
| 8 | 7 | \ No newline at end of file |
| 8 | +class MissingConfigFileException extends \Exception |
|
| 9 | +{ |
|
| 10 | +} |
|
| 9 | 11 | \ No newline at end of file |
@@ -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("behat"); |
@@ -28,8 +27,7 @@ discard block |
||
| 28 | 27 | * @param OutputInterface $output |
| 29 | 28 | * @return mixed |
| 30 | 29 | */ |
| 31 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 32 | - { |
|
| 30 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 33 | 31 | $option = $input->getArgument('option'); |
| 34 | 32 | $command = $this->getCommand(new Config($output), $option); |
| 35 | 33 | if (!$command) { |
@@ -46,8 +44,7 @@ discard block |
||
| 46 | 44 | * @param $option |
| 47 | 45 | * @return bool|string |
| 48 | 46 | */ |
| 49 | - protected function getCommand(Config $config, $option) |
|
| 50 | - { |
|
| 47 | + protected function getCommand(Config $config, $option) { |
|
| 51 | 48 | $type = $config->type; |
| 52 | 49 | switch ($type) { |
| 53 | 50 | case 'magento': |
@@ -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"; |
@@ -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"; |
@@ -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"; |