Completed
Push — analysis-zGPgQ2 ( 3b9df4 )
by Steven
02:50
created
src/Magestead/Command/PhpspecCommand.php 3 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
                 break;
59 59
         }
60 60
 
61
-        return false;
61
+        return FALSE;
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
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
 
22 22
         $this->setName('phpspec');
23 23
         $this->setDescription('Run PHPSpec against your project');
@@ -32,15 +32,15 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function execute(InputInterface $input, OutputInterface $output)
34 34
     {
35
-        $option = $input->getArgument('option');
35
+        $option=$input->getArgument('option');
36 36
 
37
-        $command = $this->getCommand(new Config($output), $option);
37
+        $command=$this->getCommand(new Config($output), $option);
38 38
         if (!$command) {
39 39
             return $output->writeln('<error>Command not available for this application</error>');
40 40
         }
41 41
 
42 42
         $output->writeln('<info>Running PHPSpec</info>');
43
-        $passedCommand = "vagrant ssh -c '".$command."'";
43
+        $passedCommand="vagrant ssh -c '".$command."'";
44 44
         passthru($passedCommand);
45 45
     }
46 46
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     protected function getCommand(Config $config, $option)
54 54
     {
55
-        $type = $config->type;
55
+        $type=$config->type;
56 56
         switch ($type) {
57 57
             case 'magento':
58 58
                 return "cd /var/www;bin/phpspec $option";
Please login to merge, or discard this patch.
src/Magestead/Command/VM/DestroyCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     protected function configure()
17 17
     {
18
-        $this->_projectPath = getcwd();
18
+        $this->_projectPath=getcwd();
19 19
 
20 20
         $this->setName("vm:up");
21 21
         $this->setDescription("Spin up your development machine");
Please login to merge, or discard this patch.
src/Magestead/Command/VM/StatusCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     protected function configure()
17 17
     {
18
-        $this->_projectPath = getcwd();
18
+        $this->_projectPath=getcwd();
19 19
 
20 20
         $this->setName("vm:up");
21 21
         $this->setDescription("Spin up your development machine");
Please login to merge, or discard this patch.
src/Magestead/Command/VM/ResumeCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     protected function configure()
17 17
     {
18
-        $this->_projectPath = getcwd();
18
+        $this->_projectPath=getcwd();
19 19
 
20 20
         $this->setName("vm:up");
21 21
         $this->setDescription("Spin up your development machine");
Please login to merge, or discard this patch.
src/Magestead/Command/VM/SuspendCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     protected function configure()
17 17
     {
18
-        $this->_projectPath = getcwd();
18
+        $this->_projectPath=getcwd();
19 19
 
20 20
         $this->setName("vm:up");
21 21
         $this->setDescription("Spin up your development machine");
Please login to merge, or discard this patch.
src/Magestead/Command/VM/UpCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     protected function configure()
17 17
     {
18
-        $this->_projectPath = getcwd();
18
+        $this->_projectPath=getcwd();
19 19
 
20 20
         $this->setName("vm:up");
21 21
         $this->setDescription("Spin up your development machine");
Please login to merge, or discard this patch.
src/Magestead/Command/VM/HaltCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     protected function configure()
17 17
     {
18
-        $this->_projectPath = getcwd();
18
+        $this->_projectPath=getcwd();
19 19
 
20 20
         $this->setName("vm:up");
21 21
         $this->setDescription("Spin up your development machine");
Please login to merge, or discard this patch.
src/Magestead/Command/VM/RunCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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";
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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
 
22 22
         $this->setName('vm:run');
23 23
         $this->setDescription('Run commands on your development machine via SSH');
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function execute(InputInterface $input, OutputInterface $output)
34 34
     {
35
-        $command = $input->getArgument('ssh-command');
35
+        $command=$input->getArgument('ssh-command');
36 36
         $output->writeln('<info>Running "'.$command.'" on Magestead</info>');
37 37
 
38
-        $passedCommand = "vagrant ssh -c '".$command."'";
38
+        $passedCommand="vagrant ssh -c '".$command."'";
39 39
 
40 40
         return new ProcessCommand($passedCommand, $this->_projectPath, $output);
41 41
     }
Please login to merge, or discard this patch.
src/Magestead/Command/Index/ShowModeCommand.php 3 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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':
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     protected function configure()
21 21
     {
22
-        $this->_projectPath = getcwd();
22
+        $this->_projectPath=getcwd();
23 23
         $this->setName('index:mode:show');
24 24
         $this->setDescription('Show index mode');
25 25
         $this->addArgument('index', InputArgument::OPTIONAL, '[indexer]');
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function execute(InputInterface $input, OutputInterface $output)
35 35
     {
36
-        $index = $input->getArgument('index');
36
+        $index=$input->getArgument('index');
37 37
 
38
-        $command = $this->getCommand(new Config($output), $index);
38
+        $command=$this->getCommand(new Config($output), $index);
39 39
         if ($command) {
40 40
             $output->writeln('<info>Getting index mode</info>');
41
-            $passedCommand = "vagrant ssh -c '".$command."'";
41
+            $passedCommand="vagrant ssh -c '".$command."'";
42 42
 
43 43
             return new ProcessCommand($passedCommand, $this->_projectPath, $output);
44 44
         }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function getCommand(Config $config, $index)
56 56
     {
57
-        $type = $config->type;
57
+        $type=$config->type;
58 58
         switch ($type) {
59 59
             case 'magento2':
60 60
                 return "cd /var/www/public;bin/magento indexer:show-mode $index";
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
                 break;
59 59
         }
60 60
 
61
-        return false;
61
+        return FALSE;
62 62
     }
63 63
 }
Please login to merge, or discard this patch.