@@ -339,7 +339,7 @@ |
||
| 339 | 339 | $actions = $account['actions']; |
| 340 | 340 | } |
| 341 | 341 | if (!\in_array('CreatedEmail', $actions)) { |
| 342 | - array_unshift($actions, 'CreatedEmail', ); |
|
| 342 | + array_unshift($actions, 'CreatedEmail',); |
|
| 343 | 343 | } |
| 344 | 344 | $params['actions'] = $actions; |
| 345 | 345 | } |
@@ -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 | }, |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | 'CALENDAR_VIEW' => [ |
| 106 | 106 | 'default' => 'Extended', |
| 107 | 107 | 'description' => 'Calendar view - allowed values: Extended, Standard, refresh menu files after you change this value', |
| 108 | - 'validation' => function () { |
|
| 108 | + 'validation' => function() { |
|
| 109 | 109 | $arg = func_get_arg(0); |
| 110 | 110 | return 'Extended' === $arg || 'Standard' === $arg; |
| 111 | 111 | }, |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | $this->api->app = []; |
| 23 | 23 | $type = $this->api->request->getByType('_container', \App\Purifier::STANDARD); |
| 24 | - $query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type, 'status' => 1]); |
|
| 24 | + $query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type, 'status' => 1]); |
|
| 25 | 25 | if ($row = $query->one()) { |
| 26 | 26 | $row['id'] = (int) $row['id']; |
| 27 | 27 | $this->api->app = $row; |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | public function setFields(array $fields) |
| 206 | 206 | { |
| 207 | 207 | $this->fields = []; |
| 208 | - foreach($fields as $fieldName){ |
|
| 208 | + foreach ($fields as $fieldName) { |
|
| 209 | 209 | $this->setField($fieldName); |
| 210 | 210 | } |
| 211 | 211 | |
@@ -1451,7 +1451,7 @@ discard block |
||
| 1451 | 1451 | $searchParamsConditions['condition'] = $glueOrder[$key]; |
| 1452 | 1452 | $searchParamsConditions['rules'] = []; |
| 1453 | 1453 | foreach ($conditions as $condition) { |
| 1454 | - [$fieldName, , $sourceFieldName] = array_pad(explode(':', $condition[0]), 3, false); |
|
| 1454 | + [$fieldName,, $sourceFieldName] = array_pad(explode(':', $condition[0]), 3, false); |
|
| 1455 | 1455 | if (!$sourceFieldName) { |
| 1456 | 1456 | $condition[0] = "{$fieldName}:{$this->getModule()}"; |
| 1457 | 1457 | } |
@@ -688,9 +688,9 @@ |
||
| 688 | 688 | $relatedListFields[$fieldName] = $fieldModel; |
| 689 | 689 | } elseif (isset($relFields[$fieldName])) { |
| 690 | 690 | $relatedListFields[$fieldName] = $relFields[$fieldName]; |
| 691 | - } elseif(false !== strpos($fieldName,':')){ |
|
| 691 | + } elseif (false !== strpos($fieldName, ':')) { |
|
| 692 | 692 | [$relatedFieldName, $relatedModule, $sourceField] = array_pad(explode(':', $fieldName), 3, null); |
| 693 | - if(($model = \Vtiger_Module_Model::getInstance($relatedModule)) && ($fieldModel = $model->getFieldByName($relatedFieldName)) && $fieldModel->isActiveField()){ |
|
| 693 | + if (($model = \Vtiger_Module_Model::getInstance($relatedModule)) && ($fieldModel = $model->getFieldByName($relatedFieldName)) && $fieldModel->isActiveField()) { |
|
| 694 | 694 | $fieldModel->set('source_field_name', $sourceField); |
| 695 | 695 | $relatedListFields[$fieldName] = $fieldModel; |
| 696 | 696 | } |