Completed
Push — develop ( e03d93...eac670 )
by Steven
13:07 queued 10:12
created
src/Magestead/Command/Cache/DisableCommand.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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':
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/EnableCommand.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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':
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/CleanCommand.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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':
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/FlushCommand.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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':
Please login to merge, or discard this patch.