@@ -52,20 +52,20 @@ |
||
52 | 52 | $this->config = $this->getDI()->getShared('config'); |
53 | 53 | $modulesDir = $this->config->path('core.modulesDir'); |
54 | 54 | |
55 | - if (empty($this->moduleUniqueId)){ |
|
55 | + if (empty($this->moduleUniqueId)) { |
|
56 | 56 | // Get child class parameters and define module Dir and UniqueID |
57 | 57 | $reflector = new ReflectionClassAlias(static::class); |
58 | 58 | $partsOfNameSpace = explode('\\', $reflector->getNamespaceName()); |
59 | - if (count($partsOfNameSpace)===3 && $partsOfNameSpace[0]==='Modules'){ |
|
59 | + if (count($partsOfNameSpace) === 3 && $partsOfNameSpace[0] === 'Modules') { |
|
60 | 60 | $this->moduleUniqueId = $partsOfNameSpace[1]; |
61 | - $this->moduleDir = $modulesDir.'/'.$this->moduleUniqueId; |
|
61 | + $this->moduleDir = $modulesDir.'/'.$this->moduleUniqueId; |
|
62 | 62 | } |
63 | 63 | } else { |
64 | - $this->moduleDir = "{$modulesDir}{$this->moduleUniqueId}"; |
|
64 | + $this->moduleDir = "{$modulesDir}{$this->moduleUniqueId}"; |
|
65 | 65 | } |
66 | 66 | |
67 | - $className = basename(str_replace('\\', '/', static::class)); |
|
68 | - $this->logger = new Logger($className, $this->moduleUniqueId); |
|
67 | + $className = basename(str_replace('\\', '/', static::class)); |
|
68 | + $this->logger = new Logger($className, $this->moduleUniqueId); |
|
69 | 69 | |
70 | 70 | } |
71 | 71 | } |
72 | 72 | \ No newline at end of file |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $res = new PBXApiResult(); |
58 | 58 | $res->processor = __METHOD__; |
59 | 59 | $res->success = true; |
60 | - $filter = [ |
|
60 | + $filter = [ |
|
61 | 61 | 'order' => 'id', |
62 | 62 | 'columns' => 'start,answer,endtime,src_num,dst_num,did,linkedid', |
63 | 63 | 'miko_tmp_db' => true, |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $message = $client->request(json_encode($filter), 2); |
67 | 67 | if ($message === false) { |
68 | 68 | $res->data = []; |
69 | - }else{ |
|
69 | + } else { |
|
70 | 70 | $res->data[] = $message; |
71 | 71 | } |
72 | 72 | return $res; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $res->processor = __METHOD__; |
84 | 84 | $res->success = true; |
85 | 85 | |
86 | - $filter = [ |
|
86 | + $filter = [ |
|
87 | 87 | 'endtime IS NULL', |
88 | 88 | 'order' => 'id', |
89 | 89 | 'columns' => 'start,answer,src_chan,dst_chan,src_num,dst_num,did,linkedid', |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $data = json_decode(file_get_contents($result), true); |
105 | 105 | unlink($result); |
106 | 106 | foreach ($data as $row) { |
107 | - if ( ! isset($active_chans[$row['linkedid']])) { |
|
107 | + if (!isset($active_chans[$row['linkedid']])) { |
|
108 | 108 | // Вызов уже не существует. |
109 | 109 | continue; |
110 | 110 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | $message = $client->request(json_encode($filter), 2); |
67 | 67 | if ($message === false) { |
68 | 68 | $res->data = []; |
69 | - }else{ |
|
69 | + } else{ |
|
70 | 70 | $res->data[] = $message; |
71 | 71 | } |
72 | 72 | return $res; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $from_name = $settings['MailSMTPFromUsername']; |
79 | 79 | } |
80 | 80 | |
81 | - $mail->Port = (integer)$settings['MailSMTPPort']; |
|
81 | + $mail->Port = (integer) $settings['MailSMTPPort']; |
|
82 | 82 | $mail->CharSet = 'UTF-8'; |
83 | 83 | |
84 | 84 | $mail->setFrom($from_address, $from_name); |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | $mail->Subject = $subject; |
91 | 91 | $mail->Body = $message; |
92 | 92 | |
93 | - if ( ! $mail->send()) { |
|
93 | + if (!$mail->send()) { |
|
94 | 94 | $messages[] = $mail->ErrorInfo; |
95 | 95 | } |
96 | 96 | } catch (Throwable $e) { |
97 | 97 | $messages[] = $e->getMessage(); |
98 | 98 | } |
99 | 99 | |
100 | - if (count($messages)>0) { |
|
100 | + if (count($messages) > 0) { |
|
101 | 101 | Util::sysLogMsg('PHPMailer', implode(' ', $messages), LOG_ERR); |
102 | 102 | return false; |
103 | 103 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $settings = $mikoPBXConfig->getGeneralSettings(); |
110 | 110 | $systemNotificationsEmail = $settings['SystemNotificationsEmail']; |
111 | 111 | $result = self::sendMail($systemNotificationsEmail, 'Test mail from MIKO PBX', '<b>Test message</b><hr>'); |
112 | - return ($result===true); |
|
112 | + return ($result === true); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -122,10 +122,10 @@ discard block |
||
122 | 122 | $mikoPBXConfig = new MikoPBXConfig(); |
123 | 123 | $settings = $mikoPBXConfig->getGeneralSettings(); |
124 | 124 | |
125 | - $conf = "defaults\n" . |
|
126 | - "auth on\n" . |
|
125 | + $conf = "defaults\n". |
|
126 | + "auth on\n". |
|
127 | 127 | // "logfile /var/log/msmtp.log\n". |
128 | - "timeout 10\n" . |
|
128 | + "timeout 10\n". |
|
129 | 129 | "syslog LOG_LOCAL0\n\n"; |
130 | 130 | |
131 | 131 | if (isset($settings["MailSMTPUseTLS"]) && $settings["MailSMTPUseTLS"] == "1") { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | 'slin' => 'Signed Linear PCM', |
84 | 84 | 'opus' => 'Opus', |
85 | 85 | ]; |
86 | - $codecs = Codecs::find(); |
|
86 | + $codecs = Codecs::find(); |
|
87 | 87 | // Удалим лишние кодеки |
88 | 88 | /** @var Codecs $codec */ |
89 | 89 | foreach ($codecs as $codec) { |
@@ -91,10 +91,10 @@ discard block |
||
91 | 91 | $this->checkDisabledCodec($codec); |
92 | 92 | continue; |
93 | 93 | } |
94 | - if ( ! $codec->delete()) { |
|
94 | + if (!$codec->delete()) { |
|
95 | 95 | Util::sysLogMsg( |
96 | 96 | __CLASS__, |
97 | - 'Can not delete codec ' . $codec->name . ' from MikoPBX\Common\Models\Codecs' |
|
97 | + 'Can not delete codec '.$codec->name.' from MikoPBX\Common\Models\Codecs' |
|
98 | 98 | ); |
99 | 99 | } |
100 | 100 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | private function checkDisabledCodec(Codecs $codec): void |
111 | 111 | { |
112 | - if ( ! in_array($codec->disabled, ['0', '1'], true)) { |
|
112 | + if (!in_array($codec->disabled, ['0', '1'], true)) { |
|
113 | 113 | $codec->disabled = '0'; |
114 | 114 | $codec->save(); |
115 | 115 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | private function addNewCodecs(array $availCodecs): void |
124 | 124 | { |
125 | 125 | foreach ($availCodecs as $availCodec => $desc) { |
126 | - $codecData = Codecs::findFirst('name="' . $availCodec . '"'); |
|
126 | + $codecData = Codecs::findFirst('name="'.$availCodec.'"'); |
|
127 | 127 | if ($codecData === null) { |
128 | 128 | $codecData = new Codecs(); |
129 | 129 | } elseif ($codecData->description === $desc) { |
@@ -138,10 +138,10 @@ discard block |
||
138 | 138 | } |
139 | 139 | $codecData->type = $type; |
140 | 140 | $codecData->description = $desc; |
141 | - if ( ! $codecData->save()) { |
|
141 | + if (!$codecData->save()) { |
|
142 | 142 | Util::sysLogMsg( |
143 | 143 | __CLASS__, |
144 | - 'Can not update codec info ' . $codecData->name . ' from \MikoPBX\Common\Models\Codecs' |
|
144 | + 'Can not update codec info '.$codecData->name.' from \MikoPBX\Common\Models\Codecs' |
|
145 | 145 | ); |
146 | 146 | } |
147 | 147 | } |
@@ -193,12 +193,12 @@ discard block |
||
193 | 193 | $astDbPath = $this->config->path('astDatabase.dbfile'); |
194 | 194 | if (file_exists($astDbPath)) { |
195 | 195 | $table = 'astdb'; |
196 | - $sql = 'DELETE FROM ' . $table . ' WHERE key LIKE "/DND/SIP%" OR key LIKE "/CF/SIP%" OR key LIKE "/UserBuddyStatus/SIP%"'; |
|
196 | + $sql = 'DELETE FROM '.$table.' WHERE key LIKE "/DND/SIP%" OR key LIKE "/CF/SIP%" OR key LIKE "/UserBuddyStatus/SIP%"'; |
|
197 | 197 | $db = new SQLite3($astDbPath); |
198 | 198 | try { |
199 | 199 | $db->exec($sql); |
200 | 200 | } catch (Throwable $e) { |
201 | - Util::sysLogMsg(__CLASS__, 'Can clean astdb from UserBuddyStatus...' . $e->getMessage()); |
|
201 | + Util::sysLogMsg(__CLASS__, 'Can clean astdb from UserBuddyStatus...'.$e->getMessage()); |
|
202 | 202 | sleep(2); |
203 | 203 | } |
204 | 204 | $db->close(); |
@@ -211,12 +211,12 @@ discard block |
||
211 | 211 | */ |
212 | 212 | private function copyMohFilesToStorage(): void |
213 | 213 | { |
214 | - $oldMohDir = $this->config->path('asterisk.astvarlibdir') . '/sounds/moh'; |
|
215 | - if ( ! file_exists($oldMohDir)) { |
|
214 | + $oldMohDir = $this->config->path('asterisk.astvarlibdir').'/sounds/moh'; |
|
215 | + if (!file_exists($oldMohDir)) { |
|
216 | 216 | return; |
217 | 217 | } |
218 | 218 | $currentMohDir = $this->config->path('asterisk.mohdir'); |
219 | - if ( ! Util::mwMkdir($currentMohDir)) { |
|
219 | + if (!Util::mwMkdir($currentMohDir)) { |
|
220 | 220 | return; |
221 | 221 | } |
222 | 222 | |
@@ -225,9 +225,9 @@ discard block |
||
225 | 225 | if (in_array($file, ['.', '..'])) { |
226 | 226 | continue; |
227 | 227 | } |
228 | - if (copy($oldMohDir . '/' . $file, $currentMohDir . '/' . $file)) { |
|
228 | + if (copy($oldMohDir.'/'.$file, $currentMohDir.'/'.$file)) { |
|
229 | 229 | $sound_file = new SoundFiles(); |
230 | - $sound_file->path = $currentMohDir . '/' . $file; |
|
230 | + $sound_file->path = $currentMohDir.'/'.$file; |
|
231 | 231 | $sound_file->category = SoundFiles::CATEGORY_MOH; |
232 | 232 | $sound_file->name = $file; |
233 | 233 | $sound_file->save(); |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | Extensions::TYPE_CONFERENCE, |
292 | 292 | |
293 | 293 | ]; |
294 | - $extensions = Extensions::find(); |
|
294 | + $extensions = Extensions::find(); |
|
295 | 295 | foreach ($extensions as $extension) { |
296 | 296 | if (in_array($extension->type, $showInPhonebookTypes)) { |
297 | 297 | $extension->show_in_phonebook = '1'; |
@@ -306,14 +306,14 @@ discard block |
||
306 | 306 | */ |
307 | 307 | private function moveReadOnlySoundsToStorage(): void |
308 | 308 | { |
309 | - $currentMediaDir = $this->config->path('asterisk.customSoundDir') . '/'; |
|
310 | - if ( ! is_dir($currentMediaDir)) { |
|
309 | + $currentMediaDir = $this->config->path('asterisk.customSoundDir').'/'; |
|
310 | + if (!is_dir($currentMediaDir)) { |
|
311 | 311 | Util::mwMkdir($currentMediaDir); |
312 | 312 | } |
313 | 313 | $soundFiles = SoundFiles::find(); |
314 | 314 | foreach ($soundFiles as $soundFile) { |
315 | 315 | if (stripos($soundFile->path, '/offload/asterisk/sounds/other/') === 0) { |
316 | - $newPath = $currentMediaDir . pathinfo($soundFile->path)['basename']; |
|
316 | + $newPath = $currentMediaDir.pathinfo($soundFile->path)['basename']; |
|
317 | 317 | if (copy($soundFile->path, $newPath)) { |
318 | 318 | $soundFile->path = $newPath; |
319 | 319 | $soundFile->update(); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $moduleModelClass = "MikoPBX\\Common\\Models\\{$className}"; |
60 | 60 | try { |
61 | 61 | $this->createUpdateDbTableByAnnotations($moduleModelClass); |
62 | - } catch (Throwable $exception){ |
|
62 | + } catch (Throwable $exception) { |
|
63 | 63 | Util::echoWithSyslog('Errors within update table '.$className.' '.$exception->getMessage()); |
64 | 64 | } |
65 | 65 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | $result = true; |
80 | 80 | if ( |
81 | - ! class_exists($modelClassName) |
|
81 | + !class_exists($modelClassName) |
|
82 | 82 | || count(get_class_vars($modelClassName)) === 0) { |
83 | 83 | return true; |
84 | 84 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | 'isNumeric' => false, |
119 | 119 | 'primary' => false, |
120 | 120 | ]; |
121 | - $previousAttribute = $attribute; |
|
121 | + $previousAttribute = $attribute; |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | // Set data types |
@@ -226,8 +226,8 @@ discard block |
||
226 | 226 | |
227 | 227 | $connectionService->begin(); |
228 | 228 | |
229 | - if ( ! $connectionService->tableExists($tableName)) { |
|
230 | - Util::echoWithSyslog(' - UpdateDatabase: Create new table: ' . $tableName . ' '); |
|
229 | + if (!$connectionService->tableExists($tableName)) { |
|
230 | + Util::echoWithSyslog(' - UpdateDatabase: Create new table: '.$tableName.' '); |
|
231 | 231 | $result = $connectionService->createTable($tableName, '', $columnsNew); |
232 | 232 | Util::echoGreenDone(); |
233 | 233 | } else { |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | $currentColumnsArr = $connectionService->describeColumns($tableName, ''); |
236 | 236 | |
237 | 237 | if ($this->isTableStructureNotEqual($currentColumnsArr, $columns)) { |
238 | - Util::echoWithSyslog(' - UpdateDatabase: Upgrade table: ' . $tableName . ' '); |
|
238 | + Util::echoWithSyslog(' - UpdateDatabase: Upgrade table: '.$tableName.' '); |
|
239 | 239 | // Create new table and copy all data |
240 | 240 | $currentStateColumnList = []; |
241 | 241 | $oldColNames = []; // Старые названия колонок |
@@ -325,13 +325,13 @@ discard block |
||
325 | 325 | if ($oldField->$compared_setting() !== $newField->$compared_setting()) { |
326 | 326 | // Sqlite transform "1" to ""1"" in default settings, but it is normal |
327 | 327 | if ($compared_setting === 'getDefault' |
328 | - && $oldField->$compared_setting() === '"' . $newField->$compared_setting() . '"') { |
|
328 | + && $oldField->$compared_setting() === '"'.$newField->$compared_setting().'"') { |
|
329 | 329 | continue; |
330 | 330 | } |
331 | 331 | |
332 | 332 | // Description for "length" is integer, but table structure store it as string |
333 | 333 | if ($compared_setting === 'getSize' |
334 | - && (string)$oldField->$compared_setting() === (string)$newField->$compared_setting()) { |
|
334 | + && (string) $oldField->$compared_setting() === (string) $newField->$compared_setting()) { |
|
335 | 335 | continue; |
336 | 336 | } |
337 | 337 | |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | // Drop not exist indexes |
360 | 360 | foreach ($currentIndexes as $indexName => $currentIndex) { |
361 | 361 | if (stripos($indexName, 'sqlite_autoindex') === false |
362 | - && ! array_key_exists($indexName, $indexes) |
|
362 | + && !array_key_exists($indexName, $indexes) |
|
363 | 363 | ) { |
364 | 364 | Util::echoWithSyslog(" - UpdateDatabase: Delete index: {$indexName} "); |
365 | 365 | $result = $result + $connectionService->dropIndex($tableName, '', $indexName); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | if (file_exists('/etc/TZ')) { |
176 | 176 | $origin_tz = file_get_contents("/etc/TZ"); |
177 | 177 | } |
178 | - if ($origin_tz !== $db_tz){ |
|
178 | + if ($origin_tz !== $db_tz) { |
|
179 | 179 | self::timezoneConfigure(); |
180 | 180 | } |
181 | 181 | $origin_tz = $db_tz; |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | } |
246 | 246 | if ($timezone) { |
247 | 247 | $zone_file = "/usr/share/zoneinfo/{$timezone}"; |
248 | - if ( ! file_exists($zone_file)) { |
|
248 | + if (!file_exists($zone_file)) { |
|
249 | 249 | return; |
250 | 250 | } |
251 | 251 | $cpPath = Util::which('cp'); |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | try { |
284 | 284 | /** @var \MikoPBX\Modules\Config\ConfigClass $appClass */ |
285 | 285 | $appClass->onAfterPbxStarted(); |
286 | - }catch (Throwable $e){ |
|
286 | + } catch (Throwable $e) { |
|
287 | 287 | Util::sysLogMsg('onAfterPbxStarted', $e->getMessage()); |
288 | 288 | } |
289 | 289 | } |
@@ -283,7 +283,7 @@ |
||
283 | 283 | try { |
284 | 284 | /** @var \MikoPBX\Modules\Config\ConfigClass $appClass */ |
285 | 285 | $appClass->onAfterPbxStarted(); |
286 | - }catch (Throwable $e){ |
|
286 | + } catch (Throwable $e){ |
|
287 | 287 | Util::sysLogMsg('onAfterPbxStarted', $e->getMessage()); |
288 | 288 | } |
289 | 289 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $freeExtension = '2200100'; |
113 | 113 | for ($i = 100; ; $i++) { |
114 | 114 | $freeExtension = "2200{$i}"; |
115 | - if ( ! in_array(['number' => $freeExtension], $result, false)) { |
|
115 | + if (!in_array(['number' => $freeExtension], $result, false)) { |
|
116 | 116 | break; |
117 | 117 | } |
118 | 118 | } |
@@ -421,8 +421,8 @@ discard block |
||
421 | 421 | $relatedModel = $relation->getReferencedModel(); |
422 | 422 | $referencedFields = is_array($referencedFields) ? $referencedFields : [$referencedFields]; |
423 | 423 | foreach ($referencedFields as $referencedField) { |
424 | - $parameters = [ |
|
425 | - 'conditions' => $referencedField . '= :oldNumber:', |
|
424 | + $parameters = [ |
|
425 | + 'conditions' => $referencedField.'= :oldNumber:', |
|
426 | 426 | 'bind' => ['oldNumber' => $snapShotData['number']], |
427 | 427 | ]; |
428 | 428 | $relatedRecords = call_user_func([$relatedModel, 'find'], $parameters); |
@@ -476,8 +476,8 @@ discard block |
||
476 | 476 | $relatedModel = $relation->getReferencedModel(); |
477 | 477 | $referencedFields = is_array($referencedFields) ? $referencedFields : [$referencedFields]; |
478 | 478 | foreach ($referencedFields as $referencedField) { |
479 | - $parameters = [ |
|
480 | - 'conditions' => $referencedField . '= :Number:', |
|
479 | + $parameters = [ |
|
480 | + 'conditions' => $referencedField.'= :Number:', |
|
481 | 481 | 'bind' => ['Number' => $this->number], |
482 | 482 | ]; |
483 | 483 | $relatedRecords = call_user_func([$relatedModel, 'find'], $parameters); |
@@ -50,10 +50,10 @@ |
||
50 | 50 | { |
51 | 51 | $di->setShared( |
52 | 52 | self::SERVICE_NAME, |
53 | - function () { |
|
53 | + function() { |
|
54 | 54 | try { |
55 | 55 | return new License('http://127.0.0.1:8223'); |
56 | - } catch (Throwable $exception){ |
|
56 | + } catch (Throwable $exception) { |
|
57 | 57 | Util::sysLogMsg(__CLASS__, $exception); |
58 | 58 | } |
59 | 59 | return null; |
@@ -50,7 +50,8 @@ |
||
50 | 50 | { |
51 | 51 | $di->setShared( |
52 | 52 | self::SERVICE_NAME, |
53 | - function () { |
|
53 | + function () |
|
54 | + { |
|
54 | 55 | try { |
55 | 56 | return new License('http://127.0.0.1:8223'); |
56 | 57 | } catch (Throwable $exception){ |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | // IncomingRoutingTable', |
47 | 47 | // OutgoingRoutingTable', |
48 | 48 | ]; |
49 | - $results = [[]]; |
|
49 | + $results = [[]]; |
|
50 | 50 | foreach ($arrClasses as $itemClass) { |
51 | 51 | $records = call_user_func([$itemClass, 'find']); |
52 | 52 | $categoryItems = []; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | 'typeLocalized' => $this->translation->_("ex_dropdownCategory_{$type}"), |
91 | 91 | 'sorter' => $clearedRepresent, |
92 | 92 | ]; |
93 | - $items[] = $result; |
|
93 | + $items[] = $result; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $elements = $this->elements; |
104 | 104 | |
105 | 105 | $items[] = [ |
106 | - 'name' => $elements->getIconByController('incoming-routes') . ' ' . $this->translation->_( |
|
106 | + 'name' => $elements->getIconByController('incoming-routes').' '.$this->translation->_( |
|
107 | 107 | 'mm_IncomingRoutes' |
108 | 108 | ), |
109 | 109 | 'value' => $this->url->get('incoming-routes'), |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | 'sorter' => strip_tags($this->translation->_('mm_IncomingRoutes')), |
113 | 113 | ]; |
114 | 114 | $items[] = [ |
115 | - 'name' => $elements->getIconByController('outbound-routes') . ' ' . $this->translation->_( |
|
115 | + 'name' => $elements->getIconByController('outbound-routes').' '.$this->translation->_( |
|
116 | 116 | 'mm_OutboundRoutes' |
117 | 117 | ), |
118 | 118 | 'value' => $this->url->get('outbound-routes'), |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | 'sorter' => strip_tags($this->translation->_('mm_OutboundRoutes')), |
122 | 122 | ]; |
123 | 123 | $items[] = [ |
124 | - 'name' => $elements->getIconByController('general-settings') . ' ' . $this->translation->_( |
|
124 | + 'name' => $elements->getIconByController('general-settings').' '.$this->translation->_( |
|
125 | 125 | 'mm_GeneralSettings' |
126 | 126 | ), |
127 | 127 | 'value' => $this->url->get('general-settings/modify'), |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | 'sorter' => strip_tags($this->translation->_('mm_GeneralSettings')), |
131 | 131 | ]; |
132 | 132 | $items[] = [ |
133 | - 'name' => $elements->getIconByController('time-settings') . ' ' . $this->translation->_( |
|
133 | + 'name' => $elements->getIconByController('time-settings').' '.$this->translation->_( |
|
134 | 134 | 'mm_SystemClock' |
135 | 135 | ), |
136 | 136 | 'value' => $this->url->get('time-settings/modify'), |
@@ -139,14 +139,14 @@ discard block |
||
139 | 139 | 'sorter' => strip_tags($this->translation->_('mm_SystemClock')), |
140 | 140 | ]; |
141 | 141 | $items[] = [ |
142 | - 'name' => $elements->getIconByController('network') . ' ' . $this->translation->_('mm_Network'), |
|
142 | + 'name' => $elements->getIconByController('network').' '.$this->translation->_('mm_Network'), |
|
143 | 143 | 'value' => $this->url->get('network/modify/'), |
144 | 144 | 'type' => 'MENUITEMS', |
145 | 145 | 'typeLocalized' => $this->translation->_('ex_dropdownCategory_MENUITEMS'), |
146 | 146 | 'sorter' => strip_tags($this->translation->_('mm_Network')), |
147 | 147 | ]; |
148 | 148 | $items[] = [ |
149 | - 'name' => $elements->getIconByController('mail-settings') . ' ' . $this->translation->_( |
|
149 | + 'name' => $elements->getIconByController('mail-settings').' '.$this->translation->_( |
|
150 | 150 | 'mm_MailSettings' |
151 | 151 | ), |
152 | 152 | 'value' => $this->url->get('mail-settings/modify'), |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | 'sorter' => strip_tags($this->translation->_('mm_MailSettings')), |
156 | 156 | ]; |
157 | 157 | $items[] = [ |
158 | - 'name' => $elements->getIconByController('call-detail-records') . ' ' . $this->translation->_( |
|
158 | + 'name' => $elements->getIconByController('call-detail-records').' '.$this->translation->_( |
|
159 | 159 | 'mm_CallDetailRecords' |
160 | 160 | ), |
161 | 161 | 'value' => $this->url->get('call-detail-records'), |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | 'sorter' => strip_tags($this->translation->_('mm_CallDetailRecords')), |
165 | 165 | ]; |
166 | 166 | $items[] = [ |
167 | - 'name' => $elements->getIconByController('sound-files') . ' ' . $this->translation->_( |
|
167 | + 'name' => $elements->getIconByController('sound-files').' '.$this->translation->_( |
|
168 | 168 | 'mm_SoundFiles' |
169 | 169 | ), |
170 | 170 | 'value' => $this->url->get('sound-files'), |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | ]; |
175 | 175 | |
176 | 176 | $items[] = [ |
177 | - 'name' => $elements->getIconByController('licensing') . ' ' . $this->translation->_( |
|
177 | + 'name' => $elements->getIconByController('licensing').' '.$this->translation->_( |
|
178 | 178 | 'mm_Licensing' |
179 | 179 | ), |
180 | 180 | 'value' => $this->url->get('licensing/modify/'), |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | ]; |
185 | 185 | |
186 | 186 | $items[] = [ |
187 | - 'name' => $elements->getIconByController('pbx-extension-modules') . ' ' . $this->translation->_( |
|
187 | + 'name' => $elements->getIconByController('pbx-extension-modules').' '.$this->translation->_( |
|
188 | 188 | 'BreadcrumbPbxExtensionModules' |
189 | 189 | ), |
190 | 190 | 'value' => $this->url->get('pbx-extension-modules'), |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | ]; |
195 | 195 | |
196 | 196 | $items[] = [ |
197 | - 'name' => $elements->getIconByController('system-diagnostic') . ' ' . $this->translation->_( |
|
197 | + 'name' => $elements->getIconByController('system-diagnostic').' '.$this->translation->_( |
|
198 | 198 | 'mm_SystemDiagnostic' |
199 | 199 | ), |
200 | 200 | 'value' => $this->url->get('system-diagnostic'), |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | ]; |
205 | 205 | |
206 | 206 | $items[] = [ |
207 | - 'name' => $elements->getIconByController('fail2-ban') . ' ' . $this->translation->_( |
|
207 | + 'name' => $elements->getIconByController('fail2-ban').' '.$this->translation->_( |
|
208 | 208 | 'mm_BruteForceProtection' |
209 | 209 | ), |
210 | 210 | 'value' => $this->url->get('fail2-ban'), |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | 'sorter' => strip_tags($this->translation->_('mm_BruteForceProtection')), |
214 | 214 | ]; |
215 | 215 | $items[] = [ |
216 | - 'name' => $elements->getIconByController('update') . ' ' . $this->translation->_( |
|
216 | + 'name' => $elements->getIconByController('update').' '.$this->translation->_( |
|
217 | 217 | 'mm_UpdateSystem' |
218 | 218 | ), |
219 | 219 | 'value' => $this->url->get('update'), |