@@ -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) { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | { |
77 | 77 | $entity = static::getEntitiesInfo(); |
78 | 78 | if ($sort) { |
79 | - usort($entity, function ($a, $b) { |
|
79 | + usort($entity, function($a, $b) { |
|
80 | 80 | return $a['sequence'] < $b['sequence'] ? -1 : 1; |
81 | 81 | }); |
82 | 82 | } |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | Log::error("The file $filename does not exist"); |
285 | 285 | } |
286 | 286 | static::initFromDb(); |
287 | - register_shutdown_function(function () { |
|
287 | + register_shutdown_function(function() { |
|
288 | 288 | try { |
289 | 289 | YetiForce\Shop::generateCache(); |
290 | 290 | } 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) { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | } |
51 | 51 | if ($this->relations_email && '-' !== $this->relations_email) { |
52 | - [$relatedModule,$relatedFieldName,$onlyFirst] = array_pad(explode('::', $this->relations_email), 3, false); |
|
52 | + [$relatedModule, $relatedFieldName, $onlyFirst] = array_pad(explode('::', $this->relations_email), 3, false); |
|
53 | 53 | $relationListView = Vtiger_RelationListView_Model::getInstance($recordModel, $relatedModule); |
54 | 54 | $relationListView->setFields(['id', $relatedFieldName]); |
55 | 55 | $relationListView->set('search_key', $relatedFieldName); |
@@ -86,7 +86,7 @@ |
||
86 | 86 | 'TABLOID' => [11.00, 17.00], // = ( 279 x 432 ) mm = ( 11.00 x 17.00 ) in |
87 | 87 | 'EXECUTIVE' => [7.25, 10.50], // = ( 184 x 267 ) mm = ( 7.25 x 10.50 ) in |
88 | 88 | 'FOLIO' => [8.50, 13.00], // = ( 216 x 330 ) mm = ( 8.50 x 13.00 ) in |
89 | - 'B' => [5.04, 7.80], // = ( 128 x 198 ) mm = ( 5.04 x 7.80 ) in |
|
89 | + 'B' => [5.04, 7.80], // = ( 128 x 198 ) mm = ( 5.04 x 7.80 ) in |
|
90 | 90 | 'A' => [4.37, 7.00], // = ( 111 x 178 ) mm = ( 4.37 x 7.00 ) in |
91 | 91 | 'DEMY' => [8.50, 5.31], // = ( 135 x 216 ) mm = ( 8.50 x 5.31 ) in |
92 | 92 | 'ROYAL' => [6.02, 9.21], // = ( 153 x 234 ) mm = ( 6.02 x 9.21 ) in |
@@ -24,12 +24,12 @@ |
||
24 | 24 | public static $allFields = [ |
25 | 25 | 'module_name', 'status', 'generator', 'primary_name', 'secondary_name', 'meta_author', 'meta_keywords', 'metatags_status', 'meta_subject', 'meta_title', |
26 | 26 | 'page_format', 'margin_chkbox', 'margin_top', 'margin_bottom', 'margin_left', 'margin_right', 'header_height', 'footer_height', 'page_orientation', |
27 | - 'language', 'filename', 'visibility', 'default', 'header_content', 'body_content', 'footer_content', 'conditions', |
|
28 | - 'watermark_type', 'watermark_text', 'watermark_angle', 'template_members', 'watermark_image', 'one_pdf', 'type', 'styles', |
|
27 | + 'language', 'filename', 'visibility', 'default', 'header_content', 'body_content', 'footer_content', 'conditions', |
|
28 | + 'watermark_type', 'watermark_text', 'watermark_angle', 'template_members', 'watermark_image', 'one_pdf', 'type', 'styles', |
|
29 | 29 | ]; |
30 | 30 | |
31 | 31 | public static $step1Fields = ['status', 'generator', 'primary_name', 'secondary_name', 'module_name', 'metatags_status', 'meta_subject', 'meta_title', 'meta_author', 'meta_keywords', 'page_format', 'margin_chkbox', 'margin_top', 'margin_bottom', 'margin_left', 'margin_right', 'header_height', 'footer_height', 'page_orientation', 'language', 'filename', 'visibility', 'default', 'one_pdf', 'template_members', 'watermark_type', 'watermark_text', 'watermark_image', 'watermark_angle']; |
32 | - public static $step2Fields = ['module_name', 'header_content', 'module_name', 'body_content', 'footer_content', 'styles']; |
|
32 | + public static $step2Fields = ['module_name', 'header_content', 'module_name', 'body_content', 'footer_content', 'styles']; |
|
33 | 33 | public static $step3Fields = ['conditions']; |
34 | 34 | public static $module = 'PDF'; |
35 | 35 | public static $parent = 'Settings'; |