Passed
Pull Request — master (#23)
by Nikolay
09:42 queued 03:08
created
src/PBXCoreREST/Controllers/Modules/ModulesControllerBase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,18 +47,18 @@
 block discarded – undo
47 47
         $request            = json_encode([
48 48
             'data'           => $_REQUEST,
49 49
             'module'         => $moduleName,
50
-            'input'          => $input,     // Параметры запроса.
50
+            'input'          => $input, // Параметры запроса.
51 51
             'action'         => $actionName,
52 52
             'REQUEST_METHOD' => $_SERVER['REQUEST_METHOD'],
53 53
             'processor'      => 'modules',
54 54
         ]);
55 55
 
56
-        $response   = $this->di->getShared('beanstalkConnectionWorkerAPI')->request($request, 30, 0);
56
+        $response = $this->di->getShared('beanstalkConnectionWorkerAPI')->request($request, 30, 0);
57 57
         if ($response !== false) {
58 58
             $response = json_decode($response, true);
59 59
             if (isset($response['fpassthru'])) {
60 60
                 $fp = fopen($response['filename'], "rb");
61
-                if ($fp!==false) {
61
+                if ($fp !== false) {
62 62
                     $size = filesize($response['filename']);
63 63
                     $name = basename($response['filename']);
64 64
                     $this->response->setHeader('Content-Description', "config file");
Please login to merge, or discard this patch.
src/PBXCoreREST/Controllers/BaseController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         string $processor,
28 28
         string $actionName,
29 29
         $payload = null,
30
-        string $modulename='',
30
+        string $modulename = '',
31 31
         int $maxTimeout = 10,
32 32
         int $priority = Pheanstalk::DEFAULT_PRIORITY
33 33
     ): void
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
             'data'      => $payload,
38 38
             'action'    => $actionName
39 39
         ];
40
-        if ($processor==='modules'){
40
+        if ($processor === 'modules') {
41 41
             $requestMessage['module'] = $modulename;
42 42
         }
43 43
         try {
44 44
             $message = json_encode($requestMessage, JSON_THROW_ON_ERROR);
45
-            $response       = $this->di->getShared('beanstalkConnectionWorkerAPI')->request($message, $maxTimeout, $priority);
45
+            $response = $this->di->getShared('beanstalkConnectionWorkerAPI')->request($message, $maxTimeout, $priority);
46 46
             if ($response !== false) {
47 47
                 $response = json_decode($response, true, 512, JSON_THROW_ON_ERROR);
48 48
                 $this->response->setPayloadSuccess($response);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $this
66 66
             ->response
67
-            ->setPayloadError($this->response->getHttpCodeDescription($code) . ' ' . $description)
67
+            ->setPayloadError($this->response->getHttpCodeDescription($code).' '.$description)
68 68
             ->setStatusCode($code);
69 69
     }
70 70
 }
71 71
\ No newline at end of file
Please login to merge, or discard this patch.
src/Modules/Setup/PbxExtensionSetupBase.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
         $this->messages = [];
117 117
         $this->db      = $this->getDI()->getShared('db');
118 118
         $this->config  = $this->getDI()->getShared('config');
119
-        $this->license =  $this->getDI()->getShared('license');
120
-        $this->moduleDir = $this->config->path('core.modulesDir') . '/' . $this->moduleUniqueID;
119
+        $this->license = $this->getDI()->getShared('license');
120
+        $this->moduleDir = $this->config->path('core.modulesDir').'/'.$this->moduleUniqueID;
121 121
         $settings_file = "{$this->moduleDir}/module.json";
122 122
         if (file_exists($settings_file)) {
123 123
             $module_settings = json_decode(file_get_contents($settings_file), true);
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             }
142 142
         }
143 143
 
144
-        $this->messages  = [];
144
+        $this->messages = [];
145 145
 
146 146
 
147 147
     }
@@ -156,21 +156,21 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $result = true;
158 158
         try {
159
-            if ( ! $this->activateLicense()) {
159
+            if (!$this->activateLicense()) {
160 160
                 $this->messages[] = 'License activate error';
161 161
                 $result           = false;
162 162
             }
163
-            if ( ! $this->installFiles()) {
163
+            if (!$this->installFiles()) {
164 164
                 $this->messages[] = ' installFiles error';
165 165
                 $result           = false;
166 166
             }
167
-            if ( ! $this->installDB()) {
167
+            if (!$this->installDB()) {
168 168
                 $this->messages[] = ' installDB error';
169 169
                 $result           = false;
170 170
             }
171 171
             $this->fixFilesRights();
172 172
         } catch (Throwable $exception) {
173
-            $result         = false;
173
+            $result = false;
174 174
             $this->messages[] = $exception->getMessage();
175 175
         }
176 176
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         PbxExtensionUtils::createAgiBinSymlinks($this->moduleUniqueID);
202 202
 
203 203
         // Restore database settings
204
-        $modulesDir          = $this->config->path('core.modulesDir');
204
+        $modulesDir = $this->config->path('core.modulesDir');
205 205
         $backupPath = "{$modulesDir}/Backup/{$this->moduleUniqueID}";
206 206
         if (is_dir($backupPath)) {
207 207
             $cpPath = Util::which('cp');
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
             "{$this->moduleDir}/bin"
225 225
         ];
226 226
         foreach ($dirs as $dir) {
227
-            if(file_exists($dir) && is_dir($dir)){
227
+            if (file_exists($dir) && is_dir($dir)) {
228 228
                 // Add executable right to module's binary
229 229
                 Util::addExecutableRights($dir);
230 230
             }
@@ -259,16 +259,16 @@  discard block
 block discarded – undo
259 259
     {
260 260
         $result = true;
261 261
         try {
262
-            if ( ! $this->unInstallDB($keepSettings)) {
262
+            if (!$this->unInstallDB($keepSettings)) {
263 263
                 $this->messages[] = ' unInstallDB error';
264 264
                 $result           = false;
265 265
             }
266
-            if ($result && ! $this->unInstallFiles($keepSettings)) {
266
+            if ($result && !$this->unInstallFiles($keepSettings)) {
267 267
                 $this->messages[] = ' unInstallFiles error';
268 268
                 $result           = false;
269 269
             }
270 270
         } catch (Throwable $exception) {
271
-            $result         = false;
271
+            $result = false;
272 272
             $this->messages[] = $exception->getMessage();
273 273
         }
274 274
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     {
317 317
         $cpPath = Util::which('cp');
318 318
         $rmPath = Util::which('rm');
319
-        $modulesDir          = $this->config->path('core.modulesDir');
319
+        $modulesDir = $this->config->path('core.modulesDir');
320 320
         $backupPath = "{$modulesDir}/Backup/{$this->moduleUniqueID}";
321 321
         Processes::mwExec("{$rmPath} -rf {$backupPath}");
322 322
         if ($keepSettings) {
@@ -329,21 +329,21 @@  discard block
 block discarded – undo
329 329
         // IMG
330 330
         $imgCacheDir = appPath('sites/admin-cabinet/assets/img/cache');
331 331
         $moduleImageCacheDir = "{$imgCacheDir}/{$this->moduleUniqueID}";
332
-        if (file_exists($moduleImageCacheDir)){
332
+        if (file_exists($moduleImageCacheDir)) {
333 333
             unlink($moduleImageCacheDir);
334 334
         }
335 335
 
336 336
         // CSS
337 337
         $cssCacheDir = appPath('sites/admin-cabinet/assets/css/cache');
338 338
         $moduleCSSCacheDir = "{$cssCacheDir}/{$this->moduleUniqueID}";
339
-        if (file_exists($moduleCSSCacheDir)){
339
+        if (file_exists($moduleCSSCacheDir)) {
340 340
             unlink($moduleCSSCacheDir);
341 341
         }
342 342
 
343 343
         // JS
344 344
         $jsCacheDir = appPath('sites/admin-cabinet/assets/js/cache');
345 345
         $moduleJSCacheDir = "{$jsCacheDir}/{$this->moduleUniqueID}";
346
-        if (file_exists($moduleJSCacheDir)){
346
+        if (file_exists($moduleJSCacheDir)) {
347 347
             unlink($moduleJSCacheDir);
348 348
         }
349 349
 
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
         }
378 378
 
379 379
         $module = PbxExtensionModules::findFirstByUniqid($this->moduleUniqueID);
380
-        if ( ! $module) {
380
+        if (!$module) {
381 381
             $module           = new PbxExtensionModules();
382 382
             $module->name     = $this->locString("Breadcrumb{$this->moduleUniqueID}");
383 383
             $module->disabled = '1';
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
         $language             = substr(PbxSettings::getValueByKey('WebAdminLanguage'), 0, 2);
404 404
         $translates           = [];
405 405
         $extensionsTranslates = [[]];
406
-        $results              = glob($this->moduleDir . '/{Messages}/en.php', GLOB_BRACE);
406
+        $results              = glob($this->moduleDir.'/{Messages}/en.php', GLOB_BRACE);
407 407
         foreach ($results as $path) {
408 408
             $langArr = require $path;
409 409
             if (is_array($langArr)) {
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
         }
416 416
         if ($language !== 'en') {
417 417
             $additionalTranslates = [[]];
418
-            $results              = glob($this->moduleDir . "/{Messages}/{$language}.php", GLOB_BRACE);
418
+            $results              = glob($this->moduleDir."/{Messages}/{$language}.php", GLOB_BRACE);
419 419
             foreach ($results as $path) {
420 420
                 $langArr = require $path;
421 421
                 if (is_array($langArr)) {
@@ -446,13 +446,13 @@  discard block
 block discarded – undo
446 446
         // Add new connection for this module after add new Models folder
447 447
         RegisterDIServices::recreateModulesDBConnections();
448 448
 
449
-        $results = glob($this->moduleDir . '/Models/*.php', GLOB_NOSORT);
449
+        $results = glob($this->moduleDir.'/Models/*.php', GLOB_NOSORT);
450 450
         $dbUpgrade = new UpdateDatabase();
451 451
         foreach ($results as $file) {
452 452
             $className        = pathinfo($file)['filename'];
453 453
             $moduleModelClass = "\\Modules\\{$this->moduleUniqueID}\\Models\\{$className}";
454 454
             $upgradeResult = $dbUpgrade->createUpdateDbTableByAnnotations($moduleModelClass);
455
-            if (!$upgradeResult){
455
+            if (!$upgradeResult) {
456 456
                 return false;
457 457
             }
458 458
 
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
             $menuSettings      = new PbxSettings();
479 479
             $menuSettings->key = $menuSettingsKey;
480 480
         }
481
-        $value               = [
481
+        $value = [
482 482
             'uniqid'        => $this->moduleUniqueID,
483 483
             'href'          => "/admin-cabinet/{$unCamelizedControllerName}",
484 484
             'group'         => 'modules',
Please login to merge, or discard this patch.
src/Common/Providers/ModulesDBConnectionsProvider.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -40,21 +40,21 @@  discard block
 block discarded – undo
40 40
         $config               = $di->getShared('config');
41 41
         $modulesDir           = $config->path('core.modulesDir');
42 42
 
43
-        $results = glob($modulesDir . '/*/module.json', GLOB_NOSORT);
43
+        $results = glob($modulesDir.'/*/module.json', GLOB_NOSORT);
44 44
 
45 45
         foreach ($results as $moduleJson) {
46
-            $jsonString            = file_get_contents($moduleJson);
47
-            if ($jsonString === false){
46
+            $jsonString = file_get_contents($moduleJson);
47
+            if ($jsonString === false) {
48 48
                 continue;
49 49
             }
50 50
             $jsonModuleDescription = json_decode($jsonString, true);
51
-            if ( ! is_array($jsonModuleDescription)
51
+            if (!is_array($jsonModuleDescription)
52 52
                 || !array_key_exists('moduleUniqueID', $jsonModuleDescription)) {
53 53
                 continue;
54 54
             }
55 55
 
56 56
             $moduleUniqueId = $jsonModuleDescription['moduleUniqueID'];
57
-            if ( ! isset($moduleUniqueId)) {
57
+            if (!isset($moduleUniqueId)) {
58 58
                 continue;
59 59
             }
60 60
 
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
74 74
                 }
75 75
 
76 76
                 if (
77
-                    ! class_exists($moduleModelClass)
77
+                    !class_exists($moduleModelClass)
78 78
                     || count(get_class_vars($moduleModelClass)) === 0) {
79 79
                     continue;
80 80
                 }
81 81
 
82 82
                 $model                 = new $moduleModelClass();
83 83
                 $connectionServiceName = $model->getReadConnectionService();
84
-                if ( ! isset($connectionServiceName)) {
84
+                if (!isset($connectionServiceName)) {
85 85
                     continue;
86 86
                 }
87 87
                 $registeredDBServices[] = $connectionServiceName;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
                 // Create and connect database
93 93
                 $dbDir = "{$config->path('core.modulesDir')}/{$moduleUniqueId}/db";
94
-                if (!file_exists($dbDir)){
94
+                if (!file_exists($dbDir)) {
95 95
                     Util::mwMkdir($dbDir, true);
96 96
                 }
97 97
                 $dbFileName = "{$dbDir}/module.db";
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 // Log
101 101
                 $logDir = "{$config->path('core.logsDir')}/$moduleUniqueId/db";
102 102
                 $logFileName = "{$logDir}/queries.log";
103
-                if (!is_dir($logDir)){
103
+                if (!is_dir($logDir)) {
104 104
                     Util::mwMkdir($logDir, true);
105 105
                     $touchPath = Util::which('touch');
106 106
                     Processes::mwExec("{$touchPath} {$logFileName}");
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 $this->registerDBService($connectionServiceName, $di, $params);
118 118
 
119 119
                 // if database was created, we have to apply rules
120
-                if (!$dbFileExistBeforeAttachToConnection){
120
+                if (!$dbFileExistBeforeAttachToConnection) {
121 121
                     Util::addRegularWWWRights($dbDir);
122 122
                 }
123 123
             }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         // Attach all created connections to one transaction manager
134 134
         $eventsManager->attach(
135 135
             'db',
136
-            function ($event) use ($registeredDBServices, $di) {
136
+            function($event) use ($registeredDBServices, $di) {
137 137
                 switch ($event->getType()) {
138 138
                     case 'beginTransaction':
139 139
                     {
Please login to merge, or discard this patch.
src/PBXCoreREST/Workers/WorkerApiCommands.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -143,11 +143,11 @@
 block discarded – undo
143 143
     {
144 144
         return [
145 145
             'system'  => [
146
-                 'enableModule',
147
-                 'disableModule',
148
-                 'uninstallModule',
149
-                 'installNewModule',
150
-                 'restoreDefaultSettings',
146
+                    'enableModule',
147
+                    'disableModule',
148
+                    'uninstallModule',
149
+                    'installNewModule',
150
+                    'restoreDefaultSettings',
151 151
             ],
152 152
         ];
153 153
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         while ($this->needRestart === false) {
57 57
             $beanstalk->wait();
58 58
         }
59
-        if ($this->needRestart){
59
+        if ($this->needRestart) {
60 60
             Processes::restartAllWorkers();
61 61
         }
62 62
     }
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
                 $res->messages[] = "Unknown processor - {$processor} in prepareAnswer";
103 103
             }
104 104
         } catch (Throwable $exception) {
105
-            $res->messages[] = 'Exception on WorkerApiCommands - ' . $exception->getMessage();
106
-            $request        = [];
105
+            $res->messages[] = 'Exception on WorkerApiCommands - '.$exception->getMessage();
106
+            $request = [];
107 107
         } finally {
108 108
             $message->reply(json_encode($res->getResult()));
109 109
             if ($res->success) {
Please login to merge, or discard this patch.
src/Core/Asterisk/Configs/AsteriskConf.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -21,27 +21,27 @@
 block discarded – undo
21 21
 
22 22
         $lang = $this->generalSettings['PBXLanguage'];
23 23
 
24
-        $conf = "[directories]\n" .
25
-            "astetcdir => {$this->config->path('asterisk.astetcdir')}\n" .
26
-            "astagidir => {$this->config->path('asterisk.astagidir')}\n" .
27
-            "astkeydir => /etc/asterisk\n" .
28
-            "astrundir => /var/asterisk/run\n" .
29
-            "astmoddir => {$this->config->path('asterisk.astmoddir')}\n" .
30
-            "astvarlibdir => {$this->config->path('asterisk.astvarlibdir')}\n" .
31
-            "astdbdir => {$this->config->path('asterisk.astdbdir')}\n" .
32
-            "astlogdir => {$this->config->path('asterisk.astlogdir')}\n" .
33
-            "astspooldir => {$this->config->path('asterisk.astspooldir')}\n" .
34
-            "\n" .
35
-            "\n" .
36
-            "[options]\n" .
37
-            "verbose = 0\n" .
38
-            "debug = 0\n" .
39
-            "dumpcore = no\n" .
40
-            "transcode_via_sln = no\n" .
41
-            "hideconnect = yes\n" .
42
-            "defaultlanguage = {$lang}\n" .
24
+        $conf = "[directories]\n".
25
+            "astetcdir => {$this->config->path('asterisk.astetcdir')}\n".
26
+            "astagidir => {$this->config->path('asterisk.astagidir')}\n".
27
+            "astkeydir => /etc/asterisk\n".
28
+            "astrundir => /var/asterisk/run\n".
29
+            "astmoddir => {$this->config->path('asterisk.astmoddir')}\n".
30
+            "astvarlibdir => {$this->config->path('asterisk.astvarlibdir')}\n".
31
+            "astdbdir => {$this->config->path('asterisk.astdbdir')}\n".
32
+            "astlogdir => {$this->config->path('asterisk.astlogdir')}\n".
33
+            "astspooldir => {$this->config->path('asterisk.astspooldir')}\n".
34
+            "\n".
35
+            "\n".
36
+            "[options]\n".
37
+            "verbose = 0\n".
38
+            "debug = 0\n".
39
+            "dumpcore = no\n".
40
+            "transcode_via_sln = no\n".
41
+            "hideconnect = yes\n".
42
+            "defaultlanguage = {$lang}\n".
43 43
             "systemname = mikopbx\n";
44 44
 
45
-        Util::fileWriteContent($this->config->path('asterisk.astetcdir') . '/asterisk.conf', $conf);
45
+        Util::fileWriteContent($this->config->path('asterisk.astetcdir').'/asterisk.conf', $conf);
46 46
     }
47 47
 }
48 48
\ No newline at end of file
Please login to merge, or discard this patch.
src/PBXCoreREST/Workers/WorkerLongPoolAPI.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             $this->setChannelsData();
48 48
             if (is_array($data) && isset($data['infos'])) {
49 49
                 foreach ($data['infos'] as $channel_data) {
50
-                    $url = 'http://localhost/pbxcore/api/long/pub?id=' . $channel_data['channel'];
50
+                    $url = 'http://localhost/pbxcore/api/long/pub?id='.$channel_data['channel'];
51 51
 
52 52
                     $data_for_send = $this->execFunction($channel_data['channel']);
53 53
                     if ($data_for_send) {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                         $this->postData($url, "$data_for_send\n");
56 56
                     }
57 57
 
58
-                    if ( ! isset($COMMON_CNANNELS[$channel_data['channel']])) {
58
+                    if (!isset($COMMON_CNANNELS[$channel_data['channel']])) {
59 59
                         continue;
60 60
                     }
61 61
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     private function execFunction($channel, $common_chan = null)
133 133
     {
134 134
         clearstatcache();
135
-        if ( ! $this->checkAction($channel, $common_chan)) {
135
+        if (!$this->checkAction($channel, $common_chan)) {
136 136
             return '';
137 137
         }
138 138
         $data_for_send = null;
@@ -163,18 +163,18 @@  discard block
 block discarded – undo
163 163
      */
164 164
     private function checkAction($channel, $common_chan = null)
165 165
     {
166
-        if ( ! $common_chan) {
166
+        if (!$common_chan) {
167 167
             $actions = $GLOBALS['ACTIONS'];
168 168
         } else {
169 169
             $actions = $GLOBALS['COMMON_CNANNELS'][$common_chan];
170 170
         }
171 171
 
172 172
         $enable = false;
173
-        if ( ! $actions) {
173
+        if (!$actions) {
174 174
             return $enable;
175 175
         }
176 176
         // $data = null;
177
-        $now  = time();
177
+        $now = time();
178 178
 
179 179
         $action_data = $actions[$channel] ?? null;
180 180
         if ($action_data !== null) {
Please login to merge, or discard this patch.
src/Core/Workers/WorkerAmiListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function callback($parameters): void
63 63
     {
64
-        if ($this->replyOnPingRequest($parameters)){
64
+        if ($this->replyOnPingRequest($parameters)) {
65 65
            return;
66 66
         }
67 67
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         }
101 101
 
102 102
         if ($message_is_sent === false) {
103
-            Util::sysLogMsg('CDR_AMI_Connector', "Error send data to queue. " . $error);
103
+            Util::sysLogMsg('CDR_AMI_Connector', "Error send data to queue. ".$error);
104 104
         }
105 105
         // Логируем оповещение.
106 106
         Util::logMsgDb('WorkerCallEvents::class', json_decode($result, true));
Please login to merge, or discard this patch.
src/Core/Workers/WorkerNotifyByEmail.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $tmpArray = [];
50 50
         foreach ($data as $call) {
51 51
             $keyHash = $call['email'].$call['start'].$call['from_number'].$call['to_number'];
52
-            if(in_array($keyHash, $tmpArray, true)){
52
+            if (in_array($keyHash, $tmpArray, true)) {
53 53
                 continue;
54 54
             }
55 55
             $tmpArray[] = $keyHash;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
              * 'language'
58 58
              * 'is_internal'
59 59
              */
60
-            if ( ! isset($emails[$call['email']])) {
60
+            if (!isset($emails[$call['email']])) {
61 61
                 $emails[$call['email']] = '';
62 62
             }
63 63
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
 // Start worker process
109 109
 $workerClassname = WorkerNotifyByEmail::class;
110
-$action = $argv[1]??'';
110
+$action = $argv[1] ?? '';
111 111
 if ($action === 'start') {
112 112
     cli_set_process_title($workerClassname);
113 113
     while (true) {
Please login to merge, or discard this patch.