Completed
Pull Request — epic/2.0.0 (#37)
by Steven
03:03
created
src/Magestead/Command/VM/DestroyCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     protected $_projectPath;
18 18
 
19
-    protected function configure()
20
-    {
19
+    protected function configure() {
21 20
         $this->_projectPath = getcwd();
22 21
 
23 22
         $this->setName("vm:destroy");
@@ -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>Destroying your development environment</info>');
35 33
         return new ProcessCommand('vagrant destroy --force', $this->_projectPath, $output);
36 34
     }
Please login to merge, or discard this patch.
src/Magestead/Command/VM/StatusCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     protected $_projectPath;
15 15
 
16
-    protected function configure()
17
-    {
16
+    protected function configure() {
18 17
         $this->_projectPath = getcwd();
19 18
 
20 19
         $this->setName("vm:status");
@@ -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>Getting machine status</info>');
32 30
         return new ProcessCommand('vagrant status', $this->_projectPath, $output);
33 31
     }
Please login to merge, or discard this patch.
src/Magestead/Command/VM/ResumeCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     protected $_projectPath;
15 15
 
16
-    protected function configure()
17
-    {
16
+    protected function configure() {
18 17
         $this->_projectPath = getcwd();
19 18
 
20 19
         $this->setName("vm:resume");
@@ -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>Resuming your development environment</info>');
32 30
         return new ProcessCommand('vagrant resume', $this->_projectPath, $output);
33 31
     }
Please login to merge, or discard this patch.
src/Magestead/Command/VM/SuspendCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     protected $_projectPath;
15 15
 
16
-    protected function configure()
17
-    {
16
+    protected function configure() {
18 17
         $this->_projectPath = getcwd();
19 18
 
20 19
         $this->setName("vm:suspend");
@@ -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>Suspending your development machine</info>');
32 30
         return new ProcessCommand('vagrant suspend', $this->_projectPath, $output);
33 31
     }
Please login to merge, or discard this patch.
src/Magestead/Command/VM/UpCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     protected $_projectPath;
15 15
 
16
-    protected function configure()
17
-    {
16
+    protected function configure() {
18 17
         $this->_projectPath = getcwd();
19 18
 
20 19
         $this->setName("vm:up");
@@ -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>Spinning up your development machine</info>');
32 30
         return new ProcessCommand('vagrant up', $this->_projectPath, $output);
33 31
     }
Please login to merge, or discard this patch.
src/Magestead/Command/VM/HaltCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     protected $_projectPath;
15 15
 
16
-    protected function configure()
17
-    {
16
+    protected function configure() {
18 17
         $this->_projectPath = getcwd();
19 18
 
20 19
         $this->setName("vm:halt");
@@ -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>Halting your development environment</info>');
32 30
         return new ProcessCommand('vagrant halt', $this->_projectPath, $output);
33 31
     }
Please login to merge, or discard this patch.
src/Magestead/Command/VM/SshCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
     protected $_projectPath;
14 14
 
15
-    protected function configure()
16
-    {
15
+    protected function configure() {
17 16
         $this->_projectPath = getcwd();
18 17
 
19 18
         $this->setName("vm:ssh");
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
      * @param OutputInterface $output
26 25
      * @return bool
27 26
      */
28
-    protected function execute(InputInterface $input, OutputInterface $output)
29
-    {
27
+    protected function execute(InputInterface $input, OutputInterface $output) {
30 28
         passthru('vagrant ssh');
31 29
         return true;
32 30
     }
Please login to merge, or discard this patch.
src/Magestead/Command/VM/RunCommand.php 1 patch
Braces   +2 added lines, -4 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("vm:run");
@@ -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
         $command = $input->getArgument('ssh-command');
34 32
         $output->writeln('<info>Running "'.$command.'" on Magestead</info>');
35 33
 
Please login to merge, or discard this patch.
src/Magestead/Command/Index/SetModeCommand.php 1 patch
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:mode:set");
23 22
         $this->setDescription("Set index mode type");
@@ -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
         $mode = $input->getArgument('mode');
35 33
         $command = $this->getCommand(new Config($output), $mode);
36 34
         if ($command) {
@@ -47,8 +45,7 @@  discard block
 block discarded – undo
47 45
      * @param $mode
48 46
      * @return bool|string
49 47
      */
50
-    protected function getCommand(Config $config, $mode)
51
-    {
48
+    protected function getCommand(Config $config, $mode) {
52 49
         $type = $config->type;
53 50
         switch ($type) {
54 51
             case 'magento2':
Please login to merge, or discard this patch.