Passed
Push — develop ( 75b95c...1674d6 )
by Портнов
05:04
created
src/Core/Workers/WorkerModelsEvents.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         foreach ($additionalModules as $appClass) {
190 190
             // Проверим, зависит ли объект от измененных данных.
191 191
             $dependences = $appClass->dependenceModels();
192
-            if (in_array($called_class, $dependences, true)){
192
+            if (in_array($called_class, $dependences, true)) {
193 193
                 // Получаем новые настройки.
194 194
                 $appClass->getSettings();
195 195
             }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
                 break;
236 236
             case Codecs::class:
237 237
                 $this->modified_tables[self::R_IAX] = true;
238
-                $this->modified_tables[self::R_SIP]     = true;
238
+                $this->modified_tables[self::R_SIP] = true;
239 239
                 break;
240 240
             case SoundFiles::class:
241 241
                 $this->modified_tables[self::R_MOH] = true;
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
                 break;
254 254
             case PbxSettings::class:
255 255
                 $pbxSettings = PbxSettings::findFirstByKey($data['recordId']);
256
-                if ($pbxSettings===null){
256
+                if ($pbxSettings === null) {
257 257
                     return;
258 258
                 }
259 259
                 if ($pbxSettings->itHasFeaturesSettingsChanges()) {
@@ -295,17 +295,17 @@  discard block
 block discarded – undo
295 295
                     $this->modified_tables[self::R_NATS]    = true;
296 296
                 }
297 297
                 if ($pbxSettings->itHasTimeZoneSettings()) {
298
-                    $this->modified_tables[self::R_TIMEZONE]    = true;
299
-                    $this->modified_tables[self::R_NGINX]    = true;
300
-                    $this->modified_tables[self::R_PHP_FPM]    = true;
298
+                    $this->modified_tables[self::R_TIMEZONE] = true;
299
+                    $this->modified_tables[self::R_NGINX] = true;
300
+                    $this->modified_tables[self::R_PHP_FPM] = true;
301 301
                     $this->modified_tables[self::R_REST_API_WORKER] = true;
302 302
                 }
303 303
                 if ($pbxSettings->itHasNTPSettings()) {
304
-                    $this->modified_tables[self::R_NTP]    = true;
304
+                    $this->modified_tables[self::R_NTP] = true;
305 305
                 }
306 306
                 if ($pbxSettings->itHasCallRecordSettings()) {
307
-                    $this->modified_tables[self::R_CALL_EVENTS_WORKER]  = true;
308
-                    $this->modified_tables[self::R_DIALPLAN]  = true;
307
+                    $this->modified_tables[self::R_CALL_EVENTS_WORKER] = true;
308
+                    $this->modified_tables[self::R_DIALPLAN] = true;
309 309
                 }
310 310
                 break;
311 311
             case PbxExtensionModules::class:
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      */
467 467
     public function reloadNginx(): void
468 468
     {
469
-        $nginxConf  = new NginxConf();
469
+        $nginxConf = new NginxConf();
470 470
         $nginxConf->generateConf();
471 471
         $nginxConf->reStart();
472 472
     }
Please login to merge, or discard this patch.