@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | 'SHOW_RELATION_IN_MODAL' => [ |
| 17 | 17 | 'default' => ['relationField' => 'parent_id', 'module' => 'Accounts', 'relatedModule' => ['FInvoice', 'ModComments', 'Calendar', 'Documents']], |
| 18 | 18 | 'description' => 'Show relations in the modal', |
| 19 | - 'validation' => function () { |
|
| 19 | + 'validation' => function() { |
|
| 20 | 20 | return false; |
| 21 | 21 | } |
| 22 | 22 | ], |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | 'SHOW_HIERARCHY_IN_MODAL' => [ |
| 29 | 29 | 'default' => [], |
| 30 | 30 | 'description' => 'false, [] - inherit fields, [ label => column name, .. ]', |
| 31 | - 'validation' => function () { |
|
| 31 | + 'validation' => function() { |
|
| 32 | 32 | $args = func_get_arg(0); |
| 33 | 33 | $moduleModel = Vtiger_Module_Model::getInstance('Assets'); |
| 34 | 34 | $fields = $moduleModel->getFields(); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | 'default' => 50, |
| 15 | 15 | 'description' => 'Max depth of hierarchy', |
| 16 | 16 | 'validation' => '\App\Validator::naturalNumber', |
| 17 | - 'sanitization' => function () { |
|
| 17 | + 'sanitization' => function() { |
|
| 18 | 18 | return (int) func_get_arg(0); |
| 19 | 19 | } |
| 20 | 20 | ], |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | $columnNames = self::getColumnNames(); |
| 136 | 136 | unset($columnNames[array_search('id', $columnNames)]); |
| 137 | 137 | $editFields = array_keys(self::$formFields); |
| 138 | - usort($columnNames, function ($a, $b) use ($editFields) { |
|
| 138 | + usort($columnNames, function($a, $b) use ($editFields) { |
|
| 139 | 139 | return array_search($a, $editFields) < array_search($b, $editFields) ? -1 : 1; |
| 140 | 140 | }); |
| 141 | 141 | |
@@ -24,10 +24,10 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public $listFields = [ |
| 26 | 26 | 'name' => 'LBL_NAME', |
| 27 | - 'email' => 'LBL_EMAIL', |
|
| 28 | - 'vat_id' => 'LBL_VAT_ID', |
|
| 29 | - 'country' => 'LBL_COUNTRY', |
|
| 30 | - 'industry' => 'LBL_INDUSTRY', |
|
| 27 | + 'email' => 'LBL_EMAIL', |
|
| 28 | + 'vat_id' => 'LBL_VAT_ID', |
|
| 29 | + 'country' => 'LBL_COUNTRY', |
|
| 30 | + 'industry' => 'LBL_INDUSTRY', |
|
| 31 | 31 | 'website' => 'LBL_WEBSITE', |
| 32 | 32 | ]; |
| 33 | 33 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public static array $formFields = [ |
| 40 | 40 | 'name' => [], |
| 41 | - 'email' => [], |
|
| 41 | + 'email' => [], |
|
| 42 | 42 | 'vat_id' => [ |
| 43 | 43 | 'infoText' => 'LBL_VAT_ID_INFO', |
| 44 | 44 | ], |
@@ -328,7 +328,7 @@ |
||
| 328 | 328 | if (false === $returnedValue) { |
| 329 | 329 | \App\Log::warning( |
| 330 | 330 | "There is no rule defined for this case recordId: {$recordId} module: {$this->sourceModuleName}. Statuses:" . |
| 331 | - implode(',', array_map(function ($item) { |
|
| 331 | + implode(',', array_map(function($item) { |
|
| 332 | 332 | return $item['status']; |
| 333 | 333 | }, $itmes)) |
| 334 | 334 | ); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | $timings = []; |
| 37 | 37 | $stack = []; |
| 38 | 38 | foreach ($this->messages as $i => $log) { |
| 39 | - [$token, $level, , $timestamp] = $log; |
|
| 39 | + [$token, $level,, $timestamp] = $log; |
|
| 40 | 40 | $log[5] = $i; |
| 41 | 41 | if (Logger::LEVEL_PROFILE_BEGIN == $level) { |
| 42 | 42 | $stack[] = $log; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public $table_index = 'id'; |
| 29 | 29 | //fix for Custom Field for FAQ |
| 30 | 30 | public $tab_name = ['vtiger_crmentity', 'vtiger_faq', 'vtiger_faqcf']; |
| 31 | - public $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_faq' => 'id', 'vtiger_faqcf' => 'faqid']; |
|
| 31 | + public $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_faq' => 'id', 'vtiger_faqcf' => 'faqid']; |
|
| 32 | 32 | public $customFieldTable = ['vtiger_faqcf', 'faqid']; |
| 33 | 33 | public $entity_table = 'vtiger_crmentity'; |
| 34 | 34 | public $column_fields = []; |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | return []; |
| 229 | 229 | } |
| 230 | 230 | $queryGenerator = new \App\QueryGenerator('ModComments'); |
| 231 | - $queryGenerator->setFields(['modifiedtime', 'id', 'assigned_user_id', 'commentcontent']); |
|
| 231 | + $queryGenerator->setFields(['modifiedtime', 'id', 'assigned_user_id', 'commentcontent']); |
|
| 232 | 232 | $queryGenerator->setSourceRecord($recordId); |
| 233 | 233 | $queryGenerator->addNativeCondition(['related_to' => $recordId]); |
| 234 | 234 | $query = $queryGenerator->createQuery()->orderBy(['id' => SORT_DESC]); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | 'DEFAULT_VIEW_RECORD' => [ |
| 10 | 10 | 'default' => 'LBL_RECORD_PREVIEW', |
| 11 | 11 | 'description' => 'Default view for record detail view. Values: LBL_RECORD_DETAILS or LBL_RECORD_SUMMARY', |
| 12 | - 'validation' => function () { |
|
| 12 | + 'validation' => function() { |
|
| 13 | 13 | $arg = func_get_arg(0); |
| 14 | 14 | return \in_array($arg, ['LBL_RECORD_PREVIEW', 'LBL_RECORD_SUMMARY', 'LBL_RECORD_DETAILS']); |
| 15 | 15 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | 'defaultViewName' => [ |
| 18 | 18 | 'default' => 'KnowledgeBase', |
| 19 | 19 | 'description' => 'Default module view. Values: KnowledgeBase, List, ListPreview or DashBoard, refresh menu files after you change this value', |
| 20 | - 'validation' => function () { |
|
| 20 | + 'validation' => function() { |
|
| 21 | 21 | $arg = func_get_arg(0); |
| 22 | 22 | return 'List' === $arg || 'ListPreview' === $arg || 'DashBoard' === $arg || 'KnowledgeBase' === $arg; |
| 23 | 23 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | 'knowledgeBaseArticleLimit' => [ |
| 59 | 59 | 'default' => 50, |
| 60 | 60 | 'description' => 'Article limit in the knowledge base window', |
| 61 | - 'validation' => function () { |
|
| 61 | + 'validation' => function() { |
|
| 62 | 62 | $arg = func_get_arg(0); |
| 63 | 63 | return $arg && \App\Validator::naturalNumber($arg); |
| 64 | 64 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | 'knowledgeBaseArticleLimit' => [ |
| 10 | 10 | 'default' => 50, |
| 11 | 11 | 'description' => 'Article limit in the knowledge base window', |
| 12 | - 'validation' => function () { |
|
| 12 | + 'validation' => function() { |
|
| 13 | 13 | $arg = func_get_arg(0); |
| 14 | 14 | return $arg && \App\Validator::naturalNumber($arg); |
| 15 | 15 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | 'defaultViewName' => [ |
| 18 | 18 | 'default' => 'KnowledgeBase', |
| 19 | 19 | 'description' => 'Default module view. Values: KnowledgeBase, List, ListPreview or DashBoard, refresh menu files after you change this value', |
| 20 | - 'validation' => function () { |
|
| 20 | + 'validation' => function() { |
|
| 21 | 21 | $arg = func_get_arg(0); |
| 22 | 22 | return 'List' === $arg || 'ListPreview' === $arg || 'DashBoard' === $arg || 'KnowledgeBase' === $arg; |
| 23 | 23 | } |