@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | if ($previous_version !== $current_version) { |
| 44 | 44 | $upgradeClasses = []; |
| 45 | 45 | $upgradeClassesDir = appPath('src/Core/System/Upgrade/Releases'); |
| 46 | - $upgradeClassesFiles = glob($upgradeClassesDir . '/*.php', GLOB_NOSORT); |
|
| 46 | + $upgradeClassesFiles = glob($upgradeClassesDir.'/*.php', GLOB_NOSORT); |
|
| 47 | 47 | foreach ($upgradeClassesFiles as $file) { |
| 48 | 48 | $className = pathinfo($file)['filename']; |
| 49 | 49 | $moduleModelClass = "\\MikoPBX\\Core\\System\\Upgrade\\Releases\\{$className}"; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | if (version_compare($previous_version, $releaseNumber, '<')) { |
| 58 | 58 | $processor = new $upgradeClass(); |
| 59 | 59 | $processor->processUpdate(); |
| 60 | - Util::echoWithSyslog(' - UpdateConfigs: Upgrade system up to ' . $releaseNumber . ' '); |
|
| 60 | + Util::echoWithSyslog(' - UpdateConfigs: Upgrade system up to '.$releaseNumber.' '); |
|
| 61 | 61 | Util::echoGreenDone(); |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $modules = PbxExtensionModules::find(); |
| 79 | 79 | $modulesDir = $this->getDI()->getShared('config')->path('core.modulesDir'); |
| 80 | 80 | foreach ($modules as $module) { |
| 81 | - if ( ! is_dir("{$modulesDir}/{$module->uniqid}")) { |
|
| 81 | + if (!is_dir("{$modulesDir}/{$module->uniqid}")) { |
|
| 82 | 82 | $module->delete(); |
| 83 | 83 | } |
| 84 | 84 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $cacheKey = explode('\\', static::class)[3]; |
| 45 | 45 | $parameters = [ |
| 46 | 46 | 'cache' => [ |
| 47 | - 'key' => $cacheKey . '-getAllPbxSettings', |
|
| 47 | + 'key' => $cacheKey.'-getAllPbxSettings', |
|
| 48 | 48 | 'lifetime' => 300, |
| 49 | 49 | ], |
| 50 | 50 | ]; |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | { |
| 69 | 69 | return [ |
| 70 | 70 | 'Name' => 'PBX system', |
| 71 | - 'VirtualHardwareType' => 'REAL',//VMWARE,HYPERV,AWS,AZURE |
|
| 71 | + 'VirtualHardwareType' => 'REAL', //VMWARE,HYPERV,AWS,AZURE |
|
| 72 | 72 | 'Description' => '', |
| 73 | 73 | 'RestartEveryNight' => '0', |
| 74 | 74 | 'SIPPort' => '5060', |
@@ -110,11 +110,11 @@ discard block |
||
| 110 | 110 | 'MailTplVoicemailSubject' => 'VoiceMail from PBX', |
| 111 | 111 | 'MailTplVoicemailBody' => 'See attach', |
| 112 | 112 | 'MailTplVoicemailFooter' => '', |
| 113 | - 'NTPServer' => '0.pool.ntp.org' . PHP_EOL . '1.pool.ntp.org' . PHP_EOL, |
|
| 113 | + 'NTPServer' => '0.pool.ntp.org'.PHP_EOL.'1.pool.ntp.org'.PHP_EOL, |
|
| 114 | 114 | 'VoicemailNotificationsEmail' => '[email protected]', |
| 115 | 115 | 'VoicemailExten' => '*001', |
| 116 | 116 | 'PBXLanguage' => 'en-en', |
| 117 | - 'PBXInternalExtensionLength' => '3',// Длина внутреннего номера |
|
| 117 | + 'PBXInternalExtensionLength' => '3', // Длина внутреннего номера |
|
| 118 | 118 | 'PBXRecordCalls' => '1', |
| 119 | 119 | 'PBXSplitAudioThread' => '0', |
| 120 | 120 | 'PBXCallParkingExt' => '800', |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $cacheKey = explode('\\', static::class)[3]; |
| 152 | 152 | $parameters = [ |
| 153 | 153 | 'cache' => [ |
| 154 | - 'key' => $cacheKey . '-getValueByKey', |
|
| 154 | + 'key' => $cacheKey.'-getValueByKey', |
|
| 155 | 155 | 'lifetime' => 300, |
| 156 | 156 | ], |
| 157 | 157 | ]; |