Completed
Pull Request — epic/2.0.0 (#37)
by Steven
05:34 queued 02:47
created
src/Magestead/Command/Cache/FlushCommand.php 3 patches
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");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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:status");
22 22
         $this->setDescription("Checks cache status");
23 23
     }
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/CleanCommand.php 3 patches
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");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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:status");
22 22
         $this->setDescription("Checks cache status");
23 23
     }
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.