Completed
Push — develop ( 9d2575...73ee45 )
by Steven
03:13
created
src/Magestead/Exceptions/AuthSavePermissionsException.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  */
7 7
 class AuthSavePermissionsException extends \RuntimeException
8 8
 {
9
-    const TPL = "\n\nFile auth.json is not writable. Please add the following content manually: \n%s\n";
9
+    const TPL="\n\nFile auth.json is not writable. Please add the following content manually: \n%s\n";
10 10
 
11 11
     /**
12 12
      * @param array $auth
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function setAuthObject(array $auth)
16 16
     {
17
-        $this->message = sprintf(static::TPL, json_encode($auth, JSON_PRETTY_PRINT));
17
+        $this->message=sprintf(static::TPL, json_encode($auth, JSON_PRETTY_PRINT));
18 18
         return $this;
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
      * @param array $auth
13 13
      * @return self
14 14
      */
15
-    public function setAuthObject(array $auth)
16
-    {
15
+    public function setAuthObject(array $auth) {
17 16
         $this->message = sprintf(static::TPL, json_encode($auth, JSON_PRETTY_PRINT));
18 17
         return $this;
19 18
     }
Please login to merge, or discard this patch.
src/Magestead/Helper/Config.php 3 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function __construct(OutputInterface $output)
25 25
     {
26
-        $this->_projectPath = getcwd();
27
-        $this->output = $output;
26
+        $this->_projectPath=getcwd();
27
+        $this->output=$output;
28 28
     }
29 29
 
30 30
     /**
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     function __get($name)
35 35
     {
36
-        $this->_config = $this->getConfigFile($this->output);
36
+        $this->_config=$this->getConfigFile($this->output);
37 37
         return $this->_config['magestead']['apps']['mba_12345'][$name];
38 38
     }
39 39
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     protected function getConfigFile(OutputInterface $output)
45 45
     {
46
-        $config = new Parser();
46
+        $config=new Parser();
47 47
         try {
48 48
             return $config->parse($this->readConfigFile());
49 49
         } catch (ParseException $e) {
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
      */
60 60
     protected function readConfigFile()
61 61
     {
62
-        if (!file_exists($this->_projectPath . '/magestead.yaml')) {
62
+        if (!file_exists($this->_projectPath.'/magestead.yaml')) {
63 63
             throw new MissingConfigFileException('No config file was found, are you in the project root?');
64 64
         }
65 65
 
66
-        return file_get_contents($this->_projectPath . '/magestead.yaml');
66
+        return file_get_contents($this->_projectPath.'/magestead.yaml');
67 67
     }
68 68
 
69 69
     /**
@@ -74,15 +74,15 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function getComposerHomeDir()
76 76
     {
77
-        $composerConfig = shell_exec('composer config --list --global | grep "\[home\]"');
78
-        $composerConfig = array_filter(explode(PHP_EOL, $composerConfig));
77
+        $composerConfig=shell_exec('composer config --list --global | grep "\[home\]"');
78
+        $composerConfig=array_filter(explode(PHP_EOL, $composerConfig));
79 79
 
80 80
         foreach ($composerConfig as $line) {
81
-            $parts = array_filter(explode(" ", $line));
82
-            $composerConfig[$parts[0]] = $parts[1];
81
+            $parts=array_filter(explode(" ", $line));
82
+            $composerConfig[$parts[0]]=$parts[1];
83 83
         }
84 84
 
85
-        $composerHomePath = realpath(trim($composerConfig['[home]']));
85
+        $composerHomePath=realpath(trim($composerConfig['[home]']));
86 86
 
87 87
         if (false === $composerHomePath) {
88 88
             throw new MissingComposerHomeException('Composer home directory is not found. Do you have it installed?');
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             $output->writeln('<error>Unable to parse the config file</error>');
51 51
         }
52 52
 
53
-        return false;
53
+        return FALSE;
54 54
     }
55 55
 
56 56
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         $composerHomePath = realpath(trim($composerConfig['[home]']));
86 86
 
87
-        if (false === $composerHomePath) {
87
+        if (FALSE === $composerHomePath) {
88 88
             throw new MissingComposerHomeException('Composer home directory is not found. Do you have it installed?');
89 89
         }
90 90
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
      * Config constructor.
22 22
      * @param OutputInterface $output
23 23
      */
24
-    public function __construct(OutputInterface $output)
25
-    {
24
+    public function __construct(OutputInterface $output) {
26 25
         $this->_projectPath = getcwd();
27 26
         $this->output = $output;
28 27
     }
@@ -31,8 +30,7 @@  discard block
 block discarded – undo
31 30
      * @param $name
32 31
      * @return mixed
33 32
      */
34
-    function __get($name)
35
-    {
33
+    function __get($name) {
36 34
         $this->_config = $this->getConfigFile($this->output);
37 35
         return $this->_config['magestead']['apps']['mba_12345'][$name];
38 36
     }
@@ -41,8 +39,7 @@  discard block
 block discarded – undo
41 39
      * @param OutputInterface $output
42 40
      * @return bool|mixed
43 41
      */
44
-    protected function getConfigFile(OutputInterface $output)
45
-    {
42
+    protected function getConfigFile(OutputInterface $output) {
46 43
         $config = new Parser();
47 44
         try {
48 45
             return $config->parse($this->readConfigFile());
@@ -57,8 +54,7 @@  discard block
 block discarded – undo
57 54
      * @return string
58 55
      * @throws MissingConfigFileException
59 56
      */
60
-    protected function readConfigFile()
61
-    {
57
+    protected function readConfigFile() {
62 58
         if (!file_exists($this->_projectPath . '/magestead.yaml')) {
63 59
             throw new MissingConfigFileException('No config file was found, are you in the project root?');
64 60
         }
@@ -72,8 +68,7 @@  discard block
 block discarded – undo
72 68
      * @return string
73 69
      * @throws MissingComposerHomeException
74 70
      */
75
-    public function getComposerHomeDir()
76
-    {
71
+    public function getComposerHomeDir() {
77 72
         $composerConfig = shell_exec('composer config --list --global | grep "\[home\]"');
78 73
         $composerConfig = array_filter(explode(PHP_EOL, $composerConfig));
79 74
 
Please login to merge, or discard this patch.
src/Magestead/Helper/Options.php 3 patches
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
  */
14 14
 class Options
15 15
 {
16
-    const BOX_PREFIX = 'richdynamix/magestead-';
16
+    const BOX_PREFIX='richdynamix/magestead-';
17 17
 
18
-    protected $_app = 'magento2';
19
-    protected $_phpVer = '56';
20
-    protected $_os = 'centos65';
18
+    protected $_app='magento2';
19
+    protected $_phpVer='56';
20
+    protected $_os='centos65';
21 21
     protected $_server;
22 22
     protected $_box;
23 23
     protected $_m2Username;
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
     protected $_locale;
29 29
     protected $_currency;
30 30
     protected $_baseUrl;
31
-    protected $_repoUrl = '';
32
-    protected $installSampleData = false;
31
+    protected $_repoUrl='';
32
+    protected $installSampleData=false;
33 33
 
34 34
     /**
35 35
      * Options constructor.
@@ -84,14 +84,14 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $output->writeln('<comment>Lets configure your project\'s VM</comment>');
86 86
 
87
-        $ipQuestion       = new Question("Configure the IP for your VM (192.168.47.47): ", '192.168.47.47');
88
-        $this->_ipAddress = strtolower($helper->ask($input, $output, $ipQuestion));
87
+        $ipQuestion=new Question("Configure the IP for your VM (192.168.47.47): ", '192.168.47.47');
88
+        $this->_ipAddress=strtolower($helper->ask($input, $output, $ipQuestion));
89 89
 
90
-        $cpuQuestion = new Question("How many CPU's would you like to use? (1): ", '1');
91
-        $this->_cpus = strtolower($helper->ask($input, $output, $cpuQuestion));
90
+        $cpuQuestion=new Question("How many CPU's would you like to use? (1): ", '1');
91
+        $this->_cpus=strtolower($helper->ask($input, $output, $cpuQuestion));
92 92
 
93
-        $memoryQuestion     = new Question("Define the VM memory limit (2048): ", '2048');
94
-        $this->_memorylimit = strtolower($helper->ask($input, $output, $memoryQuestion));
93
+        $memoryQuestion=new Question("Define the VM memory limit (2048): ", '2048');
94
+        $this->_memorylimit=strtolower($helper->ask($input, $output, $memoryQuestion));
95 95
     }
96 96
 
97 97
     /**
@@ -103,22 +103,22 @@  discard block
 block discarded – undo
103 103
     protected function setApplicationSettings($helper, InputInterface $input, OutputInterface $output, $project)
104 104
     {
105 105
         $output->writeln('<comment>Lets configure your project\'s application</comment>');
106
-        $appQuestion = new ChoiceQuestion(
106
+        $appQuestion=new ChoiceQuestion(
107 107
             "Which application do you want to install?",
108 108
             ['Magento', 'Magento2'],
109 109
             0
110 110
         );
111 111
 
112
-        $this->_app = strtolower($helper->ask($input, $output, $appQuestion));
112
+        $this->_app=strtolower($helper->ask($input, $output, $appQuestion));
113 113
 
114
-        $baseUrlQuestion = new Question("Enter your application's base_url ($project.dev): ", $project.'.dev');
115
-        $this->_baseUrl  = strtolower($helper->ask($input, $output, $baseUrlQuestion));
114
+        $baseUrlQuestion=new Question("Enter your application's base_url ($project.dev): ", $project.'.dev');
115
+        $this->_baseUrl=strtolower($helper->ask($input, $output, $baseUrlQuestion));
116 116
 
117
-        $currenyQuestion = new Question("Enter your application's default currency (GBP): ", 'GBP');
118
-        $this->_currency = $helper->ask($input, $output, $currenyQuestion);
117
+        $currenyQuestion=new Question("Enter your application's default currency (GBP): ", 'GBP');
118
+        $this->_currency=$helper->ask($input, $output, $currenyQuestion);
119 119
 
120
-        $localeQuestion = new Question("Enter your application's default locale (en_GB): ", 'en_GB');
121
-        $this->_locale  = $helper->ask($input, $output, $localeQuestion);
120
+        $localeQuestion=new Question("Enter your application's default locale (en_GB): ", 'en_GB');
121
+        $this->_locale=$helper->ask($input, $output, $localeQuestion);
122 122
     }
123 123
 
124 124
     /**
@@ -144,18 +144,18 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output)
146 146
     {
147
-        $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
148
-        $versioning     = $helper->ask($input, $output, $versionControl);
147
+        $versionControl=new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
148
+        $versioning=$helper->ask($input, $output, $versionControl);
149 149
         if ($versioning) {
150
-            $repoQuestion   = new Question("Enter your full GitHub/BitBucket repo URL: ", '');
151
-            $this->_repoUrl = strtolower($helper->ask($input, $output, $repoQuestion));
150
+            $repoQuestion=new Question("Enter your full GitHub/BitBucket repo URL: ", '');
151
+            $this->_repoUrl=strtolower($helper->ask($input, $output, $repoQuestion));
152 152
         }
153 153
     }
154 154
 
155 155
     protected function installSampleData($helper, InputInterface $input, OutputInterface $output)
156 156
     {
157
-        $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", false);
158
-        $this->installSampleData = $helper->ask($input, $output, $sampleInstall);
157
+        $sampleInstall=new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", false);
158
+        $this->installSampleData=$helper->ask($input, $output, $sampleInstall);
159 159
     }
160 160
 
161 161
     /**
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
      */
166 166
     protected function askForAuth($helper, InputInterface $input, OutputInterface $output)
167 167
     {
168
-        $username          = new Question("Please enter your Magento username (public key): ", '');
169
-        $this->_m2Username = $helper->ask($input, $output, $username);
168
+        $username=new Question("Please enter your Magento username (public key): ", '');
169
+        $this->_m2Username=$helper->ask($input, $output, $username);
170 170
 
171
-        $password          = new Question("Please enter your Magento password (private key): ", '');
172
-        $this->_m2Password = $helper->ask($input, $output, $password);
171
+        $password=new Question("Please enter your Magento password (private key): ", '');
172
+        $this->_m2Password=$helper->ask($input, $output, $password);
173 173
     }
174 174
 
175 175
     /**
@@ -180,13 +180,13 @@  discard block
 block discarded – undo
180 180
      */
181 181
     protected function verifyAuth($helper, InputInterface $input, OutputInterface $output)
182 182
     {
183
-        $composerHome = (new Config($output))->getComposerHomeDir();
184
-        $authFile = $composerHome . "/auth.json";
183
+        $composerHome=(new Config($output))->getComposerHomeDir();
184
+        $authFile=$composerHome."/auth.json";
185 185
 
186
-        $authObj = [];
186
+        $authObj=[];
187 187
         if (file_exists($authFile) && is_readable($authFile)) {
188
-            $authJson = file_get_contents($authFile);
189
-            $authObj  = (array)json_decode($authJson, true);
188
+            $authJson=file_get_contents($authFile);
189
+            $authObj=(array) json_decode($authJson, true);
190 190
 
191 191
             if (isset($authObj['http-basic']) && isset($authObj['http-basic']->{'repo.magento.com'})) {
192 192
                 return true;
@@ -195,14 +195,14 @@  discard block
 block discarded – undo
195 195
 
196 196
         $this->askForAuth($helper, $input, $output);
197 197
 
198
-        $authObj['http-basic']['repo.magento.com']['username'] = $this->_m2Username;
199
-        $authObj['http-basic']['repo.magento.com']['password'] = $this->_m2Password;
198
+        $authObj['http-basic']['repo.magento.com']['username']=$this->_m2Username;
199
+        $authObj['http-basic']['repo.magento.com']['password']=$this->_m2Password;
200 200
 
201
-        $authJson = json_encode($authObj, JSON_PRETTY_PRINT);
201
+        $authJson=json_encode($authObj, JSON_PRETTY_PRINT);
202 202
 
203 203
         // check writable first
204 204
         if (!is_writable($authFile)) {
205
-            $e = new AuthSavePermissionsException();
205
+            $e=new AuthSavePermissionsException();
206 206
             throw $e->setAuthObject($authObj);
207 207
         }
208 208
 
@@ -216,13 +216,13 @@  discard block
 block discarded – undo
216 216
      */
217 217
     protected function setPhp($helper, InputInterface $input, OutputInterface $output)
218 218
     {
219
-        $phpVerQuestion = new ChoiceQuestion(
219
+        $phpVerQuestion=new ChoiceQuestion(
220 220
             "Which version of PHP should be installed?",
221 221
             ['56', '70'],
222 222
             0
223 223
         );
224 224
 
225
-        $this->_phpVer = $helper->ask($input, $output, $phpVerQuestion);
225
+        $this->_phpVer=$helper->ask($input, $output, $phpVerQuestion);
226 226
     }
227 227
 
228 228
     /**
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      */
231 231
     protected function setVagrantBox()
232 232
     {
233
-        $this->_box = self::BOX_PREFIX . $this->_os . "-$this->_server-php$this->_phpVer";
233
+        $this->_box=self::BOX_PREFIX.$this->_os."-$this->_server-php$this->_phpVer";
234 234
     }
235 235
 
236 236
     /**
@@ -253,13 +253,13 @@  discard block
 block discarded – undo
253 253
      */
254 254
     protected function setWebServer($helper, InputInterface $input, OutputInterface $output)
255 255
     {
256
-        $serverQuestion = new ChoiceQuestion(
256
+        $serverQuestion=new ChoiceQuestion(
257 257
             "Which webserver would you like?",
258 258
             ['NGINX', 'Apache'],
259 259
             0
260 260
         );
261 261
 
262
-        $this->_server = strtolower($helper->ask($input, $output, $serverQuestion));
262
+        $this->_server=strtolower($helper->ask($input, $output, $serverQuestion));
263 263
     }
264 264
 
265 265
     /**
@@ -269,12 +269,12 @@  discard block
 block discarded – undo
269 269
      */
270 270
     protected function setOperatingSystem($helper, InputInterface $input, OutputInterface $output)
271 271
     {
272
-        $osQuestion = new ChoiceQuestion(
272
+        $osQuestion=new ChoiceQuestion(
273 273
             "Which OS would you like to install?",
274 274
             ['CentOS 6.5', 'Ubuntu 14'],
275 275
             0
276 276
         );
277 277
 
278
-        $this->_os = str_replace(' ', '', str_replace('.', '', strtolower($helper->ask($input, $output, $osQuestion))));
278
+        $this->_os=str_replace(' ', '', str_replace('.', '', strtolower($helper->ask($input, $output, $osQuestion))));
279 279
     }
280 280
 }
Please login to merge, or discard this patch.
Braces   +14 added lines, -28 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@  discard block
 block discarded – undo
38 38
      * @param OutputInterface $output
39 39
      * @param $project
40 40
      */
41
-    public function __construct($helper, InputInterface $input, OutputInterface $output, $project)
42
-    {
41
+    public function __construct($helper, InputInterface $input, OutputInterface $output, $project) {
43 42
         $this->setVagrantSettings($helper, $input, $output);
44 43
 
45 44
         $this->setServerConfig($helper, $input, $output);
@@ -54,8 +53,7 @@  discard block
 block discarded – undo
54 53
     /**
55 54
      * @return array
56 55
      */
57
-    public function getAllOptions()
58
-    {
56
+    public function getAllOptions() {
59 57
         return [
60 58
           'app' => $this->_app,
61 59
           'server' => $this->_server,
@@ -80,8 +78,7 @@  discard block
 block discarded – undo
80 78
      * @param InputInterface $input
81 79
      * @param OutputInterface $output
82 80
      */
83
-    protected function setVagrantSettings($helper, InputInterface $input, OutputInterface $output)
84
-    {
81
+    protected function setVagrantSettings($helper, InputInterface $input, OutputInterface $output) {
85 82
         $output->writeln('<comment>Lets configure your project\'s VM</comment>');
86 83
 
87 84
         $ipQuestion       = new Question("Configure the IP for your VM (192.168.47.47): ", '192.168.47.47');
@@ -100,8 +97,7 @@  discard block
 block discarded – undo
100 97
      * @param OutputInterface $output
101 98
      * @param $project
102 99
      */
103
-    protected function setApplicationSettings($helper, InputInterface $input, OutputInterface $output, $project)
104
-    {
100
+    protected function setApplicationSettings($helper, InputInterface $input, OutputInterface $output, $project) {
105 101
         $output->writeln('<comment>Lets configure your project\'s application</comment>');
106 102
         $appQuestion = new ChoiceQuestion(
107 103
             "Which application do you want to install?",
@@ -127,8 +123,7 @@  discard block
 block discarded – undo
127 123
      * @param OutputInterface $output
128 124
      * @return boolean|integer
129 125
      */
130
-    protected function setMagento2Settings($helper, InputInterface $input, OutputInterface $output)
131
-    {
126
+    protected function setMagento2Settings($helper, InputInterface $input, OutputInterface $output) {
132 127
         if ($this->_app === 'magento2') {
133 128
             $this->installSampleData($helper, $input, $output);
134 129
             return $this->verifyAuth($helper, $input, $output);
@@ -142,8 +137,7 @@  discard block
 block discarded – undo
142 137
      * @param InputInterface $input
143 138
      * @param OutputInterface $output
144 139
      */
145
-    protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output)
146
-    {
140
+    protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output) {
147 141
         $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
148 142
         $versioning     = $helper->ask($input, $output, $versionControl);
149 143
         if ($versioning) {
@@ -152,8 +146,7 @@  discard block
 block discarded – undo
152 146
         }
153 147
     }
154 148
 
155
-    protected function installSampleData($helper, InputInterface $input, OutputInterface $output)
156
-    {
149
+    protected function installSampleData($helper, InputInterface $input, OutputInterface $output) {
157 150
         $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", false);
158 151
         $this->installSampleData = $helper->ask($input, $output, $sampleInstall);
159 152
     }
@@ -163,8 +156,7 @@  discard block
 block discarded – undo
163 156
      * @param InputInterface $input
164 157
      * @param OutputInterface $output
165 158
      */
166
-    protected function askForAuth($helper, InputInterface $input, OutputInterface $output)
167
-    {
159
+    protected function askForAuth($helper, InputInterface $input, OutputInterface $output) {
168 160
         $username          = new Question("Please enter your Magento username (public key): ", '');
169 161
         $this->_m2Username = $helper->ask($input, $output, $username);
170 162
 
@@ -178,8 +170,7 @@  discard block
 block discarded – undo
178 170
      * @param OutputInterface $output
179 171
      * @return boolean|integer
180 172
      */
181
-    protected function verifyAuth($helper, InputInterface $input, OutputInterface $output)
182
-    {
173
+    protected function verifyAuth($helper, InputInterface $input, OutputInterface $output) {
183 174
         $composerHome = (new Config($output))->getComposerHomeDir();
184 175
         $authFile = $composerHome . "/auth.json";
185 176
 
@@ -214,8 +205,7 @@  discard block
 block discarded – undo
214 205
      * @param InputInterface $input
215 206
      * @param OutputInterface $output
216 207
      */
217
-    protected function setPhp($helper, InputInterface $input, OutputInterface $output)
218
-    {
208
+    protected function setPhp($helper, InputInterface $input, OutputInterface $output) {
219 209
         $phpVerQuestion = new ChoiceQuestion(
220 210
             "Which version of PHP should be installed?",
221 211
             ['56', '70'],
@@ -228,8 +218,7 @@  discard block
 block discarded – undo
228 218
     /**
229 219
      * Set box name from concat user options
230 220
      */
231
-    protected function setVagrantBox()
232
-    {
221
+    protected function setVagrantBox() {
233 222
         $this->_box = self::BOX_PREFIX . $this->_os . "-$this->_server-php$this->_phpVer";
234 223
     }
235 224
 
@@ -238,8 +227,7 @@  discard block
 block discarded – undo
238 227
      * @param InputInterface $input
239 228
      * @param OutputInterface $output
240 229
      */
241
-    protected function setServerConfig($helper, InputInterface $input, OutputInterface $output)
242
-    {
230
+    protected function setServerConfig($helper, InputInterface $input, OutputInterface $output) {
243 231
         $output->writeln('<comment>Lets configure your server</comment>');
244 232
         $this->setOperatingSystem($helper, $input, $output);
245 233
         $this->setWebServer($helper, $input, $output);
@@ -251,8 +239,7 @@  discard block
 block discarded – undo
251 239
      * @param InputInterface $input
252 240
      * @param OutputInterface $output
253 241
      */
254
-    protected function setWebServer($helper, InputInterface $input, OutputInterface $output)
255
-    {
242
+    protected function setWebServer($helper, InputInterface $input, OutputInterface $output) {
256 243
         $serverQuestion = new ChoiceQuestion(
257 244
             "Which webserver would you like?",
258 245
             ['NGINX', 'Apache'],
@@ -267,8 +254,7 @@  discard block
 block discarded – undo
267 254
      * @param InputInterface $input
268 255
      * @param OutputInterface $output
269 256
      */
270
-    protected function setOperatingSystem($helper, InputInterface $input, OutputInterface $output)
271
-    {
257
+    protected function setOperatingSystem($helper, InputInterface $input, OutputInterface $output) {
272 258
         $osQuestion = new ChoiceQuestion(
273 259
             "Which OS would you like to install?",
274 260
             ['CentOS 6.5', 'Ubuntu 14'],
Please login to merge, or discard this patch.
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     protected $_currency;
30 30
     protected $_baseUrl;
31 31
     protected $_repoUrl = '';
32
-    protected $installSampleData = false;
32
+    protected $installSampleData = FALSE;
33 33
 
34 34
     /**
35 35
      * Options constructor.
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             return $this->verifyAuth($helper, $input, $output);
135 135
         }
136 136
 
137
-        return true;
137
+        return TRUE;
138 138
     }
139 139
 
140 140
     /**
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output)
146 146
     {
147
-        $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false);
147
+        $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", FALSE);
148 148
         $versioning     = $helper->ask($input, $output, $versionControl);
149 149
         if ($versioning) {
150 150
             $repoQuestion   = new Question("Enter your full GitHub/BitBucket repo URL: ", '');
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
     protected function installSampleData($helper, InputInterface $input, OutputInterface $output)
156 156
     {
157
-        $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", false);
157
+        $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", FALSE);
158 158
         $this->installSampleData = $helper->ask($input, $output, $sampleInstall);
159 159
     }
160 160
 
@@ -186,10 +186,10 @@  discard block
 block discarded – undo
186 186
         $authObj = [];
187 187
         if (file_exists($authFile) && is_readable($authFile)) {
188 188
             $authJson = file_get_contents($authFile);
189
-            $authObj  = (array)json_decode($authJson, true);
189
+            $authObj  = (array)json_decode($authJson, TRUE);
190 190
 
191 191
             if (isset($authObj['http-basic']) && isset($authObj['http-basic']->{'repo.magento.com'})) {
192
-                return true;
192
+                return TRUE;
193 193
             }
194 194
         }
195 195
 
Please login to merge, or discard this patch.