@@ -77,13 +77,13 @@ discard block |
||
77 | 77 | throw new \Exception('Config env-dir is missing'); |
78 | 78 | } |
79 | 79 | |
80 | - $dir = $this->getApplication()->getRoot() . '/' . $this->getApplication()->getConfiguration()['env-dir']; |
|
80 | + $dir = $this->getApplication()->getRoot().'/'.$this->getApplication()->getConfiguration()['env-dir']; |
|
81 | 81 | |
82 | 82 | if (!is_dir($dir)) { |
83 | - throw new \Exception('Directory ' . $dir . ' is missing'); |
|
83 | + throw new \Exception('Directory '.$dir.' is missing'); |
|
84 | 84 | } |
85 | 85 | |
86 | - $environments = include $dir . '/index.php'; |
|
86 | + $environments = include $dir.'/index.php'; |
|
87 | 87 | |
88 | 88 | if (!is_array($environments)) { |
89 | 89 | throw new \Exception('File with description of environments is missing'); |
@@ -112,8 +112,8 @@ discard block |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | $this->type = $type; |
115 | - $this->dir = $dir . '/' . $environments[$type]['path']; |
|
116 | - $this->config = include $this->dir . '/config.php'; |
|
115 | + $this->dir = $dir.'/'.$environments[$type]['path']; |
|
116 | + $this->config = include $this->dir.'/config.php'; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -126,10 +126,10 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | foreach ($this->config as $config => $settings) { |
129 | - $method = 'configure' . ucfirst($config); |
|
129 | + $method = 'configure'.ucfirst($config); |
|
130 | 130 | |
131 | 131 | if (!in_array($method, $this->bootstrap) && method_exists($this, $method)) { |
132 | - $output->writeln('<comment>Setup "' . $config . '"</comment>'); |
|
132 | + $output->writeln('<comment>Setup "'.$config.'"</comment>'); |
|
133 | 133 | $this->$method($input, $output, $settings); |
134 | 134 | } |
135 | 135 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | continue; |
156 | 156 | } |
157 | 157 | |
158 | - $itemPath = $this->getApplication()->getRoot() . '/' . $iterator->getSubPathName(); |
|
158 | + $itemPath = $this->getApplication()->getRoot().'/'.$iterator->getSubPathName(); |
|
159 | 159 | |
160 | 160 | if ($item->isDir()) { |
161 | 161 | $fs->mkdir($itemPath); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $fs->copy($item, $itemPath, true); |
164 | 164 | } |
165 | 165 | |
166 | - $output->writeln(' ' . $itemPath); |
|
166 | + $output->writeln(' '.$itemPath); |
|
167 | 167 | } |
168 | 168 | } |
169 | 169 | |
@@ -191,8 +191,8 @@ discard block |
||
191 | 191 | throw new \InvalidArgumentException('Config "licenseKey" must be string type.'); |
192 | 192 | } |
193 | 193 | |
194 | - $licenseFileContent = "<" . "? $" . "LICENSE_KEY = \"" . EscapePHPString($licenseKey) . "\"; ?" . ">"; |
|
195 | - File::putFileContents(Application::getDocumentRoot() . BX_ROOT . '/license_key.php', $licenseFileContent); |
|
194 | + $licenseFileContent = "<"."? $"."LICENSE_KEY = \"".EscapePHPString($licenseKey)."\"; ?".">"; |
|
195 | + File::putFileContents(Application::getDocumentRoot().BX_ROOT.'/license_key.php', $licenseFileContent); |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $bar->setFormat('verbose'); |
231 | 231 | |
232 | 232 | foreach ($modules as $moduleName) { |
233 | - $message = "\r" . ' module:load ' . $moduleName . ': '; |
|
233 | + $message = "\r".' module:load '.$moduleName.': '; |
|
234 | 234 | |
235 | 235 | try { |
236 | 236 | if (isset($bar)) { |
@@ -241,15 +241,15 @@ discard block |
||
241 | 241 | (new Module($moduleName))->load()->register(); |
242 | 242 | |
243 | 243 | $bar->clear(); |
244 | - $output->writeln($message . '<info>ok</info>'); |
|
244 | + $output->writeln($message.'<info>ok</info>'); |
|
245 | 245 | } catch (ModuleInstallException $e) { |
246 | 246 | $bar->clear(); |
247 | 247 | $output->writeln($e->getMessage(), OutputInterface::VERBOSITY_VERBOSE); |
248 | - $output->writeln($message . '<comment>not registered</comment> (install it in admin panel)'); |
|
248 | + $output->writeln($message.'<comment>not registered</comment> (install it in admin panel)'); |
|
249 | 249 | } catch (ModuleException $e) { |
250 | 250 | $bar->clear(); |
251 | 251 | $output->writeln($e->getMessage(), OutputInterface::VERBOSITY_VERBOSE); |
252 | - $output->writeln($message . '<error>FAILED</error>'); |
|
252 | + $output->writeln($message.'<error>FAILED</error>'); |
|
253 | 253 | } |
254 | 254 | $bar->advance(); |
255 | 255 | } |
@@ -314,13 +314,13 @@ discard block |
||
314 | 314 | $memcache->Resume($serverId); |
315 | 315 | } else { |
316 | 316 | $exception = $APPLICATION->GetException(); |
317 | - $message = 'Invalid memcache config with index ' . $index; |
|
317 | + $message = 'Invalid memcache config with index '.$index; |
|
318 | 318 | |
319 | 319 | if ($exception->GetString()) { |
320 | 320 | $message = str_replace('<br>', "\n", $exception->GetString()); |
321 | 321 | } |
322 | 322 | |
323 | - $output->writeln('<error>' . $message . '</error>'); |
|
323 | + $output->writeln('<error>'.$message.'</error>'); |
|
324 | 324 | } |
325 | 325 | } |
326 | 326 | } |
@@ -349,12 +349,12 @@ discard block |
||
349 | 349 | if (isset($value['value']) && isset($value['siteId'])) { |
350 | 350 | Option::set($module, $code, $value['value'], $value['siteId']); |
351 | 351 | } else { |
352 | - $output->writeln('<error>Invalid option for module "' . $module . '" with code "' . $code . '"</error>'); |
|
352 | + $output->writeln('<error>Invalid option for module "'.$module.'" with code "'.$code.'"</error>'); |
|
353 | 353 | } |
354 | 354 | } else { |
355 | 355 | Option::set($module, $code, $value); |
356 | 356 | |
357 | - $output->writeln(' option: "' . $code . '", module: "' . $module . '"'); |
|
357 | + $output->writeln(' option: "'.$code.'", module: "'.$module.'"'); |
|
358 | 358 | } |
359 | 359 | } |
360 | 360 | } |