Passed
Push — master ( 15b19d...384de0 )
by Nikolay
11:50 queued 06:02
created
src/AdminCabinet/Controllers/AsteriskManagersController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             ]
81 81
         );
82 82
         $arrNetworkFilters['none']
83
-                           = $this->translation->_('ex_NoNetworkFilter');
83
+                            = $this->translation->_('ex_NoNetworkFilter');
84 84
         foreach ($networkFilters as $filter) {
85 85
             $arrNetworkFilters[$filter->id] = $filter->getRepresent();
86 86
         }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function saveAction(): void
106 106
     {
107
-        if ( ! $this->request->isPost()) {
107
+        if (!$this->request->isPost()) {
108 108
             return;
109 109
         }
110 110
 
@@ -120,18 +120,18 @@  discard block
 block discarded – undo
120 120
         foreach ($manager as $name => $value) {
121 121
             if (in_array($name, $this->arrCheckBoxes, true)) {
122 122
                 $manager->$name = '';
123
-                $manager->$name .= ($data[$name . '_read'] === 'on') ? 'read' : '';
124
-                $manager->$name .= ($data[$name . '_write'] === 'on') ? 'write' : '';
123
+                $manager->$name .= ($data[$name.'_read'] === 'on') ? 'read' : '';
124
+                $manager->$name .= ($data[$name.'_write'] === 'on') ? 'write' : '';
125 125
                 continue;
126 126
             }
127 127
 
128
-            if ( ! array_key_exists($name, $data)) {
128
+            if (!array_key_exists($name, $data)) {
129 129
                 continue;
130 130
             }
131 131
             $manager->$name = $data[$name];
132 132
         }
133 133
         $errors = false;
134
-        if ( ! $manager->save()) {
134
+        if (!$manager->save()) {
135 135
             $errors = $manager->getMessages();
136 136
         }
137 137
 
Please login to merge, or discard this patch.
src/AdminCabinet/Controllers/IvrMenuController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             $ivrmenu->uniqid           = strtoupper('IVR-' . md5($ivrmenu->id . time()));
43 43
             $ivrmenu->number_of_repeat = 3;
44 44
             $ivrmenu->extension
45
-                                       = Extensions::getNextFreeApplicationNumber();
45
+                                        = Extensions::getNextFreeApplicationNumber();
46 46
             $ivrmenu->timeout          = 7;
47 47
         } else {
48 48
             $extensionListForFilter[] = $ivrmenu->timeout_extension;
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $extensionListForFilter = [];
42 42
         if ($ivrmenu === null) {
43 43
             $ivrmenu                   = new IvrMenu();
44
-            $ivrmenu->uniqid           = strtoupper('IVR-' . md5($ivrmenu->id . time()));
44
+            $ivrmenu->uniqid           = strtoupper('IVR-'.md5($ivrmenu->id.time()));
45 45
             $ivrmenu->number_of_repeat = 3;
46 46
             $ivrmenu->extension
47 47
                                        = Extensions::getNextFreeApplicationNumber();
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
                     'menu' => $ivrmenu->uniqid,
57 57
                 ],
58 58
             ];
59
-            $actions    = IvrMenuActions::find($parameters);
59
+            $actions = IvrMenuActions::find($parameters);
60 60
             foreach ($actions as $action) {
61
-                $ivrActionsList[]         = [
61
+                $ivrActionsList[] = [
62 62
                     'id'                 => $action->id,
63 63
                     'extension'          => $action->extension,
64 64
                     'extensionRepresent' => str_replace(
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             $soundfilesList[$soundFile->id] = $soundFile->getRepresent();
93 93
         }
94 94
 
95
-        $form                   = new IvrMenuEditForm(
95
+        $form = new IvrMenuEditForm(
96 96
             $ivrmenu, [
97 97
             'extensions' => $extensionList,
98 98
             'soundfiles' => $soundfilesList,
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function saveAction(): void
113 113
     {
114
-        if ( ! $this->request->isPost()) {
114
+        if (!$this->request->isPost()) {
115 115
             return;
116 116
         }
117 117
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         }
135 135
 
136 136
         // Заполним параметры внутреннего номера
137
-        if ( ! $this->updateExtension($extension, $data)) {
137
+        if (!$this->updateExtension($extension, $data)) {
138 138
             $this->view->success = false;
139 139
             $this->db->rollback();
140 140
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         }
143 143
 
144 144
         // Заполним параметры IVR меню
145
-        if ( ! $this->updateIVRMenu($ivrMenuRecord, $data)) {
145
+        if (!$this->updateIVRMenu($ivrMenuRecord, $data)) {
146 146
             $this->view->success = false;
147 147
             $this->db->rollback();
148 148
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         }
151 151
 
152 152
         // Заполним параметры участников IVR Меню
153
-        if ( ! $this->updateIVRMenuActions($data)) {
153
+        if (!$this->updateIVRMenuActions($data)) {
154 154
             $this->view->success = false;
155 155
             $this->db->rollback();
156 156
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                     }
214 214
                     break;
215 215
                 default:
216
-                    if ( ! array_key_exists($name, $data)) {
216
+                    if (!array_key_exists($name, $data)) {
217 217
                         continue 2;
218 218
                     }
219 219
                     $ivrMenu->$name = $data[$name];
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
                     'uniqid' => $data['uniqid'],
251 251
                 ],
252 252
             ];
253
-            $newRule    = IvrMenuActions::findFirst($parameters);
253
+            $newRule = IvrMenuActions::findFirst($parameters);
254 254
             if ($newRule === null) {
255 255
                 $newRule              = new IvrMenuActions();
256 256
                 $newRule->digits      = $value->digits;
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         $this->db->begin();
307 307
         $errors = false;
308 308
         $extension = $ivrMenu->Extensions;
309
-        if ( ! $extension->delete()) {
309
+        if (!$extension->delete()) {
310 310
             $errors = $extension->getMessages();
311 311
         }
312 312
 
Please login to merge, or discard this patch.
src/AdminCabinet/Controllers/CallDetailRecordsController.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             return;
49 49
         }
50 50
         // Посчитаем количество уникальных звонков с учетом фильтров
51
-        if ( ! empty($searchPhrase['value'])) {
51
+        if (!empty($searchPhrase['value'])) {
52 52
             $this->prepareConditionsForSearchPhrases($searchPhrase['value'], $parameters);
53 53
             // Если мы не смогли расшифровать строку запроса вернем пустой результата
54 54
             if (empty($parameters['conditions'])) {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $arrCdr = [];
104 104
 
105
-        $objectLinkedCallRecord = (object)[
105
+        $objectLinkedCallRecord = (object) [
106 106
             'linkedid'    => '',
107 107
             'disposition' => '',
108 108
             'start'       => '',
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         ];
115 115
 
116 116
         foreach ($selectedRecords as $record) {
117
-            if ( ! array_key_exists($record->linkedid, $arrCdr)) {
117
+            if (!array_key_exists($record->linkedid, $arrCdr)) {
118 118
                 $arrCdr[$record->linkedid] = clone $objectLinkedCallRecord;
119 119
             }
120 120
             if ($record->is_app !== '1'
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
             $linkedRecord->disposition = $linkedRecord->disposition !== 'ANSWERED' ? $disposition : 'ANSWERED';
130 130
             $linkedRecord->start       = $linkedRecord->start === '' ? $record->start : $linkedRecord->start;
131 131
             $linkedRecord->src_num     = $linkedRecord->src_num === '' ? $record->src_num : $linkedRecord->src_num;
132
-            if ( ! empty($record->did)) {
132
+            if (!empty($record->did)) {
133 133
                 $linkedRecord->dst_num = $record->did;
134 134
             } else {
135 135
                 $linkedRecord->dst_num = $linkedRecord->dst_num === '' ? $record->dst_num : $linkedRecord->dst_num;
136 136
             }
137
-            $linkedRecord->billsec += (int)$record->billsec;
137
+            $linkedRecord->billsec += (int) $record->billsec;
138 138
             if ($disposition === 'ANSWERED') {
139 139
                 $linkedRecord->answered[] = [
140 140
                     'id'            => $record->id,
@@ -188,12 +188,12 @@  discard block
 block discarded – undo
188 188
                 $date                                  = DateTime::createFromFormat('d/m/Y', $matches[0][0]);
189 189
                 $requestedDate                         = $date->format('Y-m-d');
190 190
                 $tomorrowDate                          = $date->modify('+1 day')->format('Y-m-d');
191
-                $parameters['conditions']              .= 'start BETWEEN :dateFromPhrase1: AND :dateFromPhrase2:';
191
+                $parameters['conditions'] .= 'start BETWEEN :dateFromPhrase1: AND :dateFromPhrase2:';
192 192
                 $parameters['bind']['dateFromPhrase1'] = $requestedDate;
193 193
                 $parameters['bind']['dateFromPhrase2'] = $tomorrowDate;
194 194
                 $searchPhrase                          = str_replace($matches[0][0], "", $searchPhrase);
195 195
             } elseif (count($matches[0]) === 2) {
196
-                $parameters['conditions']              .= 'start BETWEEN :dateFromPhrase1: AND :dateFromPhrase2:';
196
+                $parameters['conditions'] .= 'start BETWEEN :dateFromPhrase1: AND :dateFromPhrase2:';
197 197
                 $date                                  = DateTime::createFromFormat('d/m/Y', $matches[0][0]);
198 198
                 $requestedDate                         = $date->format('Y-m-d');
199 199
                 $parameters['bind']['dateFromPhrase1'] = $requestedDate;
@@ -216,16 +216,16 @@  discard block
 block discarded – undo
216 216
             $extensionsLength = PbxSettings::getValueByKey('PBXInternalExtensionLength');
217 217
             if ($parameters['conditions'] !== '') {
218 218
                 $parameters['conditions'] .= ' AND (';
219
-                $needCloseAnd             = true;
219
+                $needCloseAnd = true;
220 220
             }
221 221
             if (count($matches[0]) === 1) {
222 222
                 if ($extensionsLength === strlen($matches[0][0])) {
223
-                    $parameters['conditions']            .= 'src_num = :SearchPhrase1: OR dst_num = :SearchPhrase2:';
223
+                    $parameters['conditions'] .= 'src_num = :SearchPhrase1: OR dst_num = :SearchPhrase2:';
224 224
                     $parameters['bind']['SearchPhrase1'] = $matches[0][0];
225 225
                     $parameters['bind']['SearchPhrase2'] = $matches[0][0];
226 226
                 } else {
227 227
                     $seekNumber                          = substr($matches[0][0], -9);
228
-                    $parameters['conditions']            .= 'src_num LIKE :SearchPhrase1: OR dst_num LIKE :SearchPhrase2: OR did LIKE :SearchPhrase3:';
228
+                    $parameters['conditions'] .= 'src_num LIKE :SearchPhrase1: OR dst_num LIKE :SearchPhrase2: OR did LIKE :SearchPhrase3:';
229 229
                     $parameters['bind']['SearchPhrase1'] = "%{$seekNumber}%";
230 230
                     $parameters['bind']['SearchPhrase2'] = "%{$seekNumber}%";
231 231
                     $parameters['bind']['SearchPhrase3'] = "%{$seekNumber}%";
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
                 } elseif ($extensionsLength === strlen($matches[0][0]) && $extensionsLength !== strlen(
250 250
                         $matches[0][1]
251 251
                     )) {
252
-                    $seekNumber                          = substr($matches[0][1], -9);
252
+                    $seekNumber = substr($matches[0][1], -9);
253 253
                     $parameters['conditions']            .= '(src_num = :SearchPhrase1: AND dst_num LIKE :SearchPhrase2:)';
254 254
                     $parameters['conditions']            .= ' OR (src_num LIKE :SearchPhrase3: AND dst_num = :SearchPhrase4:)';
255 255
                     $parameters['conditions']            .= ' OR (src_num LIKE :SearchPhrase5: AND did = :SearchPhrase6:)';
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
                 } elseif ($extensionsLength !== strlen($matches[0][0]) && $extensionsLength === strlen(
266 266
                         $matches[0][1]
267 267
                     )) {
268
-                    $seekNumber                          = substr($matches[0][0], -9);
268
+                    $seekNumber = substr($matches[0][0], -9);
269 269
                     $parameters['conditions']            .= '(src_num LIKE :SearchPhrase1: AND dst_num = :SearchPhrase2:)';
270 270
                     $parameters['conditions']            .= ' OR (src_num = :SearchPhrase3: AND dst_num LIKE :SearchPhrase4:)';
271 271
                     $parameters['conditions']            .= ' OR (src_num LIKE :SearchPhrase5: AND did = :SearchPhrase6:)';
Please login to merge, or discard this patch.
src/AdminCabinet/Controllers/OutOffWorkTimeController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,20 +29,20 @@  discard block
 block discarded – undo
29 29
         foreach ($timeFrames as $timeFrame) {
30 30
             $timeframesTable[] = [
31 31
                 'id'               => $timeFrame->id,
32
-                'date_from'        => ( ! empty($timeFrame->date_from))
32
+                'date_from'        => (!empty($timeFrame->date_from))
33 33
                 > 0 ? date(
34 34
                     "d/m/Y",
35 35
                     $timeFrame->date_from
36 36
                 ) : '',
37
-                'date_to'          => ( ! empty($timeFrame->date_to)) > 0
37
+                'date_to'          => (!empty($timeFrame->date_to)) > 0
38 38
                     ? date("d/m/Y", $timeFrame->date_to) : '',
39
-                'weekday_from'     => ( ! empty($timeFrame->weekday_from)) ? $this->translation->_(
39
+                'weekday_from'     => (!empty($timeFrame->weekday_from)) ? $this->translation->_(
40 40
                     date(
41 41
                         'D',
42 42
                         strtotime("Sunday +{$timeFrame->weekday_from} days")
43 43
                     )
44 44
                 ) : '',
45
-                'weekday_to'       => ( ! empty($timeFrame->weekday_to)) ? $this->translation->_(
45
+                'weekday_to'       => (!empty($timeFrame->weekday_to)) ? $this->translation->_(
46 46
                     date(
47 47
                         'D',
48 48
                         strtotime("Sunday +{$timeFrame->weekday_to} days")
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 'extension' => $timeFrame->extension,
80 80
             ],
81 81
         ];
82
-        $extensions               = Extensions::find($parameters);
82
+        $extensions = Extensions::find($parameters);
83 83
         foreach ($extensions as $record) {
84 84
             $forwardingExtensions[$record->number] = $record->getRepresent();
85 85
         }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             $weekDays[$i] = $this->translation->_(date('D', strtotime("Sunday +{$i} days")));
101 101
         }
102 102
 
103
-        $form                  = new TimeFrameEditForm(
103
+        $form = new TimeFrameEditForm(
104 104
             $timeFrame, [
105 105
             'extensions'        => $forwardingExtensions,
106 106
             'audio-message'     => $audioMessages,
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function saveAction(): void
119 119
     {
120
-        if ( ! $this->request->isPost()) {
120
+        if (!$this->request->isPost()) {
121 121
             return;
122 122
         }
123 123
         $data = $this->request->getPost();
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             switch ($name) {
134 134
                 case 'weekday_from':
135 135
                 case 'weekday_to':
136
-                    if ( ! array_key_exists($name, $data)) {
136
+                    if (!array_key_exists($name, $data)) {
137 137
                         $timeFrame->$name = '';
138 138
                     } else {
139 139
                         $timeFrame->$name = ($data[$name] < 1) ? null : $data[$name];
@@ -144,14 +144,14 @@  discard block
 block discarded – undo
144 144
                 case 'date_to':
145 145
                 case 'time_from':
146 146
                 case 'time_to':
147
-                    if ( ! array_key_exists($name, $data)) {
147
+                    if (!array_key_exists($name, $data)) {
148 148
                         $timeFrame->$name = '';
149 149
                     } else {
150 150
                         $timeFrame->$name = $data[$name];
151 151
                     }
152 152
                     break;
153 153
                 default:
154
-                    if ( ! array_key_exists($name, $data)) {
154
+                    if (!array_key_exists($name, $data)) {
155 155
                         continue 2;
156 156
                     }
157 157
                     $timeFrame->$name = $data[$name];
Please login to merge, or discard this patch.
src/AdminCabinet/Controllers/TopMenuSearchController.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             // IncomingRoutingTable',
49 49
             // OutgoingRoutingTable',
50 50
         ];
51
-        $results    = [[]];
51
+        $results = [[]];
52 52
         foreach ($arrClasses as $itemClass) {
53 53
             $records       = $itemClass::find();
54 54
             $categoryItems = [];
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             'typeLocalized' => $this->translation->_("ex_dropdownCategory_{$type}"),
93 93
             'sorter'        => $clearedRepresent,
94 94
         ];
95
-        $items[]          = $result;
95
+        $items[] = $result;
96 96
     }
97 97
 
98 98
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $elements = $this->elements;
106 106
 
107 107
         $items[] = [
108
-            'name'          => $elements->getIconByController('incoming-routes') . ' ' . $this->translation->_(
108
+            'name'          => $elements->getIconByController('incoming-routes').' '.$this->translation->_(
109 109
                     'mm_IncomingRoutes'
110 110
                 ),
111 111
             'value'         => $this->url->get('incoming-routes'),
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             'sorter'        => strip_tags($this->translation->_('mm_IncomingRoutes')),
115 115
         ];
116 116
         $items[] = [
117
-            'name'          => $elements->getIconByController('outbound-routes') . ' ' . $this->translation->_(
117
+            'name'          => $elements->getIconByController('outbound-routes').' '.$this->translation->_(
118 118
                     'mm_OutboundRoutes'
119 119
                 ),
120 120
             'value'         => $this->url->get('outbound-routes'),
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             'sorter'        => strip_tags($this->translation->_('mm_OutboundRoutes')),
124 124
         ];
125 125
         $items[] = [
126
-            'name'          => $elements->getIconByController('general-settings') . ' ' . $this->translation->_(
126
+            'name'          => $elements->getIconByController('general-settings').' '.$this->translation->_(
127 127
                     'mm_GeneralSettings'
128 128
                 ),
129 129
             'value'         => $this->url->get('general-settings/modify'),
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             'sorter'        => strip_tags($this->translation->_('mm_GeneralSettings')),
133 133
         ];
134 134
         $items[] = [
135
-            'name'          => $elements->getIconByController('time-settings') . ' ' . $this->translation->_(
135
+            'name'          => $elements->getIconByController('time-settings').' '.$this->translation->_(
136 136
                     'mm_SystemClock'
137 137
                 ),
138 138
             'value'         => $this->url->get('time-settings/modify'),
@@ -141,14 +141,14 @@  discard block
 block discarded – undo
141 141
             'sorter'        => strip_tags($this->translation->_('mm_SystemClock')),
142 142
         ];
143 143
         $items[] = [
144
-            'name'          => $elements->getIconByController('network') . ' ' . $this->translation->_('mm_Network'),
144
+            'name'          => $elements->getIconByController('network').' '.$this->translation->_('mm_Network'),
145 145
             'value'         => $this->url->get('network/modify/'),
146 146
             'type'          => 'MENUITEMS',
147 147
             'typeLocalized' => $this->translation->_('ex_dropdownCategory_MENUITEMS'),
148 148
             'sorter'        => strip_tags($this->translation->_('mm_Network')),
149 149
         ];
150 150
         $items[] = [
151
-            'name'          => $elements->getIconByController('mail-settings') . ' ' . $this->translation->_(
151
+            'name'          => $elements->getIconByController('mail-settings').' '.$this->translation->_(
152 152
                     'mm_MailSettings'
153 153
                 ),
154 154
             'value'         => $this->url->get('mail-settings/modify'),
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             'sorter'        => strip_tags($this->translation->_('mm_MailSettings')),
158 158
         ];
159 159
         $items[] = [
160
-            'name'          => $elements->getIconByController('call-detail-records') . ' ' . $this->translation->_(
160
+            'name'          => $elements->getIconByController('call-detail-records').' '.$this->translation->_(
161 161
                     'mm_CallDetailRecords'
162 162
                 ),
163 163
             'value'         => $this->url->get('call-detail-records'),
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             'sorter'        => strip_tags($this->translation->_('mm_CallDetailRecords')),
167 167
         ];
168 168
         $items[] = [
169
-            'name'          => $elements->getIconByController('sound-files') . ' ' . $this->translation->_(
169
+            'name'          => $elements->getIconByController('sound-files').' '.$this->translation->_(
170 170
                     'mm_SoundFiles'
171 171
                 ),
172 172
             'value'         => $this->url->get('sound-files'),
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         ];
177 177
 
178 178
         $items[] = [
179
-            'name'          => $elements->getIconByController('licensing') . ' ' . $this->translation->_(
179
+            'name'          => $elements->getIconByController('licensing').' '.$this->translation->_(
180 180
                     'mm_Licensing'
181 181
                 ),
182 182
             'value'         => $this->url->get('licensing/modify/'),
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         ];
187 187
 
188 188
         $items[] = [
189
-            'name'          => $elements->getIconByController('pbx-extension-modules') . ' ' . $this->translation->_(
189
+            'name'          => $elements->getIconByController('pbx-extension-modules').' '.$this->translation->_(
190 190
                     'BreadcrumbPbxExtensionModules'
191 191
                 ),
192 192
             'value'         => $this->url->get('pbx-extension-modules'),
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         ];
197 197
 
198 198
         $items[] = [
199
-            'name'          => $elements->getIconByController('system-diagnostic') . ' ' . $this->translation->_(
199
+            'name'          => $elements->getIconByController('system-diagnostic').' '.$this->translation->_(
200 200
                     'mm_SystemDiagnostic'
201 201
                 ),
202 202
             'value'         => $this->url->get('system-diagnostic'),
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         ];
207 207
 
208 208
         $items[] = [
209
-            'name'          => $elements->getIconByController('fail2-ban') . ' ' . $this->translation->_(
209
+            'name'          => $elements->getIconByController('fail2-ban').' '.$this->translation->_(
210 210
                     'mm_BruteForceProtection'
211 211
                 ),
212 212
             'value'         => $this->url->get('fail2-ban'),
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             'sorter'        => strip_tags($this->translation->_('mm_BruteForceProtection')),
216 216
         ];
217 217
         $items[] = [
218
-            'name'          => $elements->getIconByController('update') . ' ' . $this->translation->_(
218
+            'name'          => $elements->getIconByController('update').' '.$this->translation->_(
219 219
                     'mm_UpdateSystem'
220 220
                 ),
221 221
             'value'         => $this->url->get('update'),
Please login to merge, or discard this patch.
src/AdminCabinet/Controllers/Fail2BanController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         }
27 27
         $fail2BanEnabled = PbxSettings::getValueByKey('PBXFail2BanEnabled');
28 28
 
29
-        $this->view->form       = new Fail2BanEditForm(
29
+        $this->view->form = new Fail2BanEditForm(
30 30
             $rules,
31 31
             ['PBXFail2BanEnabled' => $fail2BanEnabled]
32 32
         );
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function saveAction(): void
40 40
     {
41
-        if ( ! $this->request->isPost()) {
41
+        if (!$this->request->isPost()) {
42 42
             return;
43 43
         }
44 44
         $data   = $this->request->getPost();
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                 case "id":
54 54
                     break;
55 55
                 default:
56
-                    if ( ! array_key_exists($key, $data)) {
56
+                    if (!array_key_exists($key, $data)) {
57 57
                         $record->$key = '';
58 58
                         continue 2;
59 59
                     }
Please login to merge, or discard this patch.
src/AdminCabinet/Forms/ExtensionEditForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         $this->add(
31 31
             new Text(
32 32
                 'number', [
33
-                "data-inputmask" => "'mask': '" . $options["internalextension_mask"] . "'",
33
+                "data-inputmask" => "'mask': '".$options["internalextension_mask"]."'",
34 34
             ]
35 35
             )
36 36
         );
Please login to merge, or discard this patch.
src/AdminCabinet/Forms/NetworkEditForm.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         foreach ($options['eths'] as $eth) {
40 40
             $this->add(
41 41
                 new Hidden(
42
-                    'interface_' . $eth->id, [
42
+                    'interface_'.$eth->id, [
43 43
                     'value' => $eth->interface,
44 44
                 ]
45 45
                 )
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
             $this->add(
49 49
                 new Text(
50
-                    'name_' . $eth->id, [
50
+                    'name_'.$eth->id, [
51 51
                     'value' => $eth->name,
52 52
                 ]
53 53
                 )
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
                 $cheskarr = ['checked' => 'checked', 'value' => null];
60 60
             }
61 61
 
62
-            $this->add(new Check('dhcp_' . $eth->id, $cheskarr));
62
+            $this->add(new Check('dhcp_'.$eth->id, $cheskarr));
63 63
 
64 64
             $this->add(
65 65
                 new Text(
66
-                    'ipaddr_' . $eth->id, [
66
+                    'ipaddr_'.$eth->id, [
67 67
                     'value' => $eth->ipaddr,
68 68
                     'class' => 'ipaddress',
69 69
                 ]
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
                 "31" => "31 - 255.255.255.254",
107 107
                 "32" => "32 - 255.255.255.255",
108 108
             ];
109
-            $mask     = new Select(
110
-                'subnet_' . $eth->id, $arrMasks, [
109
+            $mask = new Select(
110
+                'subnet_'.$eth->id, $arrMasks, [
111 111
                 'using'    => [
112 112
                     'id',
113 113
                     'name',
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
 
122 122
             $this->add(
123 123
                 new Numeric(
124
-                    'vlanid_' . $eth->id, [
124
+                    'vlanid_'.$eth->id, [
125 125
                     'value' => $eth->vlanid,
126 126
                 ]
127 127
                 )
128 128
             );
129 129
 
130
-            $arrInterfaces[$eth->id] = $eth->name . ' (' . $eth->interface . (($eth->vlanid > 0) ? '.' . $eth->vlanid : '') . ')';
131
-            if ( ! in_array($eth->interface, $arrRealInterfaces)) {
130
+            $arrInterfaces[$eth->id] = $eth->name.' ('.$eth->interface.(($eth->vlanid > 0) ? '.'.$eth->vlanid : '').')';
131
+            if (!in_array($eth->interface, $arrRealInterfaces)) {
132 132
                 $arrRealInterfaces[$eth->id] = $eth->interface;
133 133
             }
134 134
         }
Please login to merge, or discard this patch.
src/AdminCabinet/Forms/FirewallEditForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             "31" => "31 - 255.255.255.254",
60 60
             "32" => "32 - 255.255.255.255",
61 61
         ];
62
-        $mask     = new Select(
62
+        $mask = new Select(
63 63
             'subnet', $arrMasks, [
64 64
             'using'    => [
65 65
                 'id',
Please login to merge, or discard this patch.