Completed
Push — epic/2.0.0 ( fdbf62...0828e2 )
by Steven
07:13 queued 04:31
created
src/Magestead/Helper/Options.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -53,20 +53,20 @@
 block discarded – undo
53 53
     public function getAllOptions()
54 54
     {
55 55
         return [
56
-          'app' => $this->_app,
57
-          'server' => $this->_server,
58
-          'phpver' => $this->_phpVer,
59
-          'os' => $this->_os,
60
-          'box' => $this->_box,
61
-          'm2user' => $this->_m2Username,
62
-          'm2pass' => $this->_m2Password,
63
-          'repo_url' => $this->_repoUrl,
64
-          'ip_address' => $this->_ipAddress,
65
-          'cpus' => $this->_cpus,
66
-          'memory_limit' => $this->_memorylimit,
67
-          'locale' => $this->_locale,
68
-          'default_currency' => $this->_currency,
69
-          'base_url' => $this->_baseUrl,
56
+            'app' => $this->_app,
57
+            'server' => $this->_server,
58
+            'phpver' => $this->_phpVer,
59
+            'os' => $this->_os,
60
+            'box' => $this->_box,
61
+            'm2user' => $this->_m2Username,
62
+            'm2pass' => $this->_m2Password,
63
+            'repo_url' => $this->_repoUrl,
64
+            'ip_address' => $this->_ipAddress,
65
+            'cpus' => $this->_cpus,
66
+            'memory_limit' => $this->_memorylimit,
67
+            'locale' => $this->_locale,
68
+            'default_currency' => $this->_currency,
69
+            'base_url' => $this->_baseUrl,
70 70
         ];
71 71
     }
72 72
 
Please login to merge, or discard this patch.
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class Options
14 14
 {
15
-    const BOX_PREFIX = 'richdynamix/magestead-';
15
+    const BOX_PREFIX='richdynamix/magestead-';
16 16
 
17
-    protected $_app = 'magento2';
18
-    protected $_phpVer = '56';
19
-    protected $_os = 'centos65';
17
+    protected $_app='magento2';
18
+    protected $_phpVer='56';
19
+    protected $_os='centos65';
20 20
     protected $_server;
21 21
     protected $_box;
22 22
     protected $_m2Username;
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     protected $_locale;
28 28
     protected $_currency;
29 29
     protected $_baseUrl;
30
-    protected $_repoUrl = '';
30
+    protected $_repoUrl='';
31 31
 
32 32
     /**
33 33
      * Options constructor.
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
     {
82 82
         $output->writeln('<comment>Lets configure your project\'s VM</comment>');
83 83
 
84
-        $ipQuestion       = new Question("Configure the IP for your VM (192.168.47.47): ", '192.168.47.47');
85
-        $this->_ipAddress = strtolower($helper->ask($input, $output, $ipQuestion));
84
+        $ipQuestion=new Question("Configure the IP for your VM (192.168.47.47): ", '192.168.47.47');
85
+        $this->_ipAddress=strtolower($helper->ask($input, $output, $ipQuestion));
86 86
 
87
-        $cpuQuestion = new Question("How many CPU's would you like to use? (1): ", '1');
88
-        $this->_cpus = strtolower($helper->ask($input, $output, $cpuQuestion));
87
+        $cpuQuestion=new Question("How many CPU's would you like to use? (1): ", '1');
88
+        $this->_cpus=strtolower($helper->ask($input, $output, $cpuQuestion));
89 89
 
90
-        $memoryQuestion     = new Question("Define the VM memory limit (2048): ", '2048');
91
-        $this->_memorylimit = strtolower($helper->ask($input, $output, $memoryQuestion));
90
+        $memoryQuestion=new Question("Define the VM memory limit (2048): ", '2048');
91
+        $this->_memorylimit=strtolower($helper->ask($input, $output, $memoryQuestion));
92 92
     }
93 93
 
94 94
     /**
@@ -101,23 +101,23 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $output->writeln('<comment>Lets configure your project\'s application</comment>');
103 103
         if ($this->_phpVer !== '70') {
104
-            $appQuestion = new ChoiceQuestion(
104
+            $appQuestion=new ChoiceQuestion(
105 105
                 "Which application do you want to install?",
106 106
                 ['Magento', 'Magento2'],
107 107
                 0
108 108
             );
109 109
 
110
-            $this->_app = strtolower($helper->ask($input, $output, $appQuestion));
110
+            $this->_app=strtolower($helper->ask($input, $output, $appQuestion));
111 111
         }
112 112
 
113
-        $baseUrlQuestion = new Question("Enter your application's base_url ($project.dev): ", $project.'.dev');
114
-        $this->_baseUrl  = strtolower($helper->ask($input, $output, $baseUrlQuestion));
113
+        $baseUrlQuestion=new Question("Enter your application's base_url ($project.dev): ", $project.'.dev');
114
+        $this->_baseUrl=strtolower($helper->ask($input, $output, $baseUrlQuestion));
115 115
 
116
-        $currenyQuestion = new Question("Enter your application's default currency (GBP): ", 'GBP');
117
-        $this->_currency = $helper->ask($input, $output, $currenyQuestion);
116
+        $currenyQuestion=new Question("Enter your application's default currency (GBP): ", 'GBP');
117
+        $this->_currency=$helper->ask($input, $output, $currenyQuestion);
118 118
 
119
-        $localeQuestion = new Question("Enter your application's default locale (en_GB): ", 'en_GB');
120
-        $this->_locale  = $helper->ask($input, $output, $localeQuestion);
119
+        $localeQuestion=new Question("Enter your application's default locale (en_GB): ", 'en_GB');
120
+        $this->_locale=$helper->ask($input, $output, $localeQuestion);
121 121
     }
122 122
 
123 123
     /**
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
      */
143 143
     protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output)
144 144
     {
145
-        $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
146
-        $versioning     = $helper->ask($input, $output, $versionControl);
145
+        $versionControl=new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
146
+        $versioning=$helper->ask($input, $output, $versionControl);
147 147
         if ($versioning) {
148
-            $repoQuestion   = new Question("Enter your full GitHub/BitBucket repo URL: ", '');
149
-            $this->_repoUrl = strtolower($helper->ask($input, $output, $repoQuestion));
148
+            $repoQuestion=new Question("Enter your full GitHub/BitBucket repo URL: ", '');
149
+            $this->_repoUrl=strtolower($helper->ask($input, $output, $repoQuestion));
150 150
         }
151 151
     }
152 152
 
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
      */
158 158
     protected function askForAuth($helper, InputInterface $input, OutputInterface $output)
159 159
     {
160
-        $username          = new Question("Please enter your Magento username (public key): ", '');
161
-        $this->_m2Username = $helper->ask($input, $output, $username);
160
+        $username=new Question("Please enter your Magento username (public key): ", '');
161
+        $this->_m2Username=$helper->ask($input, $output, $username);
162 162
 
163
-        $password          = new Question("Please enter your Magento password (private key): ", '');
164
-        $this->_m2Password = $helper->ask($input, $output, $password);
163
+        $password=new Question("Please enter your Magento password (private key): ", '');
164
+        $this->_m2Password=$helper->ask($input, $output, $password);
165 165
     }
166 166
 
167 167
     /**
@@ -172,12 +172,12 @@  discard block
 block discarded – undo
172 172
      */
173 173
     protected function verifyAuth($helper, InputInterface $input, OutputInterface $output)
174 174
     {
175
-        $authFile = $_SERVER['HOME'] . "/.composer/auth.json";
175
+        $authFile=$_SERVER['HOME']."/.composer/auth.json";
176 176
 
177
-        $authObj = [];
177
+        $authObj=[];
178 178
         if (file_exists($authFile)) {
179
-            $authJson = file_get_contents($authFile);
180
-            $authObj  = (array)json_decode($authJson);
179
+            $authJson=file_get_contents($authFile);
180
+            $authObj=(array) json_decode($authJson);
181 181
 
182 182
             if (isset($authObj['http-basic']) && isset($authObj['http-basic']->{'repo.magento.com'})) {
183 183
                 return true;
@@ -186,10 +186,10 @@  discard block
 block discarded – undo
186 186
 
187 187
         $this->askForAuth($helper, $input, $output);
188 188
 
189
-        $authObj['http-basic']['repo.magento.com']['username'] = $this->_m2Username;
190
-        $authObj['http-basic']['repo.magento.com']['password'] = $this->_m2Password;
189
+        $authObj['http-basic']['repo.magento.com']['username']=$this->_m2Username;
190
+        $authObj['http-basic']['repo.magento.com']['password']=$this->_m2Password;
191 191
 
192
-        $authJson = json_encode($authObj);
192
+        $authJson=json_encode($authObj);
193 193
         return file_put_contents($authFile, $authJson);
194 194
     }
195 195
 
@@ -201,13 +201,13 @@  discard block
 block discarded – undo
201 201
     protected function setPhp($helper, InputInterface $input, OutputInterface $output)
202 202
     {
203 203
         $output->writeln('<info>Keep in mind PHP7 is only available for Magento 2</info>');
204
-        $phpVerQuestion = new ChoiceQuestion(
204
+        $phpVerQuestion=new ChoiceQuestion(
205 205
             "Which version of PHP should be installed?",
206 206
             ['56', '70'],
207 207
             0
208 208
         );
209 209
 
210
-        $this->_phpVer = $helper->ask($input, $output, $phpVerQuestion);
210
+        $this->_phpVer=$helper->ask($input, $output, $phpVerQuestion);
211 211
     }
212 212
 
213 213
     /**
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      */
216 216
     protected function setVagrantBox()
217 217
     {
218
-        $this->_box = self::BOX_PREFIX . $this->_os . "-$this->_server-php$this->_phpVer";
218
+        $this->_box=self::BOX_PREFIX.$this->_os."-$this->_server-php$this->_phpVer";
219 219
     }
220 220
 
221 221
     /**
@@ -238,13 +238,13 @@  discard block
 block discarded – undo
238 238
      */
239 239
     protected function setWebServer($helper, InputInterface $input, OutputInterface $output)
240 240
     {
241
-        $serverQuestion = new ChoiceQuestion(
241
+        $serverQuestion=new ChoiceQuestion(
242 242
             "Which webserver would you like?",
243 243
             ['NGINX', 'Apache'],
244 244
             0
245 245
         );
246 246
 
247
-        $this->_server = strtolower($helper->ask($input, $output, $serverQuestion));
247
+        $this->_server=strtolower($helper->ask($input, $output, $serverQuestion));
248 248
     }
249 249
 
250 250
     /**
@@ -254,12 +254,12 @@  discard block
 block discarded – undo
254 254
      */
255 255
     protected function setOperatingSystem($helper, InputInterface $input, OutputInterface $output)
256 256
     {
257
-        $osQuestion = new ChoiceQuestion(
257
+        $osQuestion=new ChoiceQuestion(
258 258
             "Which OS would you like to install?",
259 259
             ['CentOS 6.5', 'Ubuntu 14'],
260 260
             0
261 261
         );
262 262
 
263
-        $this->_os = str_replace(' ', '', str_replace('.', '', strtolower($helper->ask($input, $output, $osQuestion))));
263
+        $this->_os=str_replace(' ', '', str_replace('.', '', strtolower($helper->ask($input, $output, $osQuestion))));
264 264
     }
265 265
 }
266 266
\ No newline at end of file
Please login to merge, or discard this patch.
provision/puphpet/magestead/magento2/set_repo_credentials.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
 $privateKey = "$argv[2]";
7 7
 
8 8
 $contents = [
9
-	"http-basic" => [
10
-		"repo.magento.com" => [
11
-			"username" => $publicKey,
12
-			"password" => $privateKey,
13
-		]
14
-	]
9
+    "http-basic" => [
10
+        "repo.magento.com" => [
11
+            "username" => $publicKey,
12
+            "password" => $privateKey,
13
+        ]
14
+    ]
15 15
 ];
16 16
 
17 17
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$file = "/home/vagrant/.composer/auth.json";
3
+$file="/home/vagrant/.composer/auth.json";
4 4
 
5
-$publicKey  = "$argv[1]";
6
-$privateKey = "$argv[2]";
5
+$publicKey="$argv[1]";
6
+$privateKey="$argv[2]";
7 7
 
8
-$contents = [
8
+$contents=[
9 9
 	"http-basic" => [
10 10
 		"repo.magento.com" => [
11 11
 			"username" => $publicKey,
Please login to merge, or discard this patch.
provision/puphpet/magestead/magento2/add_redis_env.php 2 patches
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -4,48 +4,48 @@
 block discarded – undo
4 4
 $env = include $file;
5 5
 
6 6
 $env['cache'] =  
7
-	array (
8
-		'frontend' => 
9
-		array (
10
-			'default' => 
11
-			array (
12
-				'backend' => 'Cm_Cache_Backend_Redis',
13
-    		'backend_options' => 
14
-    		array (
15
-					'server' => '127.0.0.1',
16
-					'port' => '6379',
17
-					'persistent' => '',
18
-					'database' => '0',
19
-					'force_standalone' => '0',
20
-					'connect_retries' => '1',
21
-					'read_timeout' => '10',
22
-					'automatic_cleaning_factor' => '0',
23
-					'compress_data' => '1',
24
-					'compress_tags' => '1',
25
-					'compress_threshold' => '20480',
26
-					'compression_lib' => 'gzip',
7
+    array (
8
+        'frontend' => 
9
+        array (
10
+            'default' => 
11
+            array (
12
+                'backend' => 'Cm_Cache_Backend_Redis',
13
+            'backend_options' => 
14
+            array (
15
+                    'server' => '127.0.0.1',
16
+                    'port' => '6379',
17
+                    'persistent' => '',
18
+                    'database' => '0',
19
+                    'force_standalone' => '0',
20
+                    'connect_retries' => '1',
21
+                    'read_timeout' => '10',
22
+                    'automatic_cleaning_factor' => '0',
23
+                    'compress_data' => '1',
24
+                    'compress_tags' => '1',
25
+                    'compress_threshold' => '20480',
26
+                    'compression_lib' => 'gzip',
27 27
         )
28
-			),
29
-			'page_cache' => 
30
-			array (
31
-	      'backend' => 'Cm_Cache_Backend_Redis',
32
-	      'backend_options' => 
33
-		    array (
34
-					'server' => '127.0.0.1',
35
-					'port' => '6379',
36
-					'persistent' => '',
37
-					'database' => '1',
38
-					'force_standalone' => '0',
39
-					'connect_retries' => '1',
40
-					'read_timeout' => '10',
41
-					'automatic_cleaning_factor' => '0',
42
-					'compress_data' => '0',
43
-					'compress_tags' => '1',
44
-					'compress_threshold' => '20480',
45
-					'compression_lib' => 'gzip',
46
-				),
47
-			),
48
-		)
49
-	);
28
+            ),
29
+            'page_cache' => 
30
+            array (
31
+            'backend' => 'Cm_Cache_Backend_Redis',
32
+            'backend_options' => 
33
+            array (
34
+                    'server' => '127.0.0.1',
35
+                    'port' => '6379',
36
+                    'persistent' => '',
37
+                    'database' => '1',
38
+                    'force_standalone' => '0',
39
+                    'connect_retries' => '1',
40
+                    'read_timeout' => '10',
41
+                    'automatic_cleaning_factor' => '0',
42
+                    'compress_data' => '0',
43
+                    'compress_tags' => '1',
44
+                    'compress_threshold' => '20480',
45
+                    'compression_lib' => 'gzip',
46
+                ),
47
+            ),
48
+        )
49
+    );
50 50
 
51 51
 file_put_contents($file, "<?php \n \n return ".var_export($env,true).";");
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$file = "$argv[1]/magento2/app/etc/env.php";
4
-$env  = include $file;
3
+$file="$argv[1]/magento2/app/etc/env.php";
4
+$env=include $file;
5 5
 
6
-$env['cache'] =  
7
-	array (
6
+$env['cache']=  
7
+	array(
8 8
 		'frontend' => 
9
-		array (
9
+		array(
10 10
 			'default' => 
11
-			array (
11
+			array(
12 12
 				'backend' => 'Cm_Cache_Backend_Redis',
13 13
     		'backend_options' => 
14
-    		array (
14
+    		array(
15 15
 					'server' => '127.0.0.1',
16 16
 					'port' => '6379',
17 17
 					'persistent' => '',
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
         )
28 28
 			),
29 29
 			'page_cache' => 
30
-			array (
30
+			array(
31 31
 	      'backend' => 'Cm_Cache_Backend_Redis',
32 32
 	      'backend_options' => 
33
-		    array (
33
+		    array(
34 34
 					'server' => '127.0.0.1',
35 35
 					'port' => '6379',
36 36
 					'persistent' => '',
@@ -48,4 +48,4 @@  discard block
 block discarded – undo
48 48
 		)
49 49
 	);
50 50
 
51
-file_put_contents($file, "<?php \n \n return ".var_export($env,true).";");
51
+file_put_contents($file, "<?php \n \n return ".var_export($env, true).";");
Please login to merge, or discard this patch.
src/Magestead/Helper/HostsPluginChecker.php 1 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/Command/PhpspecCommand.php 1 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/RunCommand.php 1 patch
Spacing   +3 added lines, -3 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("vm:run");
22 22
         $this->setDescription("Run commands on your development machine via SSH");
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
      */
31 31
     protected function execute(InputInterface $input, OutputInterface $output)
32 32
     {
33
-        $command = $input->getArgument('ssh-command');
33
+        $command=$input->getArgument('ssh-command');
34 34
         $output->writeln('<info>Running "'.$command.'" on Magestead</info>');
35 35
 
36
-        $passedCommand = "vagrant ssh -c '". $command ."'";
36
+        $passedCommand="vagrant ssh -c '".$command."'";
37 37
         return new ProcessCommand($passedCommand, $this->_projectPath, $output);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Magestead/Command/VM/UpCommand.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/Index/ShowModeCommand.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:show");
23 23
         $this->setDescription("Show index mode");
24 24
         $this->addArgument('index', InputArgument::OPTIONAL, '[indexer]');
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected function execute(InputInterface $input, OutputInterface $output)
33 33
     {
34
-        $index = $input->getArgument('index');
34
+        $index=$input->getArgument('index');
35 35
 
36
-        $command = $this->getCommand(new Config($output), $index);
36
+        $command=$this->getCommand(new Config($output), $index);
37 37
         if ($command) {
38 38
             $output->writeln('<info>Getting index mode</info>');
39
-            $passedCommand = "vagrant ssh -c '". $command ."'";
39
+            $passedCommand="vagrant ssh -c '".$command."'";
40 40
             return new ProcessCommand($passedCommand, $this->_projectPath, $output);
41 41
         }
42 42
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     protected function getCommand(Config $config, $index)
52 52
     {
53
-        $type = $config->type;
53
+        $type=$config->type;
54 54
         switch ($type) {
55 55
             case 'magento2':
56 56
                 return "cd /var/www/public;bin/magento indexer:show-mode $index";
Please login to merge, or discard this patch.
src/Magestead/Command/ProcessCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
      */
29 29
     protected function run($command, $projectPath, OutputInterface $output)
30 30
     {
31
-        $process = new Process($command, $projectPath, array_merge($_SERVER, $_ENV), null, null);
31
+        $process=new Process($command, $projectPath, array_merge($_SERVER, $_ENV), null, null);
32 32
 
33
-        $process->run(function ($type, $line) use ($output) {
33
+        $process->run(function($type, $line) use ($output) {
34 34
             $output->write($line);
35 35
         });
36 36
     }
Please login to merge, or discard this patch.