Completed
Pull Request — master (#13)
by
unknown
02:32
created
src/Cache/Command/ClearCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,13 +61,13 @@
 block discarded – undo
61 61
         if ($dir)
62 62
         {
63 63
             $cache->cleanDir($dir);
64
-            $output->writeln('<info>Bitrix cache by "/' . BX_ROOT . '/cache/' . $dir . '" dir was deleted</info>');
64
+            $output->writeln('<info>Bitrix cache by "/'.BX_ROOT.'/cache/'.$dir.'" dir was deleted</info>');
65 65
         }
66 66
 
67 67
         if ($tag)
68 68
         {
69 69
             Application::getInstance()->getTaggedCache()->clearByTag($tag);
70
-            $output->writeln('<info>Bitrix cache by tag "' . $tag . '" was deleted</info>');
70
+            $output->writeln('<info>Bitrix cache by tag "'.$tag.'" was deleted</info>');
71 71
         }
72 72
     }
73 73
 }
74 74
\ No newline at end of file
Please login to merge, or discard this patch.
src/Module/Exception/ModuleException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
 	 */
18 18
 	public function __construct($message, $moduleName, \Exception $previous = null)
19 19
 	{
20
-		parent::__construct("[$moduleName] " . $message, 0, $previous);
20
+		parent::__construct("[$moduleName] ".$message, 0, $previous);
21 21
 	}
22 22
 }
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
src/Module/Command/ModuleCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 			&& $module->isThirdParty() && !$input->getOption('confirm-thirdparty')
46 46
 		)
47 47
 		{
48
-			$output->writeln($module->isThirdParty() . ' is not a kernel module. Correct operation cannot be guaranteed for third-party modules!');
48
+			$output->writeln($module->isThirdParty().' is not a kernel module. Correct operation cannot be guaranteed for third-party modules!');
49 49
 		}
50 50
 	}
51 51
 
Please login to merge, or discard this patch.
src/Module/Module.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	{
111 111
 		if (!$this->isRegistered())
112 112
 		{
113
-			$moduleObject =& $this->getObject();
113
+			$moduleObject = & $this->getObject();
114 114
 
115 115
 			/**
116 116
 			 * It's important to check if module class defines InstallDB method (it must register module)
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 			if (!$moduleObject->InstallDB() && BitrixException::hasException())
128 128
 			{
129 129
 				throw new Exception\ModuleInstallException(
130
-					get_class($moduleObject) . '::InstallDB() returned false',
130
+					get_class($moduleObject).'::InstallDB() returned false',
131 131
 					$this->name
132 132
 				);
133 133
 			}
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 			if (!$moduleObject->InstallFiles() && BitrixException::hasException())
139 139
 			{
140 140
 				throw new Exception\ModuleInstallException(
141
-					get_class($moduleObject) . '::InstallFiles() returned false',
141
+					get_class($moduleObject).'::InstallFiles() returned false',
142 142
 					$this->name
143 143
 				);
144 144
 			}
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 		{
167 167
 			if (!$this->exist())
168 168
 			{
169
-				require_once($_SERVER["DOCUMENT_ROOT"] . '/bitrix/modules/main/classes/general/update_client_partner.php');
169
+				require_once($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/main/classes/general/update_client_partner.php');
170 170
 
171 171
 				if (!\CUpdateClientPartner::LoadModuleNoDemand(
172 172
 					$this->getName(),
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 			if (!$moduleObject->UnInstallFiles() && BitrixException::hasException())
212 212
 			{
213 213
 				throw new Exception\ModuleUninstallException(
214
-					get_class($moduleObject) . '::UnInstallFiles() returned false',
214
+					get_class($moduleObject).'::UnInstallFiles() returned false',
215 215
 					$this->name
216 216
 				);
217 217
 			}
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 			if (!$moduleObject->UnInstallDB() && BitrixException::hasException())
223 223
 			{
224 224
 				throw new Exception\ModuleUninstallException(
225
-					get_class($moduleObject) . '::UnInstallFiles() returned false',
225
+					get_class($moduleObject).'::UnInstallFiles() returned false',
226 226
 					$this->name
227 227
 				);
228 228
 			}
@@ -246,11 +246,11 @@  discard block
 block discarded – undo
246 246
 			$this->unRegister();
247 247
 		}
248 248
 
249
-		$path = getLocalPath('modules/' . $this->getName());
249
+		$path = getLocalPath('modules/'.$this->getName());
250 250
 
251 251
 		if ($path)
252 252
 		{
253
-			(new Filesystem())->remove($_SERVER['DOCUMENT_ROOT'] . $path);
253
+			(new Filesystem())->remove($_SERVER['DOCUMENT_ROOT'].$path);
254 254
 		}
255 255
 
256 256
 		unset($this->object);
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 	 */
270 270
 	public function update(&$modulesUpdated = null)
271 271
 	{
272
-		require_once($_SERVER["DOCUMENT_ROOT"] . '/bitrix/modules/main/classes/general/update_client_partner.php');
272
+		require_once($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/main/classes/general/update_client_partner.php');
273 273
 
274 274
 		if (!$this->isThirdParty())
275 275
 		{
@@ -312,14 +312,14 @@  discard block
 block discarded – undo
312 312
 
313 313
 		if (!\CUpdateClientPartner::UnGzipArchive($updateDir, $errorMessage, true))
314 314
 		{
315
-			throw new Exception\ModuleUpdateException('[CL02] UnGzipArchive failed. ' . $errorMessage, $this->getName());
315
+			throw new Exception\ModuleUpdateException('[CL02] UnGzipArchive failed. '.$errorMessage, $this->getName());
316 316
 		}
317 317
 
318 318
 		$this->validateUpdate($updateDir);
319 319
 
320 320
 		if (isset($updateDescription["DATA"]["#"]["NOUPDATES"]))
321 321
 		{
322
-			\CUpdateClientPartner::ClearUpdateFolder($_SERVER["DOCUMENT_ROOT"] . "/bitrix/updates/" . $updateDir);
322
+			\CUpdateClientPartner::ClearUpdateFolder($_SERVER["DOCUMENT_ROOT"]."/bitrix/updates/".$updateDir);
323 323
 			return false;
324 324
 		}
325 325
 
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
 		}
346 346
 		else
347 347
 		{
348
-			throw new Exception\ModuleUpdateException('[CL04] UpdateStepModules failed. ' . $errorMessage, $this->getName());
348
+			throw new Exception\ModuleUpdateException('[CL04] UpdateStepModules failed. '.$errorMessage, $this->getName());
349 349
 		}
350 350
 
351 351
 		return true;
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 		$errorMessage = null;
362 362
 		if (!\CUpdateClientPartner::CheckUpdatability($updateDir, $errorMessage))
363 363
 		{
364
-			throw new Exception\ModuleUpdateException('[CL03] CheckUpdatability failed. ' . $errorMessage, $this->getName());
364
+			throw new Exception\ModuleUpdateException('[CL03] CheckUpdatability failed. '.$errorMessage, $this->getName());
365 365
 		}
366 366
 
367 367
 		if (isset($updateDescription["DATA"]["#"]["ERROR"]))
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 			$errorMessage = "";
370 370
 			foreach ($updateDescription["DATA"]["#"]["ERROR"] as $errorDescription)
371 371
 			{
372
-				$errorMessage .= "[" . $errorDescription["@"]["TYPE"] . "] " . $errorDescription["#"];
372
+				$errorMessage .= "[".$errorDescription["@"]["TYPE"]."] ".$errorDescription["#"];
373 373
 			}
374 374
 			throw new Exception\ModuleUpdateException($errorMessage, $this->getName());
375 375
 		}
Please login to merge, or discard this patch.
src/Application/Exception/BitrixException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
 		if ($ex = $APPLICATION->GetException())
42 42
 		{
43
-			throw new static($message ? $message . ': ' . $ex->GetString() : $ex->GetString());
43
+			throw new static($message ? $message.': '.$ex->GetString() : $ex->GetString());
44 44
 		}
45 45
 		else
46 46
 		{
Please login to merge, or discard this patch.
src/Application/CanRestartTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     protected function restartScript(InputInterface $input, OutputInterface $output)
33 33
     {
34
-        $proc = popen('php -f ' . join(' ', $GLOBALS['argv']) . ' 2>&1', 'r');
34
+        $proc = popen('php -f '.join(' ', $GLOBALS['argv']).' 2>&1', 'r');
35 35
         while (!feof($proc))
36 36
         {
37 37
             $output->write(fread($proc, 4096));
Please login to merge, or discard this patch.
src/Application/Command/InitCommand.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function initialize(InputInterface $input, OutputInterface $output)
86 86
     {
87
-        $this->tmplDir = __DIR__ . '/../../../tmpl';
87
+        $this->tmplDir = __DIR__.'/../../../tmpl';
88 88
         $this->questionHelper = $this->getHelper('question');
89 89
         
90 90
         parent::initialize($input, $output);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $this->createEnvironmentsDir($input, $output);
101 101
         $this->createConfiguration($input, $output);
102 102
         
103
-        $output->writeln('<info>' . static::COMPLETED_LOGO . '</info>');
103
+        $output->writeln('<info>'.static::COMPLETED_LOGO.'</info>');
104 104
     }
105 105
 
106 106
     /**
@@ -111,15 +111,15 @@  discard block
 block discarded – undo
111 111
      */
112 112
     protected function createEnvironmentsDir(InputInterface $input, OutputInterface $output)
113 113
     {
114
-        $targetDir = getcwd() . '/' . $this->envDir;
115
-        $tmplDir = $this->tmplDir . '/environments';
114
+        $targetDir = getcwd().'/'.$this->envDir;
115
+        $tmplDir = $this->tmplDir.'/environments';
116 116
         
117 117
         $output->writeln('  - Environment settings');
118 118
         
119 119
         if (file_exists($targetDir))
120 120
         {
121 121
             $question = new ConfirmationQuestion(
122
-                '    <error>Directory ' . $targetDir . ' already exists</error>' . PHP_EOL 
122
+                '    <error>Directory '.$targetDir.' already exists</error>'.PHP_EOL 
123 123
                 . '    <info>Overwrite? [Y/n]</info> ',
124 124
                 true,
125 125
                 '/^(y|j)/i'
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
         foreach ($iterator as $item)
139 139
         {
140
-            $itemPath = $targetDir . '/' . $iterator->getSubPathName();
140
+            $itemPath = $targetDir.'/'.$iterator->getSubPathName();
141 141
 
142 142
             if ($item->isDir())
143 143
             {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             }
150 150
         }
151 151
         
152
-        $output->writeln('    Created directory settings of environments: <comment>' . $targetDir . '</comment>');
152
+        $output->writeln('    Created directory settings of environments: <comment>'.$targetDir.'</comment>');
153 153
     }
154 154
 
155 155
     /**
@@ -160,14 +160,14 @@  discard block
 block discarded – undo
160 160
      */
161 161
     protected function createConfiguration(InputInterface $input, OutputInterface $output)
162 162
     {
163
-        $path = $this->getApplication()->getRoot() . '/.jedi.php';
163
+        $path = $this->getApplication()->getRoot().'/.jedi.php';
164 164
 
165 165
         $output->writeln('  - Configuration');
166 166
 
167 167
         if (file_exists($path))
168 168
         {
169 169
             $question = new ConfirmationQuestion(
170
-                '    <error>Configuration file ' . $path . ' already exists</error>' . PHP_EOL
170
+                '    <error>Configuration file '.$path.' already exists</error>'.PHP_EOL
171 171
                 . '    <info>Overwrite? [Y/n]</info> ',
172 172
                 true,
173 173
                 '/^(y|j)/i'
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         }
181 181
         
182 182
         $question = new Question('    <info>Enter path to web directory relative to ('.getcwd().'):</info> ');
183
-        $question->setValidator(function ($answer) {
183
+        $question->setValidator(function($answer) {
184 184
             /*if (!is_dir($answer))
185 185
             {
186 186
                 throw new \RuntimeException('Directory "' . $answer . '" is missing');
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         $webDir = $this->questionHelper->ask($input, $output, $question);
192 192
 
193 193
         $fs = new Filesystem();
194
-        $content = file_get_contents($this->tmplDir . '/.jedi.php');
194
+        $content = file_get_contents($this->tmplDir.'/.jedi.php');
195 195
         $content = str_replace(
196 196
             ['%web-dir%', '%env-dir%'], 
197 197
             [addslashes($webDir), addslashes($this->envDir)],
@@ -199,6 +199,6 @@  discard block
 block discarded – undo
199 199
         );
200 200
         $fs->dumpFile($path, $content);
201 201
 
202
-        $output->writeln('    Created configuration file of application <comment>' . $path . '</comment>');
202
+        $output->writeln('    Created configuration file of application <comment>'.$path.'</comment>');
203 203
     }
204 204
 }
205 205
\ No newline at end of file
Please login to merge, or discard this patch.
src/Application/Application.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         if ($this->getConfiguration() === null)
110 110
         {
111
-            $output->writeln(PHP_EOL . '<error>No configuration loaded.</error> ' 
111
+            $output->writeln(PHP_EOL.'<error>No configuration loaded.</error> ' 
112 112
                 . 'Please run <info>init</info> command first');
113 113
         }
114 114
         else
@@ -116,18 +116,18 @@  discard block
 block discarded – undo
116 116
             switch ($this->getBitrixStatus())
117 117
             {
118 118
                 case static::BITRIX_STATUS_UNAVAILABLE:
119
-                    $output->writeln(PHP_EOL . sprintf('<error>No Bitrix kernel found in %s.</error> ' 
119
+                    $output->writeln(PHP_EOL.sprintf('<error>No Bitrix kernel found in %s.</error> ' 
120 120
                             . 'Please run <info>env:init</info> command to configure', $this->getDocumentRoot()));
121 121
                     break;
122 122
 
123 123
                 case static::BITRIX_STATUS_NO_DB_CONNECTION:
124
-                    $output->writeln(PHP_EOL . '<error>Bitrix database connection is unavailable.</error>');
124
+                    $output->writeln(PHP_EOL.'<error>Bitrix database connection is unavailable.</error>');
125 125
                     break;
126 126
 
127 127
                 case static::BITRIX_STATUS_COMPLETE:
128 128
                     if ($this->getCommandName($input) === null)
129 129
                     {
130
-                        $output->writeln(PHP_EOL . sprintf('Using Bitrix <info>kernel v%s</info>.</info>', SM_VERSION),
130
+                        $output->writeln(PHP_EOL.sprintf('Using Bitrix <info>kernel v%s</info>.</info>', SM_VERSION),
131 131
                             OutputInterface::VERBOSITY_VERY_VERBOSE);
132 132
                     }
133 133
                     break;
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
         foreach (ModuleManager::getInstalledModules() as $module)
181 181
         {
182
-            $cliFile = getLocalPath('modules/' . $module['ID'] . '/cli.php');
182
+            $cliFile = getLocalPath('modules/'.$module['ID'].'/cli.php');
183 183
 
184 184
             if ($cliFile === false)
185 185
             {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                 continue;
191 191
             }
192 192
 
193
-            $config = include_once $this->getDocumentRoot() . $cliFile;
193
+            $config = include_once $this->getDocumentRoot().$cliFile;
194 194
 
195 195
             if (isset($config['commands']) && is_array($config['commands']))
196 196
             {
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         
222 222
         if (!is_array($this->configuration))
223 223
         {
224
-            throw new ConfigurationException('Configuration file ' . $path . ' must return an array');
224
+            throw new ConfigurationException('Configuration file '.$path.' must return an array');
225 225
         }
226 226
 
227 227
         //TODO-fox: Проверка на указание в качестве относительного пути /
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
         }
237 237
         else
238 238
         {
239
-            $this->setDocumentRoot($this->getRoot() . '/' . $this->configuration['web-dir']);
239
+            $this->setDocumentRoot($this->getRoot().'/'.$this->configuration['web-dir']);
240 240
         }
241 241
 
242 242
         if (!is_dir($_SERVER['DOCUMENT_ROOT']))
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
                 /** @noinspection PhpUnusedLocalVariableInspection */
288 288
                 $DB, $DBType, $DBHost, $DBLogin, $DBPassword, $DBName, $DBDebug, $DBDebugToFile, $APPLICATION, $USER, $DBSQLServerType;
289 289
 
290
-            require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';
290
+            require_once $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php';
291 291
             
292 292
             if (defined('B_PROLOG_INCLUDED') && B_PROLOG_INCLUDED === true)
293 293
             {
@@ -310,8 +310,8 @@  discard block
 block discarded – undo
310 310
     public function checkBitrix()
311 311
     {
312 312
         if (
313
-            !is_file($_SERVER['DOCUMENT_ROOT'] . '/bitrix/.settings.php') 
314
-            && !is_file($_SERVER['DOCUMENT_ROOT'] . '/bitrix/.settings_extra.php')
313
+            !is_file($_SERVER['DOCUMENT_ROOT'].'/bitrix/.settings.php') 
314
+            && !is_file($_SERVER['DOCUMENT_ROOT'].'/bitrix/.settings_extra.php')
315 315
         )
316 316
         {
317 317
             return false;
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
         
358 358
         $this->initializeBitrix();
359 359
         
360
-        spl_autoload_register(function ($className) {
360
+        spl_autoload_register(function($className) {
361 361
             $file = ltrim($className, "\\");
362 362
             $file = strtr($file, Loader::ALPHA_UPPER, Loader::ALPHA_LOWER);
363 363
             $file = str_replace('\\', '/', $file);
@@ -382,18 +382,18 @@  discard block
 block discarded – undo
382 382
                 return false;
383 383
             }
384 384
 
385
-            $module = array_shift($arFile) . '.' . array_shift($arFile);
385
+            $module = array_shift($arFile).'.'.array_shift($arFile);
386 386
 
387 387
             if (!Loader::includeModule($module))
388 388
             {
389 389
                 return false;
390 390
             }
391 391
 
392
-            $path = getLocalPath('/modules/' . $module . '/' . implode('/', $arFile) . '.php');
392
+            $path = getLocalPath('/modules/'.$module.'/'.implode('/', $arFile).'.php');
393 393
 
394 394
             if ($path !== false)
395 395
             {
396
-                include_once $this->getDocumentRoot() . $path;
396
+                include_once $this->getDocumentRoot().$path;
397 397
             }
398 398
         });
399 399
     }
Please login to merge, or discard this patch.
src/Environment/Command/InitCommand.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
74 74
             throw new \Exception('Config env-dir is missing');
75 75
         }
76 76
         
77
-        $dir = $this->getApplication()->getRoot() . '/' . $this->getApplication()->getConfiguration()['env-dir'];
77
+        $dir = $this->getApplication()->getRoot().'/'.$this->getApplication()->getConfiguration()['env-dir'];
78 78
 
79 79
         if (!is_dir($dir))
80 80
         {
81
-            throw new \Exception('Directory ' . $dir . ' is missing');
81
+            throw new \Exception('Directory '.$dir.' is missing');
82 82
         }
83 83
 
84
-        $environments = include $dir . '/index.php';
84
+        $environments = include $dir.'/index.php';
85 85
 
86 86
         if (!is_array($environments))
87 87
         {
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
             throw new \Exception('Environment path not found!');
119 119
         }
120 120
 
121
-        $this->dir = $dir . '/' . $environments[$code]['path'];
122
-        $this->config = include $this->dir . '/config.php';
121
+        $this->dir = $dir.'/'.$environments[$code]['path'];
122
+        $this->config = include $this->dir.'/config.php';
123 123
     }
124 124
 
125 125
     /**
@@ -134,11 +134,11 @@  discard block
 block discarded – undo
134 134
                 
135 135
         foreach ($this->config as $config => $settings)
136 136
         {
137
-            $method = 'configure' . ucfirst($config);
137
+            $method = 'configure'.ucfirst($config);
138 138
 
139 139
             if (!in_array($method, $this->bootstrap) && method_exists($this, $method))
140 140
             {
141
-                $output->writeln('<comment>Setup "' . $config . '"</comment>');
141
+                $output->writeln('<comment>Setup "'.$config.'"</comment>');
142 142
                 $this->$method($input, $output, $settings);
143 143
             }
144 144
         }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 continue;
167 167
             }
168 168
             
169
-            $itemPath = $this->getApplication()->getRoot() . '/' . $iterator->getSubPathName();
169
+            $itemPath = $this->getApplication()->getRoot().'/'.$iterator->getSubPathName();
170 170
             
171 171
             if ($item->isDir())
172 172
             {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 $fs->copy($item, $itemPath, true);
178 178
             }
179 179
 
180
-            $output->writeln('   ' . $itemPath);
180
+            $output->writeln('   '.$itemPath);
181 181
         }
182 182
     }
183 183
     
@@ -207,8 +207,8 @@  discard block
 block discarded – undo
207 207
             throw new \InvalidArgumentException('Config "licenseKey" must be string type.');
208 208
         }
209 209
         
210
-        $licenseFileContent = "<" . "? $" . "LICENSE_KEY = \"" . EscapePHPString($licenseKey) . "\"; ?" . ">";
211
-        File::putFileContents(Application::getDocumentRoot() . BX_ROOT . '/license_key.php', $licenseFileContent);
210
+        $licenseFileContent = "<"."? $"."LICENSE_KEY = \"".EscapePHPString($licenseKey)."\"; ?".">";
211
+        File::putFileContents(Application::getDocumentRoot().BX_ROOT.'/license_key.php', $licenseFileContent);
212 212
     }
213 213
 
214 214
     /**
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 
252 252
         foreach ($modules as $moduleName)
253 253
         {
254
-            $message = "\r" . '   module:load ' . $moduleName . ': ';
254
+            $message = "\r".'   module:load '.$moduleName.': ';
255 255
 
256 256
             try
257 257
             {
@@ -264,19 +264,19 @@  discard block
 block discarded – undo
264 264
                 (new Module($moduleName))->load()->register();
265 265
 
266 266
                 $bar->clear();
267
-                $output->writeln($message . '<info>ok</info>');
267
+                $output->writeln($message.'<info>ok</info>');
268 268
             }
269 269
             catch (ModuleInstallException $e)
270 270
             {
271 271
                 $bar->clear();
272 272
                 $output->writeln($e->getMessage(), OutputInterface::VERBOSITY_VERBOSE);
273
-                $output->writeln($message . '<comment>not registered</comment> (install it in admin panel)');
273
+                $output->writeln($message.'<comment>not registered</comment> (install it in admin panel)');
274 274
             }
275 275
             catch (ModuleException $e)
276 276
             {
277 277
                 $bar->clear();
278 278
                 $output->writeln($e->getMessage(), OutputInterface::VERBOSITY_VERBOSE);
279
-                $output->writeln($message . '<error>FAILED</error>');
279
+                $output->writeln($message.'<error>FAILED</error>');
280 280
             }
281 281
             $bar->advance();
282 282
         }
@@ -350,14 +350,14 @@  discard block
 block discarded – undo
350 350
                 else
351 351
                 {
352 352
                     $exception = $APPLICATION->GetException();
353
-                    $message = 'Invalid memcache config with index ' . $index;
353
+                    $message = 'Invalid memcache config with index '.$index;
354 354
 
355 355
                     if ($exception->GetString())
356 356
                     {
357 357
                         $message = str_replace('<br>', "\n", $exception->GetString());
358 358
                     }
359 359
 
360
-                    $output->writeln('<error>' . $message . '</error>');
360
+                    $output->writeln('<error>'.$message.'</error>');
361 361
                 }
362 362
             }
363 363
         }
@@ -394,14 +394,14 @@  discard block
 block discarded – undo
394 394
                     }
395 395
                     else
396 396
                     {
397
-                        $output->writeln('<error>Invalid option for module "' . $module . '" with code "' . $code. '"</error>');
397
+                        $output->writeln('<error>Invalid option for module "'.$module.'" with code "'.$code.'"</error>');
398 398
                     }
399 399
                 }
400 400
                 else
401 401
                 {
402 402
                     Option::set($module, $code, $value);
403 403
 
404
-                    $output->writeln('   option: "' . $code . '", module: "' . $module . '"');
404
+                    $output->writeln('   option: "'.$code.'", module: "'.$module.'"');
405 405
                 }
406 406
             }
407 407
         }
Please login to merge, or discard this patch.