@@ -186,7 +186,7 @@ |
||
| 186 | 186 | return ''; |
| 187 | 187 | } |
| 188 | 188 | $teaser = $css = $btn = ''; |
| 189 | - $btnTemplate = function (string $popoverText = '', ?string $btnClass = ''): string { |
|
| 189 | + $btnTemplate = function(string $popoverText = '', ?string $btnClass = ''): string { |
|
| 190 | 190 | $popoverText = \App\Language::translate($popoverText); |
| 191 | 191 | return "<a href=\"#\" class=\"js-more noLinkBtn font-weight-lighter js-popover-tooltip {$btnClass}\" data-iframe=\"true\" data-content=\"{$popoverText}\"><span class=\"mdi mdi-overscan\"></span></a>"; |
| 192 | 192 | }; |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $viewer->assign('WID', ''); |
| 61 | 61 | $viewer->assign('WIDGETINFO', [ |
| 62 | 62 | 'data' => [ |
| 63 | - 'limit' => 5, 'relatedmodule' => '', 'columns' => '', |
|
| 63 | + 'limit' => 5, 'relatedmodule' => '', 'columns' => '', |
|
| 64 | 64 | 'action' => '', 'switchHeader' => '', 'filter' => '', |
| 65 | 65 | 'checkbox' => '', 'customView' => '[]', |
| 66 | 66 | ], |
@@ -336,13 +336,13 @@ discard block |
||
| 336 | 336 | 'spaceBackup' => ['container' => 'env', 'type' => 'Space', 'testCli' => false, 'label' => 'SPACE_BACKUP'], |
| 337 | 337 | 'lastCronStart' => ['container' => 'env', 'testCli' => false, 'label' => 'LAST_CRON_START', 'isHtml' => true], |
| 338 | 338 | 'crmProvider' => ['container' => 'env', 'testCli' => true, 'label' => 'CRM_PROVIDER'], |
| 339 | - 'open_basedir' => ['container' => 'php', 'type' => 'OpenBasedir', 'testCli' => true, 'mode' => 'showWarnings'], |
|
| 339 | + 'open_basedir' => ['container' => 'php', 'type' => 'OpenBasedir', 'testCli' => true, 'mode' => 'showWarnings'], |
|
| 340 | 340 | 'caCertBundle' => ['recommended' => 'On', 'container' => 'env', 'type' => 'OnOff', 'testCli' => true, 'label' => 'CACERTBUNDLE'], |
| 341 | 341 | 'caCertBundlePath' => ['recommended' => 'On', 'container' => 'env', 'testCli' => true, 'label' => 'CACERTBUNDLE_PATH'], |
| 342 | 342 | 'SSL_CERT_FILE' => ['container' => 'env', 'testCli' => true, 'label' => 'SSL_CERT_FILE'], |
| 343 | 343 | 'SSL_CERT_DIR' => ['container' => 'env', 'testCli' => true, 'label' => 'SSL_CERT_DIR'], |
| 344 | - 'openssl.cafile' => ['container' => 'php', 'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings'], |
|
| 345 | - 'openssl.capath' => ['container' => 'php', 'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings'], |
|
| 344 | + 'openssl.cafile' => ['container' => 'php', 'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings'], |
|
| 345 | + 'openssl.capath' => ['container' => 'php', 'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings'], |
|
| 346 | 346 | ]; |
| 347 | 347 | |
| 348 | 348 | /** |
@@ -426,8 +426,8 @@ discard block |
||
| 426 | 426 | * @var array |
| 427 | 427 | */ |
| 428 | 428 | public static $functionalVerification = [ |
| 429 | - 'branding' => ['type' => 'Branding', 'testCli' => false, 'label' => 'FOOTER', 'mode' => 'onlyText'], |
|
| 430 | - 'shop' => ['type' => 'ShopProducts', 'testCli' => false, 'label' => 'PREMIUM_MODULES', 'mode' => 'onlyText'], |
|
| 429 | + 'branding' => ['type' => 'Branding', 'testCli' => false, 'label' => 'FOOTER', 'mode' => 'onlyText'], |
|
| 430 | + 'shop' => ['type' => 'ShopProducts', 'testCli' => false, 'label' => 'PREMIUM_MODULES', 'mode' => 'onlyText'], |
|
| 431 | 431 | ]; |
| 432 | 432 | /** |
| 433 | 433 | * Php variables. |
@@ -195,7 +195,7 @@ |
||
| 195 | 195 | stream_context_set_option($this->streamContext, ['http' => ['header' => 'sid: ' . $this->sessionId]]); |
| 196 | 196 | $this->__setSoapHeaders(); |
| 197 | 197 | $this->__setSoapHeaders($header); |
| 198 | - $result = $this->DaneSzukajPodmioty(['pParametryWyszukiwania' => ['Nip' => $vatId, 'Krs' => $ncr, 'Regon' => $taxNumber]]); |
|
| 198 | + $result = $this->DaneSzukajPodmioty(['pParametryWyszukiwania' => ['Nip' => $vatId, 'Krs' => $ncr, 'Regon' => $taxNumber]]); |
|
| 199 | 199 | $response = $this->parseResponse($result->DaneSzukajPodmiotyResult); |
| 200 | 200 | foreach ($response as &$info) { |
| 201 | 201 | $this->getAdvanceData($info); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | 'DASHBOARD_CALENDAR_WIDGET_FILTER_TYPE' => [ |
| 34 | 34 | 'default' => 'list', |
| 35 | 35 | 'description' => 'Shows the switch button or filter list in the calendar widget: switch - Switch "To realize" and "History", list - filter list', |
| 36 | - 'validation' => function () { |
|
| 36 | + 'validation' => function() { |
|
| 37 | 37 | $arg = func_get_arg(0); |
| 38 | 38 | return 'list' === $arg || 'switch' === $arg; |
| 39 | 39 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | 'SHOW_QUICK_CREATE_BY_STATUS' => [ |
| 42 | 42 | 'default' => [], |
| 43 | 43 | 'description' => 'Show the Calendar quick create window after changing the status: array - PLL_COMPLETED, PLL_CANCELLED', |
| 44 | - 'validation' => function () { |
|
| 44 | + 'validation' => function() { |
|
| 45 | 45 | $arg = func_get_arg(0); |
| 46 | 46 | return \is_array($arg) && empty(array_diff($arg, ['PLL_COMPLETED', 'PLL_CANCELLED'])); |
| 47 | 47 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | 'HIDDEN_DAYS_IN_CALENDAR_VIEW' => [ |
| 68 | 68 | 'default' => [0, 6], |
| 69 | 69 | 'description' => 'Exclude certain days-of-the-week from being displayed. The value is an array of day-of-week indices to hide. Each index is zero-base (Sunday=0) and ranges from 0-6. By default, no days are hidden', |
| 70 | - 'validation' => function () { |
|
| 70 | + 'validation' => function() { |
|
| 71 | 71 | $arg = func_get_arg(0); |
| 72 | 72 | return 'Extended' === $arg || 'Standard' === $arg; |
| 73 | 73 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | 'default' => 5000, |
| 95 | 95 | 'description' => 'Max number of records to update status in cron', |
| 96 | 96 | 'validation' => '\App\Validator::naturalNumber', |
| 97 | - 'sanitization' => function () { |
|
| 97 | + 'sanitization' => function() { |
|
| 98 | 98 | return (int) func_get_arg(0); |
| 99 | 99 | } |
| 100 | 100 | ], |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | 'CALENDAR_VIEW' => [ |
| 108 | 108 | 'default' => 'Extended', |
| 109 | 109 | 'description' => 'Calendar view - allowed values: Extended, Standard, refresh menu files after you change this value', |
| 110 | - 'validation' => function () { |
|
| 110 | + 'validation' => function() { |
|
| 111 | 111 | $arg = func_get_arg(0); |
| 112 | 112 | return 'Extended' === $arg || 'Standard' === $arg; |
| 113 | 113 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $mailerContent['to'][] = $this->address_emails; |
| 47 | 47 | } |
| 48 | 48 | if ($this->relations_email && '-' !== $this->relations_email) { |
| 49 | - [$relatedModule,$relatedFieldName,$onlyFirst] = array_pad(explode('::', $this->relations_email), 3, false); |
|
| 49 | + [$relatedModule, $relatedFieldName, $onlyFirst] = array_pad(explode('::', $this->relations_email), 3, false); |
|
| 50 | 50 | $relationListView = Vtiger_RelationListView_Model::getInstance($recordModel, $relatedModule); |
| 51 | 51 | $relationListView->setFields(['id', $relatedFieldName]); |
| 52 | 52 | $relationListView->set('search_key', $relatedFieldName); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function testGetPicklistValue() |
| 48 | 48 | { |
| 49 | - \App\Db::getInstance()->createCommand()->insert('vtiger_activitytype', ['activitytype' => 'UnitTestCalendar', 'presence' => 1, 'sortorderid' => 99, 'color' => 'A0B584'])->execute(); |
|
| 49 | + \App\Db::getInstance()->createCommand()->insert('vtiger_activitytype', ['activitytype' => 'UnitTestCalendar', 'presence' => 1, 'sortorderid' => 99, 'color' => 'A0B584'])->execute(); |
|
| 50 | 50 | \App\Cache::clear(); |
| 51 | 51 | $this->assertGreaterThan(0, (\count(\Settings_Calendar_Module_Model::getPicklistValue())), 'Calendar activity type picklist is empty'); |
| 52 | 52 | } |
@@ -163,13 +163,13 @@ |
||
| 163 | 163 | $value = \App\Language::translate($moduleName, $moduleName); |
| 164 | 164 | break; |
| 165 | 165 | case 'views': |
| 166 | - $value = implode(', ', array_map(function ($val) { |
|
| 166 | + $value = implode(', ', array_map(function($val) { |
|
| 167 | 167 | return \App\Language::translate(\App\FieldsDependency::VIEWS[$val], 'Settings:FieldsDependency'); |
| 168 | 168 | }, \App\Json::decode($value) ?? [])); |
| 169 | 169 | break; |
| 170 | 170 | case 'fields': |
| 171 | 171 | $moduleModel = Vtiger_Module_Model::getInstance($this->get('tabid')); |
| 172 | - $value = implode(', ', array_map(function ($fieldName) use ($moduleModel) { |
|
| 172 | + $value = implode(', ', array_map(function($fieldName) use ($moduleModel) { |
|
| 173 | 173 | return $moduleModel->getField($fieldName)->getFullLabelTranslation(); |
| 174 | 174 | }, \App\Json::decode($value) ?? [])); |
| 175 | 175 | $value = "<div class=\"js-popover-tooltip ml-2 mr-2 d-inline mt-2\" data-js=\"popover\" data-content=\"$value\">" . \App\TextParser::textTruncate($value) . '</div>'; |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | $block = $fieldModel->get('block'); |
| 236 | 236 | if (!isset($blocks[$block->id])) { |
| 237 | 237 | $blockProperties = get_object_vars($block); |
| 238 | - $blocks[$block->id] = array_filter($blockProperties, function ($v) { |
|
| 238 | + $blocks[$block->id] = array_filter($blockProperties, function($v) { |
|
| 239 | 239 | return !\is_object($v); |
| 240 | 240 | }); |
| 241 | 241 | $blocks[$block->id]['name'] = \App\Language::translate($block->label, $moduleName); |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | $fieldInfo['blockId'] = $block->id; |
| 251 | 251 | $fieldInfo['helpInfo'] = \App\Language::getTranslateHelpInfo($fieldModel, 'all'); |
| 252 | 252 | $fieldInfo['dbStructure'] = $fieldModel->getDBColumnType(false); |
| 253 | - $fieldInfo['queryOperators'] = array_map(function ($value) use ($moduleName) { |
|
| 253 | + $fieldInfo['queryOperators'] = array_map(function($value) use ($moduleName) { |
|
| 254 | 254 | return \App\Language::translate($value, $moduleName); |
| 255 | 255 | }, $fieldModel->getQueryOperators()); |
| 256 | 256 | if (isset($fieldInfo['picklistvalues']) && $fieldModel->isEmptyPicklistOptionAllowed()) { |