Completed
Pull Request — develop (#102)
by
unknown
03:39
created
src/Magestead/Helper/HostsPluginChecker.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@  discard block
 block discarded – undo
12 12
      * @param array $options
13 13
      * @param OutputInterface $output
14 14
      */
15
-    public static function verify(array $options, OutputInterface $output)
16
-    {
15
+    public static function verify(array $options, OutputInterface $output) {
17 16
         $hostPlugin = `vagrant plugin list | grep vagrant-hostsupdater`;
18 17
         if (is_null($hostPlugin)) {
19 18
             self::editHostsInstructions($options, $output);
@@ -26,8 +25,7 @@  discard block
 block discarded – undo
26 25
      * @param array $options
27 26
      * @param OutputInterface $output
28 27
      */
29
-    protected static function editHostsInstructions(array $options, OutputInterface $output)
30
-    {
28
+    protected static function editHostsInstructions(array $options, OutputInterface $output) {
31 29
         $output->writeln('<comment>NOTE: You will need to add the following to your hosts file!</comment>');
32 30
         $comment = $options['vagrantfile']['vm']['network']['private_network'] .
33 31
             ' ' . $options['magestead']['apps']['mba_12345']['base_url'];
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public static function verify(array $options, OutputInterface $output)
16 16
     {
17
-        $hostPlugin = `vagrant plugin list | grep vagrant-hostsupdater`;
17
+        $hostPlugin=`vagrant plugin list | grep vagrant-hostsupdater`;
18 18
         if (is_null($hostPlugin)) {
19 19
             self::editHostsInstructions($options, $output);
20 20
 
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
     protected static function editHostsInstructions(array $options, OutputInterface $output)
30 30
     {
31 31
         $output->writeln('<comment>NOTE: You will need to add the following to your hosts file!</comment>');
32
-        $comment = $options['vagrantfile']['vm']['network']['private_network'] .
33
-            ' ' . $options['magestead']['apps']['mba_12345']['base_url'];
34
-        $output->writeln('<info>' . $comment . '</info>');
32
+        $comment=$options['vagrantfile']['vm']['network']['private_network'].
33
+            ' '.$options['magestead']['apps']['mba_12345']['base_url'];
34
+        $output->writeln('<info>'.$comment.'</info>');
35 35
     }
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
src/Magestead/Installers/Project.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 block discarded – undo
13 13
      * @param $output
14 14
      * @return Magento2Project|MagentoProject
15 15
      */
16
-    public static function create(array $options, array $config, $projectPath, $output)
17
-    {
16
+    public static function create(array $options, array $config, $projectPath, $output) {
18 17
         switch ($options['app']) {
19 18
             case "magento":
20 19
                 return new MagentoProject($options, $config, $projectPath, $output);
Please login to merge, or discard this patch.
src/Magestead/Command/PhpspecCommand.php 2 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("phpspec");
@@ -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
 
35 33
         $command = $this->getCommand(new Config($output), $option);
@@ -47,8 +45,7 @@  discard block
 block discarded – undo
47 45
      * @param $option
48 46
      * @return bool|string
49 47
      */
50
-    protected function getCommand(Config $config, $option)
51
-    {
48
+    protected function getCommand(Config $config, $option) {
52 49
         $type = $config->type;
53 50
         switch ($type) {
54 51
             case 'magento':
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     protected function configure()
18 18
     {
19
-        $this->_projectPath = getcwd();
19
+        $this->_projectPath=getcwd();
20 20
 
21 21
         $this->setName("phpspec");
22 22
         $this->setDescription("Run PHPSpec against your project");
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
      */
31 31
     protected function execute(InputInterface $input, OutputInterface $output)
32 32
     {
33
-        $option = $input->getArgument('option');
33
+        $option=$input->getArgument('option');
34 34
 
35
-        $command = $this->getCommand(new Config($output), $option);
35
+        $command=$this->getCommand(new Config($output), $option);
36 36
         if (!$command) {
37 37
             return $output->writeln('<error>Command not available for this application</error>');
38 38
         }
39 39
 
40 40
         $output->writeln('<info>Running PHPSpec</info>');
41
-        $passedCommand = "vagrant ssh -c '". $command ."'";
41
+        $passedCommand="vagrant ssh -c '".$command."'";
42 42
         passthru($passedCommand);
43 43
     }
44 44
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     protected function getCommand(Config $config, $option)
51 51
     {
52
-        $type = $config->type;
52
+        $type=$config->type;
53 53
         switch ($type) {
54 54
             case 'magento':
55 55
                 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
@@ -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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     protected function configure()
20 20
     {
21
-        $this->_projectPath = getcwd();
21
+        $this->_projectPath=getcwd();
22 22
 
23 23
         $this->setName("vm:destroy");
24 24
         $this->setDescription("Destroy 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
@@ -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.
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:status");
21 21
         $this->setDescription("Get the status of 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
@@ -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.
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:resume");
21 21
         $this->setDescription("Resume your suspended 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
@@ -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.
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:suspend");
21 21
         $this->setDescription("Suspend 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
@@ -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.
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
@@ -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.
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:halt");
21 21
         $this->setDescription("Halt your development machine");
Please login to merge, or discard this patch.