@@ -78,7 +78,7 @@ |
||
78 | 78 | } |
79 | 79 | if (!empty($this->searchValue)) { |
80 | 80 | $this->searchValue = strtolower($this->searchValue); |
81 | - $accessibleGroups = array_filter($accessibleGroups, function ($name) { |
|
81 | + $accessibleGroups = array_filter($accessibleGroups, function($name) { |
|
82 | 82 | return strstr(strtolower($name), $this->searchValue); |
83 | 83 | }); |
84 | 84 | } |
@@ -253,7 +253,7 @@ |
||
253 | 253 | */ |
254 | 254 | public function getGroupNames() |
255 | 255 | { |
256 | - return array_filter(\App\Fields\Owner::getInstance('CustomView')->getGroups(false), function ($key) { |
|
256 | + return array_filter(\App\Fields\Owner::getInstance('CustomView')->getGroups(false), function($key) { |
|
257 | 257 | return \in_array($key, $this->getGroups()); |
258 | 258 | }, ARRAY_FILTER_USE_KEY); |
259 | 259 | } |
@@ -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(); |
@@ -134,7 +134,7 @@ |
||
134 | 134 | $columnNames = self::getColumnNames(); |
135 | 135 | unset($columnNames[array_search('id', $columnNames)]); |
136 | 136 | $editFields = array_keys(self::$formFields); |
137 | - usort($columnNames, function ($a, $b) use ($editFields) { |
|
137 | + usort($columnNames, function($a, $b) use ($editFields) { |
|
138 | 138 | return array_search($a, $editFields) < array_search($b, $editFields) ? -1 : 1; |
139 | 139 | }); |
140 | 140 | return $columnNames; |
@@ -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 | ], |
@@ -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]); |