Completed
Push — master ( 282359...338c1f )
by Steven
02:58
created
src/Magestead/Command/Cache/DisableCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     protected function configure()
19 19
     {
20
-        $this->_projectPath = getcwd();
20
+        $this->_projectPath=getcwd();
21 21
         $this->setName("cache:disable");
22 22
         $this->setDescription("Disable cache types");
23 23
         $this->addArgument('type', InputArgument::OPTIONAL, '[cache code/type]');
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $output->writeln('<info>Disabling all cache types</info>');
34 34
 
35
-        $cacheType = $input->getArgument('type');
36
-        $command  = $this->getCommand(new Config($output), $cacheType);
37
-        $pCommand = "vagrant ssh -c '". $command ."'";
35
+        $cacheType=$input->getArgument('type');
36
+        $command=$this->getCommand(new Config($output), $cacheType);
37
+        $pCommand="vagrant ssh -c '".$command."'";
38 38
         return new ProcessCommand($pCommand, $this->_projectPath, $output);
39 39
     }
40 40
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function getCommand(Config $config, $cacheType)
46 46
     {
47
-        $type = $config->type;
47
+        $type=$config->type;
48 48
         switch ($type) {
49 49
             case 'magento':
50 50
                 return "cd /var/www/public;../bin/n98-magerun.phar cache:disable $cacheType";
Please login to merge, or discard this patch.
src/Magestead/Service/UsageApi.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @var string
11 11
      */
12
-    protected $_apiUrl = "https://api.magestead.com/v1/usage";
12
+    protected $_apiUrl="https://api.magestead.com/v1/usage";
13 13
 //    protected $_apiUrl = "http://magestead-api.app/v1/usage";
14 14
 
15 15
     /**
16 16
      * @var array
17 17
      */
18
-    protected $_params = [];
18
+    protected $_params=[];
19 19
 
20 20
     /**
21 21
      * UsageApi constructor.
@@ -23,16 +23,16 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function __construct($data)
25 25
     {
26
-        $this->_params['os_type']               = urlencode($data['os']);
27
-        $this->_params['server_type']           = urlencode($data['server']);
28
-        $this->_params['php_version']           = urlencode($data['phpver']);
29
-        $this->_params['application_version']   = urlencode($data['app']);
30
-        $this->_params['vm_memory_limit']       = urlencode($data['memory_limit']);
31
-        $this->_params['vm_cpu_count']          = urlencode($data['cpus']);
32
-        $this->_params['ip_address']            = urlencode($data['ip_address']);
33
-        $this->_params['box']                   = urlencode($data['box']);
34
-        $this->_params['locale']                = urlencode($data['locale']);
35
-        $this->_params['default_currency']      = urlencode($data['default_currency']);
26
+        $this->_params['os_type']=urlencode($data['os']);
27
+        $this->_params['server_type']=urlencode($data['server']);
28
+        $this->_params['php_version']=urlencode($data['phpver']);
29
+        $this->_params['application_version']=urlencode($data['app']);
30
+        $this->_params['vm_memory_limit']=urlencode($data['memory_limit']);
31
+        $this->_params['vm_cpu_count']=urlencode($data['cpus']);
32
+        $this->_params['ip_address']=urlencode($data['ip_address']);
33
+        $this->_params['box']=urlencode($data['box']);
34
+        $this->_params['locale']=urlencode($data['locale']);
35
+        $this->_params['default_currency']=urlencode($data['default_currency']);
36 36
     }
37 37
 
38 38
     /**
@@ -40,16 +40,16 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function send()
42 42
     {
43
-        $fields_string = $this->getFieldsString();
43
+        $fields_string=$this->getFieldsString();
44 44
 
45
-        $ch = curl_init();
45
+        $ch=curl_init();
46 46
 
47
-        curl_setopt($ch,CURLOPT_URL, $this->_apiUrl);
48
-        curl_setopt($ch,CURLOPT_POST, count($this->_params));
49
-        curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
47
+        curl_setopt($ch, CURLOPT_URL, $this->_apiUrl);
48
+        curl_setopt($ch, CURLOPT_POST, count($this->_params));
49
+        curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
50 50
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
51 51
 
52
-        $result = curl_exec($ch);
52
+        $result=curl_exec($ch);
53 53
 
54 54
         curl_close($ch);
55 55
 
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
      */
61 61
     protected function getFieldsString()
62 62
     {
63
-        $fields_string = '';
63
+        $fields_string='';
64 64
         foreach ($this->_params as $key => $value) {
65
-            $fields_string .= $key . '=' . $value . '&';
65
+            $fields_string.=$key.'='.$value.'&';
66 66
         }
67 67
         rtrim($fields_string, '&');
68 68
         return $fields_string;
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/EnableCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     protected function configure()
19 19
     {
20
-        $this->_projectPath = getcwd();
20
+        $this->_projectPath=getcwd();
21 21
         $this->setName("cache:disable");
22 22
         $this->setDescription("Disable cache types");
23 23
         $this->addArgument('type', InputArgument::OPTIONAL, '[cache code/type]');
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $output->writeln('<info>Disabling all cache types</info>');
34 34
 
35
-        $cacheType = $input->getArgument('type');
36
-        $command  = $this->getCommand(new Config($output), $cacheType);
37
-        $pCommand = "vagrant ssh -c '". $command ."'";
35
+        $cacheType=$input->getArgument('type');
36
+        $command=$this->getCommand(new Config($output), $cacheType);
37
+        $pCommand="vagrant ssh -c '".$command."'";
38 38
         return new ProcessCommand($pCommand, $this->_projectPath, $output);
39 39
     }
40 40
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function getCommand(Config $config, $cacheType)
46 46
     {
47
-        $type = $config->type;
47
+        $type=$config->type;
48 48
         switch ($type) {
49 49
             case 'magento':
50 50
                 return "cd /var/www/public;../bin/n98-magerun.phar cache:disable $cacheType";
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/CleanCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     protected function configure()
19 19
     {
20
-        $this->_projectPath = getcwd();
20
+        $this->_projectPath=getcwd();
21 21
         $this->setName("cache:disable");
22 22
         $this->setDescription("Disable cache types");
23 23
         $this->addArgument('type', InputArgument::OPTIONAL, '[cache code/type]');
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $output->writeln('<info>Disabling all cache types</info>');
34 34
 
35
-        $cacheType = $input->getArgument('type');
36
-        $command  = $this->getCommand(new Config($output), $cacheType);
37
-        $pCommand = "vagrant ssh -c '". $command ."'";
35
+        $cacheType=$input->getArgument('type');
36
+        $command=$this->getCommand(new Config($output), $cacheType);
37
+        $pCommand="vagrant ssh -c '".$command."'";
38 38
         return new ProcessCommand($pCommand, $this->_projectPath, $output);
39 39
     }
40 40
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function getCommand(Config $config, $cacheType)
46 46
     {
47
-        $type = $config->type;
47
+        $type=$config->type;
48 48
         switch ($type) {
49 49
             case 'magento':
50 50
                 return "cd /var/www/public;../bin/n98-magerun.phar cache:disable $cacheType";
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/FlushCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     protected function configure()
19 19
     {
20
-        $this->_projectPath = getcwd();
20
+        $this->_projectPath=getcwd();
21 21
         $this->setName("cache:disable");
22 22
         $this->setDescription("Disable cache types");
23 23
         $this->addArgument('type', InputArgument::OPTIONAL, '[cache code/type]');
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $output->writeln('<info>Disabling all cache types</info>');
34 34
 
35
-        $cacheType = $input->getArgument('type');
36
-        $command  = $this->getCommand(new Config($output), $cacheType);
37
-        $pCommand = "vagrant ssh -c '". $command ."'";
35
+        $cacheType=$input->getArgument('type');
36
+        $command=$this->getCommand(new Config($output), $cacheType);
37
+        $pCommand="vagrant ssh -c '".$command."'";
38 38
         return new ProcessCommand($pCommand, $this->_projectPath, $output);
39 39
     }
40 40
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function getCommand(Config $config, $cacheType)
46 46
     {
47
-        $type = $config->type;
47
+        $type=$config->type;
48 48
         switch ($type) {
49 49
             case 'magento':
50 50
                 return "cd /var/www/public;../bin/n98-magerun.phar cache:disable $cacheType";
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 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     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.
src/Magestead/Helper/Options.php 1 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.