Completed
Push — develop ( f14dbe...c520bf )
by Steven
03:04
created
src/Magestead/Installers/Magento2Project.php 3 patches
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     protected function composerInstall($projectPath, OutputInterface $output)
39 39
     {
40 40
         $output->writeln('<info>Installing Magento 2 with Composer</info>');
41
-        $command = 'composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition public';
41
+        $command='composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition public';
42 42
         new ProcessCommand($command, $projectPath, $output);
43 43
 
44 44
         $this->setComposerBinDir($projectPath);
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     protected function addPhpSpecPackage($projectPath, OutputInterface $output)
54 54
     {
55 55
         $output->writeln('<comment>Installing PHPSpec</comment>');
56
-        $command = 'cd '.$projectPath.'/public; composer require phpspec/phpspec --dev;';
56
+        $command='cd '.$projectPath.'/public; composer require phpspec/phpspec --dev;';
57 57
         new ProcessCommand($command, $projectPath, $output);
58 58
 
59 59
         $this->setPhpSpecPermissions($projectPath, $output);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     protected function addBehatPackage($projectPath, OutputInterface $output)
67 67
     {
68 68
         $output->writeln('<comment>Installing Behat</comment>');
69
-        $command = 'cd '.$projectPath.'/public; composer require behat/behat --dev;';
69
+        $command='cd '.$projectPath.'/public; composer require behat/behat --dev;';
70 70
         new ProcessCommand($command, $projectPath, $output);
71 71
 
72 72
         $this->setBehatPermissions($projectPath, $output);
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
         $this->setPermissions($projectPath, $output);
83 83
 
84 84
         $output->writeln('<info>Installing Magento 2 Software</info>');
85
-        $locale           = $options['magestead']['apps']['mba_12345']['locale'];
86
-        $db_name          = $options['magestead']['apps']['mba_12345']['db_name'];
87
-        $base_url         = $options['magestead']['apps']['mba_12345']['base_url'];
88
-        $default_currency = $options['magestead']['apps']['mba_12345']['default_currency'];
85
+        $locale=$options['magestead']['apps']['mba_12345']['locale'];
86
+        $db_name=$options['magestead']['apps']['mba_12345']['db_name'];
87
+        $base_url=$options['magestead']['apps']['mba_12345']['base_url'];
88
+        $default_currency=$options['magestead']['apps']['mba_12345']['default_currency'];
89 89
 
90
-        $install = 'vagrant ssh -c \'cd /var/www/public; bin/magento setup:install --base-url=http://'.$base_url.'/ \
90
+        $install='vagrant ssh -c \'cd /var/www/public; bin/magento setup:install --base-url=http://'.$base_url.'/ \
91 91
 --db-host=localhost \
92 92
 --db-name='.$db_name.' \
93 93
 --db-user=magestead \
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         if (true === $options['installSampleData']) {
113 113
             $output->writeln('<info>Installing Magento 2 Sample Data</info>');
114
-            $command = 'vagrant ssh -c \'cd /var/www; php bin/magento sampledata:deploy';
114
+            $command='vagrant ssh -c \'cd /var/www; php bin/magento sampledata:deploy';
115 115
             new ProcessCommand($command, $projectPath, $output);    
116 116
         }
117 117
     }
@@ -123,15 +123,15 @@  discard block
 block discarded – undo
123 123
     protected function setPermissions($projectPath, OutputInterface $output)
124 124
     {
125 125
         $output->writeln('<info>Setting Permissions</info>');
126
-        $command = 'vagrant ssh -c \'cd /var/www/public; sudo find . -type d -exec chmod 700 {} \;\'';
126
+        $command='vagrant ssh -c \'cd /var/www/public; sudo find . -type d -exec chmod 700 {} \;\'';
127 127
         new ProcessCommand($command, $projectPath, $output);
128 128
         $output->writeln('<comment>Folder Permissions Set</comment>');
129 129
 
130
-        $command = 'vagrant ssh -c \'cd /var/www/public; sudo find . -type f -exec chmod 600 {} \;\'';
130
+        $command='vagrant ssh -c \'cd /var/www/public; sudo find . -type f -exec chmod 600 {} \;\'';
131 131
         new ProcessCommand($command, $projectPath, $output);
132 132
         $output->writeln('<comment>File Permissions Set</comment>');
133 133
 
134
-        $command = 'vagrant ssh -c \'cd /var/www/public; sudo chmod +x bin/magento; sudo chmod 755 bin/phpspec; sudo chmod 755 bin/behat;\'';
134
+        $command='vagrant ssh -c \'cd /var/www/public; sudo chmod +x bin/magento; sudo chmod 755 bin/phpspec; sudo chmod 755 bin/behat;\'';
135 135
         new ProcessCommand($command, $projectPath, $output);
136 136
         $output->writeln('<comment>bin/magento Permissions Set</comment>');
137 137
     }
@@ -143,10 +143,10 @@  discard block
 block discarded – undo
143 143
     protected function configureRedis($projectPath, OutputInterface $output)
144 144
     {
145 145
         $output->writeln('<comment>Configuring Redis Cache</comment>');
146
-        $file = "$projectPath/public/app/etc/env.php";
147
-        $env  = include $file;
146
+        $file="$projectPath/public/app/etc/env.php";
147
+        $env=include $file;
148 148
 
149
-        $env['cache'] = [
149
+        $env['cache']=[
150 150
             'frontend' => [
151 151
                 'default' => [
152 152
                     'backend' => 'Cm_Cache_Backend_Redis',
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             ],
186 186
         ];
187 187
 
188
-        file_put_contents($file, "<?php \n \n return ".var_export($env,true).";");
188
+        file_put_contents($file, "<?php \n \n return ".var_export($env, true).";");
189 189
     }
190 190
 
191 191
     /**
@@ -195,11 +195,11 @@  discard block
 block discarded – undo
195 195
      */
196 196
     protected function finaliseSetup(array $options, $projectPath, OutputInterface $output)
197 197
     {
198
-        $command = 'vagrant ssh -c \'cd /var/www/public; bin/magento indexer:reindex; \'';
198
+        $command='vagrant ssh -c \'cd /var/www/public; bin/magento indexer:reindex; \'';
199 199
         $output->writeln('<comment>Reindexing Tables</comment>');
200 200
         new ProcessCommand($command, $projectPath, $output);
201 201
 
202
-        $command = 'vagrant ssh -c \'cd /var/www/public; bin/magento cache:flush;\'';
202
+        $command='vagrant ssh -c \'cd /var/www/public; bin/magento cache:flush;\'';
203 203
         $output->writeln('<comment>Flushing All Cache</comment>');
204 204
         new ProcessCommand($command, $projectPath, $output);
205 205
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     protected function showCredentials(array $options, OutputInterface $output)
215 215
     {
216 216
         $output->writeln('<info>SUCCESS: Magestead has finished installing Magento 2!</info>');
217
-        $table = new Table($output);
217
+        $table=new Table($output);
218 218
         $table
219 219
             ->setHeaders(['Username', 'Password', 'Base URL', 'Admin URI'])
220 220
             ->setRows([
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
     protected function processVcs(array $options, $projectPath, OutputInterface $output)
235 235
     {
236 236
         if (!empty($options['repo_url'])) {
237
-            copy($projectPath . "/puphpet/magestead/magento2/stubs/gitignore.tmp", $projectPath . "/.gitignore");
237
+            copy($projectPath."/puphpet/magestead/magento2/stubs/gitignore.tmp", $projectPath."/.gitignore");
238 238
             return new VersionControl($options['repo_url'], $projectPath, $output);
239 239
         }
240 240
     }
@@ -244,10 +244,10 @@  discard block
 block discarded – undo
244 244
      */
245 245
     protected function setComposerBinDir($projectPath)
246 246
     {
247
-        $file     = "$projectPath/public/composer.json";
248
-        $composer = json_decode(file_get_contents($file), true);
247
+        $file="$projectPath/public/composer.json";
248
+        $composer=json_decode(file_get_contents($file), true);
249 249
 
250
-        $composer['config']['bin-dir'] = 'bin';
250
+        $composer['config']['bin-dir']='bin';
251 251
         file_put_contents($file, json_encode($composer));
252 252
     }
253 253
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      */
258 258
     protected function setPhpSpecPermissions($projectPath, OutputInterface $output)
259 259
     {
260
-        $command = 'vagrant ssh -c \'cd /var/www/public; sudo chmod 755 bin/phpspec; bin/phpspec run\'';
260
+        $command='vagrant ssh -c \'cd /var/www/public; sudo chmod 755 bin/phpspec; bin/phpspec run\'';
261 261
         new ProcessCommand($command, $projectPath, $output);
262 262
     }
263 263
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      */
268 268
     protected function setBehatPermissions($projectPath, OutputInterface $output)
269 269
     {
270
-        $command = 'vagrant ssh -c \'cd /var/www/public; sudo chmod 755 bin/behat; bin/behat --init\'';
270
+        $command='vagrant ssh -c \'cd /var/www/public; sudo chmod 755 bin/behat; bin/behat --init\'';
271 271
         new ProcessCommand($command, $projectPath, $output);
272 272
     }
273 273
 }
274 274
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +14 added lines, -28 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
      * @param $projectPath
21 21
      * @param OutputInterface $output
22 22
      */
23
-    public function __construct(array $options, array $config, $projectPath, OutputInterface $output)
24
-    {
23
+    public function __construct(array $options, array $config, $projectPath, OutputInterface $output) {
25 24
         $this->composerInstall($projectPath, $output);
26 25
         $this->installMagento($config, $projectPath, $output);
27 26
         $this->installSampleData($options, $projectPath, $output);
@@ -35,8 +34,7 @@  discard block
 block discarded – undo
35 34
      * @param $projectPath
36 35
      * @param OutputInterface $output
37 36
      */
38
-    protected function composerInstall($projectPath, OutputInterface $output)
39
-    {
37
+    protected function composerInstall($projectPath, OutputInterface $output) {
40 38
         $output->writeln('<info>Installing Magento 2 with Composer</info>');
41 39
         $command = 'composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition public';
42 40
         new ProcessCommand($command, $projectPath, $output);
@@ -50,8 +48,7 @@  discard block
 block discarded – undo
50 48
      * @param $projectPath
51 49
      * @param OutputInterface $output
52 50
      */
53
-    protected function addPhpSpecPackage($projectPath, OutputInterface $output)
54
-    {
51
+    protected function addPhpSpecPackage($projectPath, OutputInterface $output) {
55 52
         $output->writeln('<comment>Installing PHPSpec</comment>');
56 53
         $command = 'cd '.$projectPath.'/public; composer require phpspec/phpspec --dev;';
57 54
         new ProcessCommand($command, $projectPath, $output);
@@ -63,8 +60,7 @@  discard block
 block discarded – undo
63 60
      * @param $projectPath
64 61
      * @param OutputInterface $output
65 62
      */
66
-    protected function addBehatPackage($projectPath, OutputInterface $output)
67
-    {
63
+    protected function addBehatPackage($projectPath, OutputInterface $output) {
68 64
         $output->writeln('<comment>Installing Behat</comment>');
69 65
         $command = 'cd '.$projectPath.'/public; composer require behat/behat --dev;';
70 66
         new ProcessCommand($command, $projectPath, $output);
@@ -77,8 +73,7 @@  discard block
 block discarded – undo
77 73
      * @param $projectPath
78 74
      * @param OutputInterface $output
79 75
      */
80
-    protected function installMagento(array $options, $projectPath, OutputInterface $output)
81
-    {
76
+    protected function installMagento(array $options, $projectPath, OutputInterface $output) {
82 77
         $this->setPermissions($projectPath, $output);
83 78
 
84 79
         $output->writeln('<info>Installing Magento 2 Software</info>');
@@ -107,8 +102,7 @@  discard block
 block discarded – undo
107 102
         new ProcessCommand($install, $projectPath, $output);
108 103
     }
109 104
 
110
-    protected function installSampleData($options, $projectPath, OutputInterface $output)
111
-    {
105
+    protected function installSampleData($options, $projectPath, OutputInterface $output) {
112 106
         if (true === $options['installSampleData']) {
113 107
             $output->writeln('<info>Installing Magento 2 Sample Data</info>');
114 108
             $command = 'vagrant ssh -c \'cd /var/www; php bin/magento sampledata:deploy';
@@ -120,8 +114,7 @@  discard block
 block discarded – undo
120 114
      * @param $projectPath
121 115
      * @param OutputInterface $output
122 116
      */
123
-    protected function setPermissions($projectPath, OutputInterface $output)
124
-    {
117
+    protected function setPermissions($projectPath, OutputInterface $output) {
125 118
         $output->writeln('<info>Setting Permissions</info>');
126 119
         $command = 'vagrant ssh -c \'cd /var/www/public; sudo find . -type d -exec chmod 700 {} \;\'';
127 120
         new ProcessCommand($command, $projectPath, $output);
@@ -140,8 +133,7 @@  discard block
 block discarded – undo
140 133
      * @param $projectPath
141 134
      * @param OutputInterface $output
142 135
      */
143
-    protected function configureRedis($projectPath, OutputInterface $output)
144
-    {
136
+    protected function configureRedis($projectPath, OutputInterface $output) {
145 137
         $output->writeln('<comment>Configuring Redis Cache</comment>');
146 138
         $file = "$projectPath/public/app/etc/env.php";
147 139
         $env  = include $file;
@@ -193,8 +185,7 @@  discard block
 block discarded – undo
193 185
      * @param $projectPath
194 186
      * @param OutputInterface $output
195 187
      */
196
-    protected function finaliseSetup(array $options, $projectPath, OutputInterface $output)
197
-    {
188
+    protected function finaliseSetup(array $options, $projectPath, OutputInterface $output) {
198 189
         $command = 'vagrant ssh -c \'cd /var/www/public; bin/magento indexer:reindex; \'';
199 190
         $output->writeln('<comment>Reindexing Tables</comment>');
200 191
         new ProcessCommand($command, $projectPath, $output);
@@ -211,8 +202,7 @@  discard block
 block discarded – undo
211 202
      * @param array $options
212 203
      * @param OutputInterface $output
213 204
      */
214
-    protected function showCredentials(array $options, OutputInterface $output)
215
-    {
205
+    protected function showCredentials(array $options, OutputInterface $output) {
216 206
         $output->writeln('<info>SUCCESS: Magestead has finished installing Magento 2!</info>');
217 207
         $table = new Table($output);
218 208
         $table
@@ -231,8 +221,7 @@  discard block
 block discarded – undo
231 221
      * @param OutputInterface $output
232 222
      * @return VersionControl|null
233 223
      */
234
-    protected function processVcs(array $options, $projectPath, OutputInterface $output)
235
-    {
224
+    protected function processVcs(array $options, $projectPath, OutputInterface $output) {
236 225
         if (!empty($options['repo_url'])) {
237 226
             copy($projectPath . "/puphpet/magestead/magento2/stubs/gitignore.tmp", $projectPath . "/.gitignore");
238 227
             return new VersionControl($options['repo_url'], $projectPath, $output);
@@ -242,8 +231,7 @@  discard block
 block discarded – undo
242 231
     /**
243 232
      * @param $projectPath
244 233
      */
245
-    protected function setComposerBinDir($projectPath)
246
-    {
234
+    protected function setComposerBinDir($projectPath) {
247 235
         $file     = "$projectPath/public/composer.json";
248 236
         $composer = json_decode(file_get_contents($file), true);
249 237
 
@@ -255,8 +243,7 @@  discard block
 block discarded – undo
255 243
      * @param $projectPath
256 244
      * @param OutputInterface $output
257 245
      */
258
-    protected function setPhpSpecPermissions($projectPath, OutputInterface $output)
259
-    {
246
+    protected function setPhpSpecPermissions($projectPath, OutputInterface $output) {
260 247
         $command = 'vagrant ssh -c \'cd /var/www/public; sudo chmod 755 bin/phpspec; bin/phpspec run\'';
261 248
         new ProcessCommand($command, $projectPath, $output);
262 249
     }
@@ -265,8 +252,7 @@  discard block
 block discarded – undo
265 252
      * @param $projectPath
266 253
      * @param OutputInterface $output
267 254
      */
268
-    protected function setBehatPermissions($projectPath, OutputInterface $output)
269
-    {
255
+    protected function setBehatPermissions($projectPath, OutputInterface $output) {
270 256
         $command = 'vagrant ssh -c \'cd /var/www/public; sudo chmod 755 bin/behat; bin/behat --init\'';
271 257
         new ProcessCommand($command, $projectPath, $output);
272 258
     }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
     protected function installSampleData($options, $projectPath, OutputInterface $output)
111 111
     {
112
-        if (true === $options['installSampleData']) {
112
+        if (TRUE === $options['installSampleData']) {
113 113
             $output->writeln('<info>Installing Magento 2 Sample Data</info>');
114 114
             $command = 'vagrant ssh -c \'cd /var/www; php bin/magento sampledata:deploy';
115 115
             new ProcessCommand($command, $projectPath, $output);    
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             ],
186 186
         ];
187 187
 
188
-        file_put_contents($file, "<?php \n \n return ".var_export($env,true).";");
188
+        file_put_contents($file, "<?php \n \n return ".var_export($env,TRUE).";");
189 189
     }
190 190
 
191 191
     /**
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     protected function setComposerBinDir($projectPath)
246 246
     {
247 247
         $file     = "$projectPath/public/composer.json";
248
-        $composer = json_decode(file_get_contents($file), true);
248
+        $composer = json_decode(file_get_contents($file), TRUE);
249 249
 
250 250
         $composer['config']['bin-dir'] = 'bin';
251 251
         file_put_contents($file, json_encode($composer));
Please login to merge, or discard this patch.
src/Magestead/Service/VersionControl.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function __construct($repoUrl, $projectPath, OutputInterface $output)
19 19
     {
20
-        $this->_output = $output;
21
-        $this->_repoUrl = $repoUrl;
22
-        $this->_projectPath = $projectPath;
20
+        $this->_output=$output;
21
+        $this->_repoUrl=$repoUrl;
22
+        $this->_projectPath=$projectPath;
23 23
 
24 24
         $this->execute($output);
25 25
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function init()
48 48
     {
49
-        $command = 'git init; git remote add origin ' . $this->_repoUrl;
49
+        $command='git init; git remote add origin '.$this->_repoUrl;
50 50
         new ProcessCommand($command, $this->_projectPath, $this->_output);
51 51
 
52 52
         return $this;
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function addFiles()
61 61
     {
62
-        $command = 'git add -A';
62
+        $command='git add -A';
63 63
         new ProcessCommand($command, $this->_projectPath, $this->_output);
64 64
 
65 65
         return $this;
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function commitFiles()
74 74
     {
75
-        $command = "git commit -m 'Initial commit'";
75
+        $command="git commit -m 'Initial commit'";
76 76
         new ProcessCommand($command, $this->_projectPath, $this->_output);
77 77
 
78 78
         return $this;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function pushFiles()
87 87
     {
88
-        $command = "git push -u origin master";
88
+        $command="git push -u origin master";
89 89
         new ProcessCommand($command, $this->_projectPath, $this->_output);
90 90
 
91 91
         return $this;
Please login to merge, or discard this patch.
src/Magestead/Command/NewCommand.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 
26 26
     protected function configure()
27 27
     {
28
-        $this->_basePath    = dirname( __FILE__ ) . '/../../../';
29
-        $this->_projectPath = getcwd();
28
+        $this->_basePath=dirname(__FILE__).'/../../../';
29
+        $this->_projectPath=getcwd();
30 30
 
31 31
         $this->setName("new");
32 32
         $this->setDescription("Initialise new Magestead project into current working directory");
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected function execute(InputInterface $input, OutputInterface $output)
43 43
     {
44
-        $project = $this->setProject($input);
44
+        $project=$this->setProject($input);
45 45
 
46
-        $helper  = $this->getHelper('question');
47
-        $options = (new Options($helper, $input, $output, $project))->getAllOptions();
46
+        $helper=$this->getHelper('question');
47
+        $options=(new Options($helper, $input, $output, $project))->getAllOptions();
48 48
 
49 49
         $this->setupProject($output, $options);
50 50
 
@@ -62,17 +62,17 @@  discard block
 block discarded – undo
62 62
     protected function copyConfigFiles($source, $target, OutputInterface $output)
63 63
     {
64 64
         try {
65
-            $progress = new ProgressBar($output, 3720);
65
+            $progress=new ProgressBar($output, 3720);
66 66
             $progress->start();
67 67
             foreach (
68
-                $iterator = new \RecursiveIteratorIterator(
68
+                $iterator=new \RecursiveIteratorIterator(
69 69
                     new \RecursiveDirectoryIterator($source, \RecursiveDirectoryIterator::SKIP_DOTS),
70 70
                     \RecursiveIteratorIterator::SELF_FIRST) as $item
71 71
             ) {
72 72
                 if ($item->isDir()) {
73
-                    mkdir($target . DIRECTORY_SEPARATOR . $iterator->getSubPathName());
73
+                    mkdir($target.DIRECTORY_SEPARATOR.$iterator->getSubPathName());
74 74
                 } else {
75
-                    copy($item, $target . DIRECTORY_SEPARATOR . $iterator->getSubPathName());
75
+                    copy($item, $target.DIRECTORY_SEPARATOR.$iterator->getSubPathName());
76 76
                 }
77 77
                 $progress->advance();
78 78
             }
@@ -89,24 +89,24 @@  discard block
 block discarded – undo
89 89
      */
90 90
     protected function configureProject(array $options, OutputInterface $output)
91 91
     {
92
-        $msConfig = $this->getConfigFile($output);
92
+        $msConfig=$this->getConfigFile($output);
93 93
 
94
-        $app = ($options['app'] == 'magento2') ? 'magento2' : 'magento';
95
-        $hostname = 'magestead-' . $options['base_url'];
94
+        $app=($options['app'] == 'magento2') ? 'magento2' : 'magento';
95
+        $hostname='magestead-'.$options['base_url'];
96 96
 
97
-        $msConfig['vagrantfile']['vm']['box']                           = $options['box'];
98
-        $msConfig['vagrantfile']['vm']['box_url']                       = $options['box'];
99
-        $msConfig['vagrantfile']['vm']['hostname']                      = $hostname;
100
-        $msConfig['vagrantfile']['vm']['memory']                        = $options['memory_limit'];
101
-        $msConfig['vagrantfile']['vm']['network']['private_network']    = $options['ip_address'];
102
-        $msConfig['magestead']['apps']['mba_12345']['type']             = $app;
103
-        $msConfig['magestead']['apps']['mba_12345']['locale']           = $options['locale'];
104
-        $msConfig['magestead']['apps']['mba_12345']['default_currency'] = $options['default_currency'];
105
-        $msConfig['magestead']['apps']['mba_12345']['base_url']         = $options['base_url'];
106
-        $msConfig['magestead']['os']                                    = $options['os'];
107
-        $msConfig['magestead']['server']                                = $options['server'];
97
+        $msConfig['vagrantfile']['vm']['box']=$options['box'];
98
+        $msConfig['vagrantfile']['vm']['box_url']=$options['box'];
99
+        $msConfig['vagrantfile']['vm']['hostname']=$hostname;
100
+        $msConfig['vagrantfile']['vm']['memory']=$options['memory_limit'];
101
+        $msConfig['vagrantfile']['vm']['network']['private_network']=$options['ip_address'];
102
+        $msConfig['magestead']['apps']['mba_12345']['type']=$app;
103
+        $msConfig['magestead']['apps']['mba_12345']['locale']=$options['locale'];
104
+        $msConfig['magestead']['apps']['mba_12345']['default_currency']=$options['default_currency'];
105
+        $msConfig['magestead']['apps']['mba_12345']['base_url']=$options['base_url'];
106
+        $msConfig['magestead']['os']=$options['os'];
107
+        $msConfig['magestead']['server']=$options['server'];
108 108
 
109
-        $this->_msConfig = $msConfig;
109
+        $this->_msConfig=$msConfig;
110 110
 
111 111
         $this->saveConfigFile($msConfig, $output);
112 112
 
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
      */
119 119
     protected function getConfigFile(OutputInterface $output)
120 120
     {
121
-        $yaml = new Parser();
121
+        $yaml=new Parser();
122 122
         try {
123
-            return $yaml->parse(file_get_contents($this->_projectPath . '/magestead.yaml'));
123
+            return $yaml->parse(file_get_contents($this->_projectPath.'/magestead.yaml'));
124 124
         } catch (ParseException $e) {
125 125
             $output->writeln('<error>Unable to parse the YAML string</error>');
126 126
             printf("Unable to parse the YAML string: %s", $e->getMessage());
@@ -133,11 +133,11 @@  discard block
 block discarded – undo
133 133
      */
134 134
     protected function saveConfigFile(array $config, OutputInterface $output)
135 135
     {
136
-        $dumper = new Dumper();
137
-        $yaml   = $dumper->dump($config, 6);
136
+        $dumper=new Dumper();
137
+        $yaml=$dumper->dump($config, 6);
138 138
 
139 139
         try {
140
-            file_put_contents($this->_projectPath . '/magestead.yaml', $yaml);
140
+            file_put_contents($this->_projectPath.'/magestead.yaml', $yaml);
141 141
         } catch (\Exception $e) {
142 142
             $output->writeln('<error>Unable to write to the YAML file</error>');
143 143
         }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     protected function setupProject(OutputInterface $output, $options)
151 151
     {
152 152
         $output->writeln('<info>Setting up project structure</info>');
153
-        $provisionFolder = $this->_basePath . "provision";
153
+        $provisionFolder=$this->_basePath."provision";
154 154
         $this->copyConfigFiles($provisionFolder, $this->_projectPath, $output);
155 155
         $this->configureProject($options, $output);
156 156
 
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
      */
165 165
     protected function setProject(InputInterface $input)
166 166
     {
167
-        $project = $input->getArgument('project');
168
-        $this->_projectPath = $this->_projectPath . '/' . $project;
167
+        $project=$input->getArgument('project');
168
+        $this->_projectPath=$this->_projectPath.'/'.$project;
169 169
 
170 170
 
171 171
         if (is_dir($this->_projectPath)) {
Please login to merge, or discard this patch.
src/Magestead/Command/UpdateCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function configure()
20 20
     {
21
-        $this->projectPath = getcwd();
21
+        $this->projectPath=getcwd();
22 22
 
23 23
         $this->setName("self-update");
24 24
         $this->setDescription("Check for new updates for Magestead CLI");
Please login to merge, or discard this 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
      * Configure the command and description
18 18
      */
19
-    public function configure()
20
-    {
19
+    public function configure() {
21 20
         $this->projectPath = getcwd();
22 21
 
23 22
         $this->setName("self-update");
@@ -31,8 +30,7 @@  discard block
 block discarded – undo
31 30
      * @param OutputInterface $output
32 31
      * @return ProcessCommand
33 32
      */
34
-    protected function execute(InputInterface $input, OutputInterface $output)
35
-    {
33
+    protected function execute(InputInterface $input, OutputInterface $output) {
36 34
         $output->writeln('<info>Checking for Updates</info>');
37 35
         return new ProcessCommand('composer global update richdynamix/magestead', $this->projectPath, $output);
38 36
     }
Please login to merge, or discard this patch.
src/Magestead/Helper/Options.php 4 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -56,21 +56,21 @@
 block discarded – undo
56 56
     public function getAllOptions()
57 57
     {
58 58
         return [
59
-          'app' => $this->_app,
60
-          'server' => $this->_server,
61
-          'phpver' => $this->_phpVer,
62
-          'os' => $this->_os,
63
-          'box' => $this->_box,
64
-          'm2user' => $this->_m2Username,
65
-          'm2pass' => $this->_m2Password,
66
-          'repo_url' => $this->_repoUrl,
67
-          'ip_address' => $this->_ipAddress,
68
-          'cpus' => $this->_cpus,
69
-          'memory_limit' => $this->_memorylimit,
70
-          'locale' => $this->_locale,
71
-          'default_currency' => $this->_currency,
72
-          'base_url' => $this->_baseUrl,
73
-          'installSampleData' => $this->installSampleData,
59
+            'app' => $this->_app,
60
+            'server' => $this->_server,
61
+            'phpver' => $this->_phpVer,
62
+            'os' => $this->_os,
63
+            'box' => $this->_box,
64
+            'm2user' => $this->_m2Username,
65
+            'm2pass' => $this->_m2Password,
66
+            'repo_url' => $this->_repoUrl,
67
+            'ip_address' => $this->_ipAddress,
68
+            'cpus' => $this->_cpus,
69
+            'memory_limit' => $this->_memorylimit,
70
+            'locale' => $this->_locale,
71
+            'default_currency' => $this->_currency,
72
+            'base_url' => $this->_baseUrl,
73
+            'installSampleData' => $this->installSampleData,
74 74
         ];
75 75
     }
76 76
 
Please login to merge, or discard this patch.
Spacing   +44 added lines, -44 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,8 +27,8 @@  discard block
 block discarded – undo
27 27
     protected $_locale;
28 28
     protected $_currency;
29 29
     protected $_baseUrl;
30
-    protected $_repoUrl = '';
31
-    protected $installSampleData = false;
30
+    protected $_repoUrl='';
31
+    protected $installSampleData=false;
32 32
 
33 33
     /**
34 34
      * Options constructor.
@@ -83,14 +83,14 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $output->writeln('<comment>Lets configure your project\'s VM</comment>');
85 85
 
86
-        $ipQuestion       = new Question("Configure the IP for your VM (192.168.47.47): ", '192.168.47.47');
87
-        $this->_ipAddress = strtolower($helper->ask($input, $output, $ipQuestion));
86
+        $ipQuestion=new Question("Configure the IP for your VM (192.168.47.47): ", '192.168.47.47');
87
+        $this->_ipAddress=strtolower($helper->ask($input, $output, $ipQuestion));
88 88
 
89
-        $cpuQuestion = new Question("How many CPU's would you like to use? (1): ", '1');
90
-        $this->_cpus = strtolower($helper->ask($input, $output, $cpuQuestion));
89
+        $cpuQuestion=new Question("How many CPU's would you like to use? (1): ", '1');
90
+        $this->_cpus=strtolower($helper->ask($input, $output, $cpuQuestion));
91 91
 
92
-        $memoryQuestion     = new Question("Define the VM memory limit (2048): ", '2048');
93
-        $this->_memorylimit = strtolower($helper->ask($input, $output, $memoryQuestion));
92
+        $memoryQuestion=new Question("Define the VM memory limit (2048): ", '2048');
93
+        $this->_memorylimit=strtolower($helper->ask($input, $output, $memoryQuestion));
94 94
     }
95 95
 
96 96
     /**
@@ -102,22 +102,22 @@  discard block
 block discarded – undo
102 102
     protected function setApplicationSettings($helper, InputInterface $input, OutputInterface $output, $project)
103 103
     {
104 104
         $output->writeln('<comment>Lets configure your project\'s application</comment>');
105
-        $appQuestion = new ChoiceQuestion(
105
+        $appQuestion=new ChoiceQuestion(
106 106
             "Which application do you want to install?",
107 107
             ['Magento', 'Magento2'],
108 108
             0
109 109
         );
110 110
 
111
-        $this->_app = strtolower($helper->ask($input, $output, $appQuestion));
111
+        $this->_app=strtolower($helper->ask($input, $output, $appQuestion));
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
     /**
@@ -143,18 +143,18 @@  discard block
 block discarded – undo
143 143
      */
144 144
     protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output)
145 145
     {
146
-        $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
147
-        $versioning     = $helper->ask($input, $output, $versionControl);
146
+        $versionControl=new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
147
+        $versioning=$helper->ask($input, $output, $versionControl);
148 148
         if ($versioning) {
149
-            $repoQuestion   = new Question("Enter your full GitHub/BitBucket repo URL: ", '');
150
-            $this->_repoUrl = strtolower($helper->ask($input, $output, $repoQuestion));
149
+            $repoQuestion=new Question("Enter your full GitHub/BitBucket repo URL: ", '');
150
+            $this->_repoUrl=strtolower($helper->ask($input, $output, $repoQuestion));
151 151
         }
152 152
     }
153 153
 
154 154
     protected function installSampleData($helper, InputInterface $input, OutputInterface $output)
155 155
     {
156
-        $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", false);
157
-        $this->installSampleData = $helper->ask($input, $output, $sampleInstall);
156
+        $sampleInstall=new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", false);
157
+        $this->installSampleData=$helper->ask($input, $output, $sampleInstall);
158 158
     }
159 159
 
160 160
     /**
@@ -164,11 +164,11 @@  discard block
 block discarded – undo
164 164
      */
165 165
     protected function askForAuth($helper, InputInterface $input, OutputInterface $output)
166 166
     {
167
-        $username          = new Question("Please enter your Magento username (public key): ", '');
168
-        $this->_m2Username = $helper->ask($input, $output, $username);
167
+        $username=new Question("Please enter your Magento username (public key): ", '');
168
+        $this->_m2Username=$helper->ask($input, $output, $username);
169 169
 
170
-        $password          = new Question("Please enter your Magento password (private key): ", '');
171
-        $this->_m2Password = $helper->ask($input, $output, $password);
170
+        $password=new Question("Please enter your Magento password (private key): ", '');
171
+        $this->_m2Password=$helper->ask($input, $output, $password);
172 172
     }
173 173
 
174 174
     /**
@@ -179,12 +179,12 @@  discard block
 block discarded – undo
179 179
      */
180 180
     protected function verifyAuth($helper, InputInterface $input, OutputInterface $output)
181 181
     {
182
-        $authFile = $_SERVER['HOME'] . "/.composer/auth.json";
182
+        $authFile=$_SERVER['HOME']."/.composer/auth.json";
183 183
 
184
-        $authObj = [];
184
+        $authObj=[];
185 185
         if (file_exists($authFile)) {
186
-            $authJson = file_get_contents($authFile);
187
-            $authObj  = (array)json_decode($authJson);
186
+            $authJson=file_get_contents($authFile);
187
+            $authObj=(array) json_decode($authJson);
188 188
 
189 189
             if (isset($authObj['http-basic']) && isset($authObj['http-basic']->{'repo.magento.com'})) {
190 190
                 return true;
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
 
194 194
         $this->askForAuth($helper, $input, $output);
195 195
 
196
-        $authObj['http-basic']['repo.magento.com']['username'] = $this->_m2Username;
197
-        $authObj['http-basic']['repo.magento.com']['password'] = $this->_m2Password;
196
+        $authObj['http-basic']['repo.magento.com']['username']=$this->_m2Username;
197
+        $authObj['http-basic']['repo.magento.com']['password']=$this->_m2Password;
198 198
 
199
-        $authJson = json_encode($authObj);
199
+        $authJson=json_encode($authObj);
200 200
         return file_put_contents($authFile, $authJson);
201 201
     }
202 202
 
@@ -207,13 +207,13 @@  discard block
 block discarded – undo
207 207
      */
208 208
     protected function setPhp($helper, InputInterface $input, OutputInterface $output)
209 209
     {
210
-        $phpVerQuestion = new ChoiceQuestion(
210
+        $phpVerQuestion=new ChoiceQuestion(
211 211
             "Which version of PHP should be installed?",
212 212
             ['56', '70'],
213 213
             0
214 214
         );
215 215
 
216
-        $this->_phpVer = $helper->ask($input, $output, $phpVerQuestion);
216
+        $this->_phpVer=$helper->ask($input, $output, $phpVerQuestion);
217 217
     }
218 218
 
219 219
     /**
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     protected function setVagrantBox()
223 223
     {
224
-        $this->_box = self::BOX_PREFIX . $this->_os . "-$this->_server-php$this->_phpVer";
224
+        $this->_box=self::BOX_PREFIX.$this->_os."-$this->_server-php$this->_phpVer";
225 225
     }
226 226
 
227 227
     /**
@@ -244,13 +244,13 @@  discard block
 block discarded – undo
244 244
      */
245 245
     protected function setWebServer($helper, InputInterface $input, OutputInterface $output)
246 246
     {
247
-        $serverQuestion = new ChoiceQuestion(
247
+        $serverQuestion=new ChoiceQuestion(
248 248
             "Which webserver would you like?",
249 249
             ['NGINX', 'Apache'],
250 250
             0
251 251
         );
252 252
 
253
-        $this->_server = strtolower($helper->ask($input, $output, $serverQuestion));
253
+        $this->_server=strtolower($helper->ask($input, $output, $serverQuestion));
254 254
     }
255 255
 
256 256
     /**
@@ -260,12 +260,12 @@  discard block
 block discarded – undo
260 260
      */
261 261
     protected function setOperatingSystem($helper, InputInterface $input, OutputInterface $output)
262 262
     {
263
-        $osQuestion = new ChoiceQuestion(
263
+        $osQuestion=new ChoiceQuestion(
264 264
             "Which OS would you like to install?",
265 265
             ['CentOS 6.5', 'Ubuntu 14'],
266 266
             0
267 267
         );
268 268
 
269
-        $this->_os = str_replace(' ', '', str_replace('.', '', strtolower($helper->ask($input, $output, $osQuestion))));
269
+        $this->_os=str_replace(' ', '', str_replace('.', '', strtolower($helper->ask($input, $output, $osQuestion))));
270 270
     }
271 271
 }
272 272
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +14 added lines, -28 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param OutputInterface $output
38 38
      * @param $project
39 39
      */
40
-    public function __construct($helper, InputInterface $input, OutputInterface $output, $project)
41
-    {
40
+    public function __construct($helper, InputInterface $input, OutputInterface $output, $project) {
42 41
         $this->setVagrantSettings($helper, $input, $output);
43 42
 
44 43
         $this->setServerConfig($helper, $input, $output);
@@ -53,8 +52,7 @@  discard block
 block discarded – undo
53 52
     /**
54 53
      * @return array
55 54
      */
56
-    public function getAllOptions()
57
-    {
55
+    public function getAllOptions() {
58 56
         return [
59 57
           'app' => $this->_app,
60 58
           'server' => $this->_server,
@@ -79,8 +77,7 @@  discard block
 block discarded – undo
79 77
      * @param InputInterface $input
80 78
      * @param OutputInterface $output
81 79
      */
82
-    protected function setVagrantSettings($helper, InputInterface $input, OutputInterface $output)
83
-    {
80
+    protected function setVagrantSettings($helper, InputInterface $input, OutputInterface $output) {
84 81
         $output->writeln('<comment>Lets configure your project\'s VM</comment>');
85 82
 
86 83
         $ipQuestion       = new Question("Configure the IP for your VM (192.168.47.47): ", '192.168.47.47');
@@ -99,8 +96,7 @@  discard block
 block discarded – undo
99 96
      * @param OutputInterface $output
100 97
      * @param $project
101 98
      */
102
-    protected function setApplicationSettings($helper, InputInterface $input, OutputInterface $output, $project)
103
-    {
99
+    protected function setApplicationSettings($helper, InputInterface $input, OutputInterface $output, $project) {
104 100
         $output->writeln('<comment>Lets configure your project\'s application</comment>');
105 101
         $appQuestion = new ChoiceQuestion(
106 102
             "Which application do you want to install?",
@@ -126,8 +122,7 @@  discard block
 block discarded – undo
126 122
      * @param OutputInterface $output
127 123
      * @return boolean|integer
128 124
      */
129
-    protected function setMagento2Settings($helper, InputInterface $input, OutputInterface $output)
130
-    {
125
+    protected function setMagento2Settings($helper, InputInterface $input, OutputInterface $output) {
131 126
         if ($this->_app === 'magento2') {
132 127
             $this->installSampleData($helper, $input, $output);
133 128
             return $this->verifyAuth($helper, $input, $output);
@@ -141,8 +136,7 @@  discard block
 block discarded – undo
141 136
      * @param InputInterface $input
142 137
      * @param OutputInterface $output
143 138
      */
144
-    protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output)
145
-    {
139
+    protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output) {
146 140
         $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
147 141
         $versioning     = $helper->ask($input, $output, $versionControl);
148 142
         if ($versioning) {
@@ -151,8 +145,7 @@  discard block
 block discarded – undo
151 145
         }
152 146
     }
153 147
 
154
-    protected function installSampleData($helper, InputInterface $input, OutputInterface $output)
155
-    {
148
+    protected function installSampleData($helper, InputInterface $input, OutputInterface $output) {
156 149
         $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", false);
157 150
         $this->installSampleData = $helper->ask($input, $output, $sampleInstall);
158 151
     }
@@ -162,8 +155,7 @@  discard block
 block discarded – undo
162 155
      * @param InputInterface $input
163 156
      * @param OutputInterface $output
164 157
      */
165
-    protected function askForAuth($helper, InputInterface $input, OutputInterface $output)
166
-    {
158
+    protected function askForAuth($helper, InputInterface $input, OutputInterface $output) {
167 159
         $username          = new Question("Please enter your Magento username (public key): ", '');
168 160
         $this->_m2Username = $helper->ask($input, $output, $username);
169 161
 
@@ -177,8 +169,7 @@  discard block
 block discarded – undo
177 169
      * @param OutputInterface $output
178 170
      * @return boolean|integer
179 171
      */
180
-    protected function verifyAuth($helper, InputInterface $input, OutputInterface $output)
181
-    {
172
+    protected function verifyAuth($helper, InputInterface $input, OutputInterface $output) {
182 173
         $authFile = $_SERVER['HOME'] . "/.composer/auth.json";
183 174
 
184 175
         $authObj = [];
@@ -205,8 +196,7 @@  discard block
 block discarded – undo
205 196
      * @param InputInterface $input
206 197
      * @param OutputInterface $output
207 198
      */
208
-    protected function setPhp($helper, InputInterface $input, OutputInterface $output)
209
-    {
199
+    protected function setPhp($helper, InputInterface $input, OutputInterface $output) {
210 200
         $phpVerQuestion = new ChoiceQuestion(
211 201
             "Which version of PHP should be installed?",
212 202
             ['56', '70'],
@@ -219,8 +209,7 @@  discard block
 block discarded – undo
219 209
     /**
220 210
      * Set box name from concat user options
221 211
      */
222
-    protected function setVagrantBox()
223
-    {
212
+    protected function setVagrantBox() {
224 213
         $this->_box = self::BOX_PREFIX . $this->_os . "-$this->_server-php$this->_phpVer";
225 214
     }
226 215
 
@@ -229,8 +218,7 @@  discard block
 block discarded – undo
229 218
      * @param InputInterface $input
230 219
      * @param OutputInterface $output
231 220
      */
232
-    protected function setServerConfig($helper, InputInterface $input, OutputInterface $output)
233
-    {
221
+    protected function setServerConfig($helper, InputInterface $input, OutputInterface $output) {
234 222
         $output->writeln('<comment>Lets configure your server</comment>');
235 223
         $this->setOperatingSystem($helper, $input, $output);
236 224
         $this->setWebServer($helper, $input, $output);
@@ -242,8 +230,7 @@  discard block
 block discarded – undo
242 230
      * @param InputInterface $input
243 231
      * @param OutputInterface $output
244 232
      */
245
-    protected function setWebServer($helper, InputInterface $input, OutputInterface $output)
246
-    {
233
+    protected function setWebServer($helper, InputInterface $input, OutputInterface $output) {
247 234
         $serverQuestion = new ChoiceQuestion(
248 235
             "Which webserver would you like?",
249 236
             ['NGINX', 'Apache'],
@@ -258,8 +245,7 @@  discard block
 block discarded – undo
258 245
      * @param InputInterface $input
259 246
      * @param OutputInterface $output
260 247
      */
261
-    protected function setOperatingSystem($helper, InputInterface $input, OutputInterface $output)
262
-    {
248
+    protected function setOperatingSystem($helper, InputInterface $input, OutputInterface $output) {
263 249
         $osQuestion = new ChoiceQuestion(
264 250
             "Which OS would you like to install?",
265 251
             ['CentOS 6.5', 'Ubuntu 14'],
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     protected $_currency;
29 29
     protected $_baseUrl;
30 30
     protected $_repoUrl = '';
31
-    protected $installSampleData = false;
31
+    protected $installSampleData = FALSE;
32 32
 
33 33
     /**
34 34
      * Options constructor.
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             return $this->verifyAuth($helper, $input, $output);
134 134
         }
135 135
 
136
-        return true;
136
+        return TRUE;
137 137
     }
138 138
 
139 139
     /**
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output)
145 145
     {
146
-        $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
146
+        $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", FALSE);
147 147
         $versioning     = $helper->ask($input, $output, $versionControl);
148 148
         if ($versioning) {
149 149
             $repoQuestion   = new Question("Enter your full GitHub/BitBucket repo URL: ", '');
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
     protected function installSampleData($helper, InputInterface $input, OutputInterface $output)
155 155
     {
156
-        $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", false);
156
+        $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", FALSE);
157 157
         $this->installSampleData = $helper->ask($input, $output, $sampleInstall);
158 158
     }
159 159
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             $authObj  = (array)json_decode($authJson);
188 188
 
189 189
             if (isset($authObj['http-basic']) && isset($authObj['http-basic']->{'repo.magento.com'})) {
190
-                return true;
190
+                return TRUE;
191 191
             }
192 192
         }
193 193
 
Please login to merge, or discard this patch.