@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | public static function setRecordToCron($moduleName, $destModule, $recordId, $type = 1) |
136 | 136 | { |
137 | 137 | $data = ['source_module' => $moduleName, 'dest_module' => $destModule, 'lastid' => $recordId, 'type' => $type]; |
138 | - if(!(new \App\Db\Query())->from('s_#__multireference')->where($data)->exists()){ |
|
138 | + if (!(new \App\Db\Query())->from('s_#__multireference')->where($data)->exists()) { |
|
139 | 139 | \App\Db::getInstance()->createCommand()->insert('s_#__multireference', $data)->execute(); |
140 | 140 | } |
141 | 141 | } |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | $tabIds = (new \App\Db\Query()) |
227 | 227 | ->select(['fieldid', 'tabid']) |
228 | 228 | ->from('vtiger_field') |
229 | - ->where(['and', ['<>', 'presence', 1], ['uitype' => $fieldModel->getUIType()], ['and', ['like', 'fieldparams', '"field":"' . $fieldModel->getId() . '"']] |
|
229 | + ->where(['and', ['<>', 'presence', 1], ['uitype' => $fieldModel->getUIType()], ['and', ['like', 'fieldparams', '"field":"' . $fieldModel->getId() . '"']] |
|
230 | 230 | ])->createCommand()->queryAllByGroup(); |
231 | 231 | foreach ($tabIds as $fieldId => $tabId) { |
232 | 232 | $sourceModule = \App\Module::getModuleName($tabId); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $userFocus->id = $userid; |
49 | 49 | foreach ($userFocus->column_fields as $field => $value) { |
50 | 50 | if (isset($userFocus->{$field})) { |
51 | - if ('currency_symbol' === $field || $field === 'imagename'|| $field === 'othereventduration') { |
|
51 | + if ('currency_symbol' === $field || $field === 'imagename' || $field === 'othereventduration') { |
|
52 | 52 | $userInfo[$field] = $userFocus->{$field}; |
53 | 53 | } else { |
54 | 54 | $userInfo[$field] = is_numeric($userFocus->{$field}) ? $userFocus->{$field} : \App\Purifier::encodeHtml($userFocus->{$field}); |
@@ -191,7 +191,7 @@ |
||
191 | 191 | if (static::$clearOpcache) { |
192 | 192 | return false; |
193 | 193 | } |
194 | - register_shutdown_function(function () { |
|
194 | + register_shutdown_function(function() { |
|
195 | 195 | try { |
196 | 196 | static::resetOpcache(); |
197 | 197 | } catch (\Throwable $e) { |
@@ -193,7 +193,7 @@ |
||
193 | 193 | 'time' => (int) ($readOperations / (microtime(true) - $timeStart)), |
194 | 194 | ]; |
195 | 195 | } |
196 | - register_shutdown_function(function () { |
|
196 | + register_shutdown_function(function() { |
|
197 | 197 | try { |
198 | 198 | \vtlib\Functions::recurseDelete('cache/speed'); |
199 | 199 | } catch (\Throwable $e) { |
@@ -178,7 +178,7 @@ |
||
178 | 178 | ->execute(); |
179 | 179 | } |
180 | 180 | \App\Log::trace('Exit OSSMail_Record_Model::imapConnect() method ...'); |
181 | - register_shutdown_function(function () use ($mbox, $user) { |
|
181 | + register_shutdown_function(function() use ($mbox, $user) { |
|
182 | 182 | try { |
183 | 183 | \App\Log::beginProfile('OSSMail_Record_Model|imap_close|' . $user, 'Mail|IMAP'); |
184 | 184 | imap_close($mbox); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | class OSSMail_Mail_Model extends \App\Base |
17 | 17 | { |
18 | 18 | /** @var string[] Ignored mail addresses */ |
19 | - public const IGNORED_MAILS = ['@', 'undisclosed-recipients', 'Undisclosed-recipients', 'undisclosed-recipients@', 'Undisclosed-recipients@', 'Undisclosed recipients@,@', 'undisclosed recipients@,@']; |
|
19 | + public const IGNORED_MAILS = ['@', 'undisclosed-recipients', 'Undisclosed-recipients', 'undisclosed-recipients@', 'Undisclosed-recipients@', 'Undisclosed recipients@,@', 'undisclosed recipients@,@']; |
|
20 | 20 | |
21 | 21 | /** @var array Mail account. */ |
22 | 22 | protected $mailAccount = []; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | public $customFieldTable = ['s_#__auto_assign_users' => 'id', 's_#__auto_assign_groups' => 'id', 's_#__auto_assign_roles' => 'id']; |
19 | 19 | |
20 | 20 | /** {@inheritdoc} */ |
21 | - public $listFields = ['subject' => 'FL_SUBJECT', 'tabid' => 'FL_MODULE', 'state' => 'FL_STATE']; |
|
21 | + public $listFields = ['subject' => 'FL_SUBJECT', 'tabid' => 'FL_MODULE', 'state' => 'FL_STATE']; |
|
22 | 22 | |
23 | 23 | /** {@inheritdoc} */ |
24 | 24 | public $name = 'AutomaticAssignment'; |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | $this->importCustomLinks($this->_modulexml, $moduleInstance); |
657 | 657 | $this->importCronTasks($this->_modulexml); |
658 | 658 | Module::fireEvent($moduleInstance->name, Module::EVENT_MODULE_POSTINSTALL); |
659 | - register_shutdown_function(function () { |
|
659 | + register_shutdown_function(function() { |
|
660 | 660 | try { |
661 | 661 | chdir(ROOT_DIRECTORY); |
662 | 662 | (new \App\BatchMethod(['method' => '\App\UserPrivilegesFile::recalculateAll', 'params' => []]))->save(); |
@@ -1154,7 +1154,7 @@ discard block |
||
1154 | 1154 | $db->createCommand()->update('vtiger_version', ['current_version' => (string) $this->_modulexml->to_version])->execute(); |
1155 | 1155 | } |
1156 | 1156 | Functions::recurseDelete($dirName); |
1157 | - register_shutdown_function(function () { |
|
1157 | + register_shutdown_function(function() { |
|
1158 | 1158 | try { |
1159 | 1159 | Functions::recurseDelete('cache/templates_c'); |
1160 | 1160 | } catch (\Exception $e) { |
@@ -62,7 +62,7 @@ |
||
62 | 62 | ->setOrder('registration_date', \App\Db::DESC) |
63 | 63 | ->createQuery()->createCommand()->queryAllByGroup(2); |
64 | 64 | |
65 | - $approves = array_keys(array_filter($approvalAll, function ($item) { |
|
65 | + $approves = array_keys(array_filter($approvalAll, function($item) { |
|
66 | 66 | return 'PLL_ACCEPTANCE' === $item[0]; |
67 | 67 | })); |
68 | 68 |