@@ -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': |
@@ -52,6 +52,6 @@ |
||
| 52 | 52 | break; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return false; |
|
| 55 | + return FALSE; |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | \ No newline at end of file |
@@ -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"; |
@@ -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"; |
@@ -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 | } |
@@ -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': |
@@ -58,6 +58,6 @@ |
||
| 58 | 58 | break; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - return false; |
|
| 61 | + return FALSE; |
|
| 62 | 62 | } |
| 63 | 63 | } |
@@ -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 | |
| 21 | 21 | $this->setName("behat"); |
| 22 | 22 | $this->setDescription("Run Behat against your project"); |
@@ -30,14 +30,14 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | protected function execute(InputInterface $input, OutputInterface $output) |
| 32 | 32 | { |
| 33 | - $option = $input->getArgument('option'); |
|
| 34 | - $command = $this->getCommand(new Config($output), $option); |
|
| 33 | + $option=$input->getArgument('option'); |
|
| 34 | + $command=$this->getCommand(new Config($output), $option); |
|
| 35 | 35 | if (!$command) { |
| 36 | 36 | return $output->writeln('<error>Command not available for this application</error>'); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $output->writeln('<info>Running Behat</info>'); |
| 40 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
| 40 | + $passedCommand="vagrant ssh -c '".$command."'"; |
|
| 41 | 41 | passthru($passedCommand); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | protected function getCommand(Config $config, $option) |
| 50 | 50 | { |
| 51 | - $type = $config->type; |
|
| 51 | + $type=$config->type; |
|
| 52 | 52 | switch ($type) { |
| 53 | 53 | case 'magento': |
| 54 | 54 | return "cd /var/www;bin/behat $option"; |
@@ -6,12 +6,12 @@ |
||
| 6 | 6 | $privateKey = "$argv[2]"; |
| 7 | 7 | |
| 8 | 8 | $contents = [ |
| 9 | - "http-basic" => [ |
|
| 10 | - "repo.magento.com" => [ |
|
| 11 | - "username" => $publicKey, |
|
| 12 | - "password" => $privateKey, |
|
| 13 | - ] |
|
| 14 | - ] |
|
| 9 | + "http-basic" => [ |
|
| 10 | + "repo.magento.com" => [ |
|
| 11 | + "username" => $publicKey, |
|
| 12 | + "password" => $privateKey, |
|
| 13 | + ] |
|
| 14 | + ] |
|
| 15 | 15 | ]; |
| 16 | 16 | |
| 17 | 17 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$file = "/home/vagrant/.composer/auth.json"; |
|
| 3 | +$file="/home/vagrant/.composer/auth.json"; |
|
| 4 | 4 | |
| 5 | -$publicKey = "$argv[1]"; |
|
| 6 | -$privateKey = "$argv[2]"; |
|
| 5 | +$publicKey="$argv[1]"; |
|
| 6 | +$privateKey="$argv[2]"; |
|
| 7 | 7 | |
| 8 | -$contents = [ |
|
| 8 | +$contents=[ |
|
| 9 | 9 | "http-basic" => [ |
| 10 | 10 | "repo.magento.com" => [ |
| 11 | 11 | "username" => $publicKey, |
@@ -4,48 +4,48 @@ |
||
| 4 | 4 | $env = include $file; |
| 5 | 5 | |
| 6 | 6 | $env['cache'] = |
| 7 | - array ( |
|
| 8 | - 'frontend' => |
|
| 9 | - array ( |
|
| 10 | - 'default' => |
|
| 11 | - array ( |
|
| 12 | - 'backend' => 'Cm_Cache_Backend_Redis', |
|
| 13 | - 'backend_options' => |
|
| 14 | - array ( |
|
| 15 | - 'server' => '127.0.0.1', |
|
| 16 | - 'port' => '6379', |
|
| 17 | - 'persistent' => '', |
|
| 18 | - 'database' => '0', |
|
| 19 | - 'force_standalone' => '0', |
|
| 20 | - 'connect_retries' => '1', |
|
| 21 | - 'read_timeout' => '10', |
|
| 22 | - 'automatic_cleaning_factor' => '0', |
|
| 23 | - 'compress_data' => '1', |
|
| 24 | - 'compress_tags' => '1', |
|
| 25 | - 'compress_threshold' => '20480', |
|
| 26 | - 'compression_lib' => 'gzip', |
|
| 7 | + array ( |
|
| 8 | + 'frontend' => |
|
| 9 | + array ( |
|
| 10 | + 'default' => |
|
| 11 | + array ( |
|
| 12 | + 'backend' => 'Cm_Cache_Backend_Redis', |
|
| 13 | + 'backend_options' => |
|
| 14 | + array ( |
|
| 15 | + 'server' => '127.0.0.1', |
|
| 16 | + 'port' => '6379', |
|
| 17 | + 'persistent' => '', |
|
| 18 | + 'database' => '0', |
|
| 19 | + 'force_standalone' => '0', |
|
| 20 | + 'connect_retries' => '1', |
|
| 21 | + 'read_timeout' => '10', |
|
| 22 | + 'automatic_cleaning_factor' => '0', |
|
| 23 | + 'compress_data' => '1', |
|
| 24 | + 'compress_tags' => '1', |
|
| 25 | + 'compress_threshold' => '20480', |
|
| 26 | + 'compression_lib' => 'gzip', |
|
| 27 | 27 | ) |
| 28 | - ), |
|
| 29 | - 'page_cache' => |
|
| 30 | - array ( |
|
| 31 | - 'backend' => 'Cm_Cache_Backend_Redis', |
|
| 32 | - 'backend_options' => |
|
| 33 | - array ( |
|
| 34 | - 'server' => '127.0.0.1', |
|
| 35 | - 'port' => '6379', |
|
| 36 | - 'persistent' => '', |
|
| 37 | - 'database' => '1', |
|
| 38 | - 'force_standalone' => '0', |
|
| 39 | - 'connect_retries' => '1', |
|
| 40 | - 'read_timeout' => '10', |
|
| 41 | - 'automatic_cleaning_factor' => '0', |
|
| 42 | - 'compress_data' => '0', |
|
| 43 | - 'compress_tags' => '1', |
|
| 44 | - 'compress_threshold' => '20480', |
|
| 45 | - 'compression_lib' => 'gzip', |
|
| 46 | - ), |
|
| 47 | - ), |
|
| 48 | - ) |
|
| 49 | - ); |
|
| 28 | + ), |
|
| 29 | + 'page_cache' => |
|
| 30 | + array ( |
|
| 31 | + 'backend' => 'Cm_Cache_Backend_Redis', |
|
| 32 | + 'backend_options' => |
|
| 33 | + array ( |
|
| 34 | + 'server' => '127.0.0.1', |
|
| 35 | + 'port' => '6379', |
|
| 36 | + 'persistent' => '', |
|
| 37 | + 'database' => '1', |
|
| 38 | + 'force_standalone' => '0', |
|
| 39 | + 'connect_retries' => '1', |
|
| 40 | + 'read_timeout' => '10', |
|
| 41 | + 'automatic_cleaning_factor' => '0', |
|
| 42 | + 'compress_data' => '0', |
|
| 43 | + 'compress_tags' => '1', |
|
| 44 | + 'compress_threshold' => '20480', |
|
| 45 | + 'compression_lib' => 'gzip', |
|
| 46 | + ), |
|
| 47 | + ), |
|
| 48 | + ) |
|
| 49 | + ); |
|
| 50 | 50 | |
| 51 | 51 | file_put_contents($file, "<?php \n \n return ".var_export($env,true).";"); |
@@ -48,4 +48,4 @@ |
||
| 48 | 48 | ) |
| 49 | 49 | ); |
| 50 | 50 | |
| 51 | -file_put_contents($file, "<?php \n \n return ".var_export($env,true).";"); |
|
| 51 | +file_put_contents($file, "<?php \n \n return ".var_export($env,TRUE).";"); |
|
@@ -1,17 +1,17 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$file = "$argv[1]/magento2/app/etc/env.php"; |
|
| 4 | -$env = include $file; |
|
| 3 | +$file="$argv[1]/magento2/app/etc/env.php"; |
|
| 4 | +$env=include $file; |
|
| 5 | 5 | |
| 6 | -$env['cache'] = |
|
| 7 | - array ( |
|
| 6 | +$env['cache']= |
|
| 7 | + array( |
|
| 8 | 8 | 'frontend' => |
| 9 | - array ( |
|
| 9 | + array( |
|
| 10 | 10 | 'default' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'backend' => 'Cm_Cache_Backend_Redis', |
| 13 | 13 | 'backend_options' => |
| 14 | - array ( |
|
| 14 | + array( |
|
| 15 | 15 | 'server' => '127.0.0.1', |
| 16 | 16 | 'port' => '6379', |
| 17 | 17 | 'persistent' => '', |
@@ -27,10 +27,10 @@ discard block |
||
| 27 | 27 | ) |
| 28 | 28 | ), |
| 29 | 29 | 'page_cache' => |
| 30 | - array ( |
|
| 30 | + array( |
|
| 31 | 31 | 'backend' => 'Cm_Cache_Backend_Redis', |
| 32 | 32 | 'backend_options' => |
| 33 | - array ( |
|
| 33 | + array( |
|
| 34 | 34 | 'server' => '127.0.0.1', |
| 35 | 35 | 'port' => '6379', |
| 36 | 36 | 'persistent' => '', |
@@ -48,4 +48,4 @@ discard block |
||
| 48 | 48 | ) |
| 49 | 49 | ); |
| 50 | 50 | |
| 51 | -file_put_contents($file, "<?php \n \n return ".var_export($env,true).";"); |
|
| 51 | +file_put_contents($file, "<?php \n \n return ".var_export($env, true).";"); |
|
@@ -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': |
@@ -52,6 +52,6 @@ |
||
| 52 | 52 | break; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return false; |
|
| 55 | + return FALSE; |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | \ No newline at end of file |
@@ -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"; |
@@ -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': |
@@ -52,6 +52,6 @@ |
||
| 52 | 52 | break; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return false; |
|
| 55 | + return FALSE; |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | \ No newline at end of file |
@@ -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:mode:show"); |
| 23 | 23 | $this->setDescription("Show index mode"); |
| 24 | 24 | $this->addArgument('index', InputArgument::OPTIONAL, '[indexer]'); |
@@ -31,12 +31,12 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
| 33 | 33 | { |
| 34 | - $index = $input->getArgument('index'); |
|
| 34 | + $index=$input->getArgument('index'); |
|
| 35 | 35 | |
| 36 | - $command = $this->getCommand(new Config($output), $index); |
|
| 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 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | protected function getCommand(Config $config, $index) |
| 52 | 52 | { |
| 53 | - $type = $config->type; |
|
| 53 | + $type=$config->type; |
|
| 54 | 54 | switch ($type) { |
| 55 | 55 | case 'magento2': |
| 56 | 56 | return "cd /var/www/public;bin/magento indexer:show-mode $index"; |
@@ -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': |
@@ -52,6 +52,6 @@ |
||
| 52 | 52 | break; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return false; |
|
| 55 | + return FALSE; |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | \ No newline at end of file |
@@ -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"; |
@@ -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': |
@@ -52,6 +52,6 @@ |
||
| 52 | 52 | break; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return false; |
|
| 55 | + return FALSE; |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | \ No newline at end of file |
@@ -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"; |