@@ -53,20 +53,20 @@ |
||
53 | 53 | public function getAllOptions() |
54 | 54 | { |
55 | 55 | return [ |
56 | - 'app' => $this->_app, |
|
57 | - 'server' => $this->_server, |
|
58 | - 'phpver' => $this->_phpVer, |
|
59 | - 'os' => $this->_os, |
|
60 | - 'box' => $this->_box, |
|
61 | - 'm2user' => $this->_m2Username, |
|
62 | - 'm2pass' => $this->_m2Password, |
|
63 | - 'repo_url' => $this->_repoUrl, |
|
64 | - 'ip_address' => $this->_ipAddress, |
|
65 | - 'cpus' => $this->_cpus, |
|
66 | - 'memory_limit' => $this->_memorylimit, |
|
67 | - 'locale' => $this->_locale, |
|
68 | - 'default_currency' => $this->_currency, |
|
69 | - 'base_url' => $this->_baseUrl, |
|
56 | + 'app' => $this->_app, |
|
57 | + 'server' => $this->_server, |
|
58 | + 'phpver' => $this->_phpVer, |
|
59 | + 'os' => $this->_os, |
|
60 | + 'box' => $this->_box, |
|
61 | + 'm2user' => $this->_m2Username, |
|
62 | + 'm2pass' => $this->_m2Password, |
|
63 | + 'repo_url' => $this->_repoUrl, |
|
64 | + 'ip_address' => $this->_ipAddress, |
|
65 | + 'cpus' => $this->_cpus, |
|
66 | + 'memory_limit' => $this->_memorylimit, |
|
67 | + 'locale' => $this->_locale, |
|
68 | + 'default_currency' => $this->_currency, |
|
69 | + 'base_url' => $this->_baseUrl, |
|
70 | 70 | ]; |
71 | 71 | } |
72 | 72 |
@@ -168,12 +168,12 @@ discard block |
||
168 | 168 | */ |
169 | 169 | protected function verifyAuth($helper, InputInterface $input, OutputInterface $output) |
170 | 170 | { |
171 | - $authFile = $_SERVER['HOME'] . "/.composer/auth.json"; |
|
171 | + $authFile = $_SERVER['HOME']."/.composer/auth.json"; |
|
172 | 172 | |
173 | 173 | $authObj = []; |
174 | 174 | if (file_exists($authFile)) { |
175 | 175 | $authJson = file_get_contents($authFile); |
176 | - $authObj = (array)json_decode($authJson); |
|
176 | + $authObj = (array) json_decode($authJson); |
|
177 | 177 | |
178 | 178 | if (isset($authObj['http-basic']) && isset($authObj['http-basic']->{'repo.magento.com'})) { |
179 | 179 | return true; |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | */ |
212 | 212 | protected function setVagrantBox() |
213 | 213 | { |
214 | - $this->_box = self::BOX_PREFIX . $this->_os . "-$this->_server-php$this->_phpVer"; |
|
214 | + $this->_box = self::BOX_PREFIX.$this->_os."-$this->_server-php$this->_phpVer"; |
|
215 | 215 | } |
216 | 216 | |
217 | 217 | /** |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | protected function configure() |
24 | 24 | { |
25 | - $this->_basePath = dirname( __FILE__ ) . '/../../../'; |
|
25 | + $this->_basePath = dirname(__FILE__).'/../../../'; |
|
26 | 26 | $this->_projectPath = getcwd(); |
27 | 27 | |
28 | 28 | $this->setName("setup"); |
@@ -63,9 +63,9 @@ discard block |
||
63 | 63 | \RecursiveIteratorIterator::SELF_FIRST) as $item |
64 | 64 | ) { |
65 | 65 | if ($item->isDir()) { |
66 | - mkdir($target . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); |
|
66 | + mkdir($target.DIRECTORY_SEPARATOR.$iterator->getSubPathName()); |
|
67 | 67 | } else { |
68 | - copy($item, $target . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); |
|
68 | + copy($item, $target.DIRECTORY_SEPARATOR.$iterator->getSubPathName()); |
|
69 | 69 | } |
70 | 70 | $progress->advance(); |
71 | 71 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | { |
108 | 108 | $yaml = new Parser(); |
109 | 109 | try { |
110 | - return $yaml->parse(file_get_contents($this->_projectPath . '/magestead.yaml')); |
|
110 | + return $yaml->parse(file_get_contents($this->_projectPath.'/magestead.yaml')); |
|
111 | 111 | } catch (ParseException $e) { |
112 | 112 | $output->writeln('<error>Unable to parse the YAML string</error>'); |
113 | 113 | printf("Unable to parse the YAML string: %s", $e->getMessage()); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $yaml = $dumper->dump($config, 6); |
125 | 125 | |
126 | 126 | try { |
127 | - file_put_contents($this->_projectPath . '/magestead.yaml', $yaml); |
|
127 | + file_put_contents($this->_projectPath.'/magestead.yaml', $yaml); |
|
128 | 128 | } catch (\Exception $e) { |
129 | 129 | $output->writeln('<error>Unable to write to the YAML file</error>'); |
130 | 130 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | protected function setupProject(OutputInterface $output, $options) |
138 | 138 | { |
139 | 139 | $output->writeln('<info>Setting up project structure</info>'); |
140 | - $provisionFolder = $this->_basePath . "provision"; |
|
140 | + $provisionFolder = $this->_basePath."provision"; |
|
141 | 141 | $this->copyConfigFiles($provisionFolder, $this->_projectPath, $output); |
142 | 142 | $this->configureProject($options->getAllOptions(), $output); |
143 | 143 | } |