Completed
Push — master ( e48266...c6a956 )
by Steven
8s
created
src/Magestead/Helper/Config.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function __construct(OutputInterface $output)
17 17
     {
18
-        $this->_projectPath = getcwd();
19
-        $this->_config      = $this->getConfigFile($output);
18
+        $this->_projectPath=getcwd();
19
+        $this->_config=$this->getConfigFile($output);
20 20
     }
21 21
 
22 22
     /**
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     protected function getConfigFile(OutputInterface $output)
36 36
     {
37
-        $config = new Parser();
37
+        $config=new Parser();
38 38
         try {
39 39
             return $config->parse($this->readConfigFile());
40 40
         } catch (ParseException $e) {
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
      */
51 51
     protected function readConfigFile()
52 52
     {
53
-        if (!file_exists($this->_projectPath . '/magestead.yaml')) {
53
+        if (!file_exists($this->_projectPath.'/magestead.yaml')) {
54 54
             throw new MissingConfigFileException('No config file was found, are you in the project root?');
55 55
         }
56 56
 
57
-        return file_get_contents($this->_projectPath . '/magestead.yaml');
57
+        return file_get_contents($this->_projectPath.'/magestead.yaml');
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
src/Magestead/Command/Index/SetModeCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     protected function configure()
20 20
     {
21
-        $this->_projectPath = getcwd();
21
+        $this->_projectPath=getcwd();
22 22
         $this->setName("index:mode:set");
23 23
         $this->setDescription("Set index mode type");
24 24
         $this->addArgument('mode', InputArgument::REQUIRED, '{realtime|schedule} [indexer]');
@@ -31,11 +31,11 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected function execute(InputInterface $input, OutputInterface $output)
33 33
     {
34
-        $indexMode = $input->getArgument('mode');
35
-        $command   = $this->getCommand(new Config($output), $indexMode);
34
+        $indexMode=$input->getArgument('mode');
35
+        $command=$this->getCommand(new Config($output), $indexMode);
36 36
         if ($command) {
37 37
             $output->writeln('<info>Setting index mode</info>');
38
-            $pCommand = "vagrant ssh -c '". $command ."'";
38
+            $pCommand="vagrant ssh -c '".$command."'";
39 39
             return new ProcessCommand($pCommand, $this->_projectPath, $output);
40 40
         }
41 41
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     protected function getCommand(Config $config, $mode)
51 51
     {
52
-        $type = $config->type;
52
+        $type=$config->type;
53 53
         switch ($type) {
54 54
             case 'magento2':
55 55
                 return "cd /var/www/public;bin/magento indexer:set-mode $mode";
Please login to merge, or discard this patch.
src/Magestead/Command/Index/ReindexCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     protected function configure()
20 20
     {
21
-        $this->_projectPath = getcwd();
21
+        $this->_projectPath=getcwd();
22 22
         $this->setName("index:reindex");
23 23
         $this->setDescription("Reindex data");
24 24
         $this->addArgument('index', InputArgument::OPTIONAL, '[indexer]');
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
     protected function execute(InputInterface $input, OutputInterface $output)
33 33
     {
34 34
         $output->writeln('<info>Reindexing data</info>');
35
-        $index = $input->getArgument('index');
35
+        $index=$input->getArgument('index');
36 36
 
37
-        $command  = $this->getCommand(new Config($output), $index);
38
-        $pCommand = "vagrant ssh -c '". $command ."'";
37
+        $command=$this->getCommand(new Config($output), $index);
38
+        $pCommand="vagrant ssh -c '".$command."'";
39 39
         return new ProcessCommand($pCommand, $this->_projectPath, $output);
40 40
     }
41 41
 
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
      */
47 47
     protected function getCommand(Config $config, $index)
48 48
     {
49
-        $type = $config->type;
49
+        $type=$config->type;
50 50
         switch ($type) {
51 51
             case 'magento':
52
-                $index = (!is_null($index)) ? ' '.$index : ':all';
52
+                $index=(!is_null($index)) ? ' '.$index : ':all';
53 53
                 return "cd /var/www/public;../bin/n98-magerun.phar index:reindex$index";
54 54
                 break;
55 55
             case 'magento2':
Please login to merge, or discard this patch.
src/Magestead/Command/VM/SshCommand.php 1 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 1 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/DestroyCommand.php 1 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 1 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 1 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 1 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.