@@ -193,7 +193,7 @@ |
||
193 | 193 | * |
194 | 194 | * @param Vtiger_PDF_Model $pdfModel |
195 | 195 | */ |
196 | - public static function transformAdvanceFilterToWorkFlowFilter(Vtiger_PDF_Model &$pdfModel) |
|
196 | + public static function transformAdvanceFilterToWorkFlowFilter(Vtiger_PDF_Model & $pdfModel) |
|
197 | 197 | { |
198 | 198 | $conditions = $pdfModel->get('conditions'); |
199 | 199 | $wfCondition = []; |
@@ -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 | }, |
@@ -1,3 +1,3 @@ |
||
1 | -<?php $tab_seq_array=[1=>0,3=>0,4=>0,6=>0,7=>0,8=>0,9=>0,13=>0,14=>0,15=>0,18=>0,19=>0,24=>0,26=>0,29=>0,30=>0,32=>0,34=>0,35=>0,37=>0,40=>0,41=>0,42=>0,43=>0,45=>0,48=>1,51=>0,53=>0,54=>0,57=>0,58=>0,59=>0,60=>1,61=>0,73=>0,74=>0,75=>0,78=>0,79=>0,80=>0,81=>0,82=>0,83=>0,84=>0,85=>0,86=>0,87=>0,88=>0,89=>0,90=>0,91=>0,92=>0,93=>0,94=>0,95=>0,96=>0,97=>0,98=>0,99=>0,100=>0,101=>0,102=>0,103=>0,104=>0,105=>0,106=>0,107=>0,108=>0,109=>0,110=>0,111=>0,112=>0,113=>0,114=>0,115=>0,116=>0,117=>0,118=>0,119=>0,120=>0,121=>0,122=>0,123=>0,124=>0,125=>0,126=>0,127=>0,128=>0,129=>0,130=>0,131=>0,132=>0,133=>0,134=>0,135=>0,136=>0]; |
|
2 | -return ['tabId'=>['Dashboard'=>1,'Home'=>3,'Contacts'=>4,'Accounts'=>6,'Leads'=>7,'Documents'=>8,'Calendar'=>9,'HelpDesk'=>13,'Products'=>14,'Faq'=>15,'Vendors'=>18,'PriceBooks'=>19,'Rss'=>24,'Campaigns'=>26,'Users'=>29,'Import'=>30,'ModTracker'=>32,'ServiceContracts'=>34,'Services'=>35,'Assets'=>37,'ModComments'=>40,'ProjectMilestone'=>41,'ProjectTask'=>42,'Project'=>43,'SMSNotifier'=>45,'OSSMail'=>48,'OSSTimeControl'=>51,'OSSMailScanner'=>53,'OSSMailView'=>54,'OSSOutsourcedServices'=>57,'OSSSoldServices'=>58,'OutsourcedProducts'=>59,'OSSPasswords'=>60,'OSSEmployees'=>61,'ApiAddress'=>73,'CallHistory'=>74,'Ideas'=>75,'HolidaysEntitlement'=>78,'PaymentsIn'=>79,'PaymentsOut'=>80,'LettersIn'=>81,'LettersOut'=>82,'Announcements'=>83,'Reservations'=>84,'SQuoteEnquiries'=>85,'SSalesProcesses'=>86,'SRequirementsCards'=>87,'SCalculations'=>88,'SQuotes'=>89,'SSingleOrders'=>90,'SRecurringOrders'=>91,'Partners'=>92,'Competition'=>93,'FBookkeeping'=>94,'FInvoice'=>95,'KnowledgeBase'=>96,'IStorages'=>97,'IGRN'=>98,'FInvoiceProforma'=>99,'IGDN'=>100,'IIDN'=>101,'IGIN'=>102,'IPreOrder'=>103,'ISTDN'=>104,'ISTN'=>105,'ISTRN'=>106,'FCorectingInvoice'=>107,'IGRNC'=>108,'IGDNC'=>109,'OpenStreetMap'=>110,'Notification'=>111,'EmailTemplates'=>112,'CFixedAssets'=>113,'CInternalTickets'=>114,'FInvoiceCost'=>115,'CMileageLogbook'=>116,'SVendorEnquiries'=>117,'Chat'=>118,'MultiCompany'=>119,'PermissionInspector'=>120,'DataSetRegister'=>121,'ActivityRegister'=>122,'LocationRegister'=>123,'IncidentRegister'=>124,'AuditRegister'=>125,'RecycleBin'=>126,'Approvals'=>127,'ApprovalsRegister'=>128,'MailIntegration'=>129,'Locations'=>130,'Occurrences'=>131,'ProductCategory'=>132,'BankAccounts'=>133,'Queue'=>134,'Passwords'=>135,'SMSTemplates'=>136],'tabPresence'=>[1=>0,3=>0,4=>0,6=>0,7=>0,8=>0,9=>0,13=>0,14=>0,15=>0,18=>0,19=>0,24=>0,26=>0,29=>0,30=>0,32=>0,34=>0,35=>0,37=>0,40=>0,41=>0,42=>0,43=>0,45=>0,48=>1,51=>0,53=>0,54=>0,57=>0,58=>0,59=>0,60=>1,61=>0,73=>0,74=>0,75=>0,78=>0,79=>0,80=>0,81=>0,82=>0,83=>0,84=>0,85=>0,86=>0,87=>0,88=>0,89=>0,90=>0,91=>0,92=>0,93=>0,94=>0,95=>0,96=>0,97=>0,98=>0,99=>0,100=>0,101=>0,102=>0,103=>0,104=>0,105=>0,106=>0,107=>0,108=>0,109=>0,110=>0,111=>0,112=>0,113=>0,114=>0,115=>0,116=>0,117=>0,118=>0,119=>0,120=>0,121=>0,122=>0,123=>0,124=>0,125=>0,126=>0,127=>0,128=>0,129=>0,130=>0,131=>0,132=>0,133=>0,134=>0,135=>0,136=>0],'tabOwnedby'=>[1=>1,3=>1,4=>0,6=>0,7=>0,8=>0,9=>0,13=>0,14=>0,15=>1,18=>0,19=>1,24=>1,26=>0,29=>1,30=>0,32=>0,34=>0,35=>0,37=>0,40=>0,41=>0,42=>0,43=>0,45=>0,48=>0,51=>0,53=>0,54=>0,57=>0,58=>0,59=>0,60=>0,61=>0,73=>0,74=>0,75=>0,78=>0,79=>0,80=>0,81=>0,82=>0,83=>0,84=>0,85=>0,86=>0,87=>0,88=>0,89=>0,90=>0,91=>0,92=>0,93=>0,94=>0,95=>0,96=>0,97=>0,98=>0,99=>0,100=>0,101=>0,102=>0,103=>0,104=>0,105=>0,106=>0,107=>0,108=>0,109=>0,110=>0,111=>0,112=>0,113=>0,114=>0,115=>0,116=>0,117=>0,118=>0,119=>0,120=>0,121=>0,122=>0,123=>0,124=>0,125=>0,126=>0,127=>0,128=>0,129=>0,130=>0,131=>0,132=>0,133=>0,134=>0,135=>0,136=>0],'actionId'=>['Save'=>0,'SavePriceBook'=>0,'SaveVendor'=>0,'DetailViewAjax'=>1,'EditView'=>1,'PriceBookEditView'=>1,'QuickCreate'=>1,'VendorEditView'=>1,'Delete'=>2,'DeletePriceBook'=>2,'DeleteVendor'=>2,'index'=>3,'Popup'=>3,'DetailView'=>4,'PriceBookDetailView'=>4,'VendorDetailView'=>4,'Import'=>5,'Export'=>6,'CreateView'=>7,'Merge'=>8,'ConvertLead'=>9,'ModTracker'=>13,'CreateCustomFilter'=>14,'DuplicateRecord'=>15,'EditableComments'=>16,'MassEdit'=>17,'MassDelete'=>18,'MassAddComment'=>19,'MassComposeEmail'=>20,'MassSendSMS'=>21,'MassTransferOwnership'=>22,'MassMoveDocuments'=>23,'ReadRecord'=>24,'WorkflowTrigger'=>25,'Dashboard'=>26,'CreateDashboardFilter'=>27,'QuickExportToExcel'=>28,'DetailTransferOwnership'=>30,'ActivityPostponed'=>31,'ActivityCancel'=>32,'ActivityComplete'=>33,'ExportPdf'=>34,'PrintMail'=>35,'RecordMapping'=>36,'RecordMappingList'=>37,'OpenRecord'=>38,'CloseRecord'=>39,'FavoriteRecords'=>40,'WatchingRecords'=>41,'WatchingModule'=>42,'RemoveRelation'=>46,'ReceivingMailNotifications'=>47,'ReviewingUpdates'=>48,'CreateDashboardChartFilter'=>49,'ReloadRelationRecord'=>50,'TimeLineList'=>51,'MassArchived'=>52,'MassActive'=>53,'ArchiveRecord'=>54,'ActiveRecord'=>55,'MassTrash'=>56,'MoveToTrash'=>57,'RecordConventer'=>58,'AutoAssignRecord'=>59,'AssignToYourself'=>60,'RecordPdfInventory'=>61,'SetQtyProducts'=>62,'RecordCollector'=>63,'MeetingUrl'=>64,'InterestsConflictUsers'=>65,'Kanban'=>66,'CustomViewAdvCond'=>67,'RecordActivityNotifier'=>68,'WorkflowTriggerWhenRecordIsBlocked'=>69,'ServiceContractsSla'=>70],'actionName'=>[0=>'Save',1=>'EditView',2=>'Delete',3=>'index',4=>'DetailView',5=>'Import',6=>'Export',7=>'CreateView',8=>'Merge',9=>'ConvertLead',13=>'ModTracker',14=>'CreateCustomFilter',15=>'DuplicateRecord',16=>'EditableComments',17=>'MassEdit',18=>'MassDelete',19=>'MassAddComment',20=>'MassComposeEmail',21=>'MassSendSMS',22=>'MassTransferOwnership',23=>'MassMoveDocuments',24=>'ReadRecord',25=>'WorkflowTrigger',26=>'Dashboard',27=>'CreateDashboardFilter',28=>'QuickExportToExcel',30=>'DetailTransferOwnership',31=>'ActivityPostponed',32=>'ActivityCancel',33=>'ActivityComplete',34=>'ExportPdf',35=>'PrintMail',36=>'RecordMapping',37=>'RecordMappingList',38=>'OpenRecord',39=>'CloseRecord',40=>'FavoriteRecords',41=>'WatchingRecords',42=>'WatchingModule',46=>'RemoveRelation',47=>'ReceivingMailNotifications',48=>'ReviewingUpdates',49=>'CreateDashboardChartFilter',50=>'ReloadRelationRecord',51=>'TimeLineList',52=>'MassArchived',53=>'MassActive',54=>'ArchiveRecord',55=>'ActiveRecord',56=>'MassTrash',57=>'MoveToTrash',58=>'RecordConventer',59=>'AutoAssignRecord',60=>'AssignToYourself',61=>'RecordPdfInventory',62=>'SetQtyProducts',63=>'RecordCollector',64=>'MeetingUrl',65=>'InterestsConflictUsers',66=>'Kanban',67=>'CustomViewAdvCond',68=>'RecordActivityNotifier',69=>'WorkflowTriggerWhenRecordIsBlocked',70=>'ServiceContractsSla']]; |
|
1 | +<?php $tab_seq_array = [1=>0, 3=>0, 4=>0, 6=>0, 7=>0, 8=>0, 9=>0, 13=>0, 14=>0, 15=>0, 18=>0, 19=>0, 24=>0, 26=>0, 29=>0, 30=>0, 32=>0, 34=>0, 35=>0, 37=>0, 40=>0, 41=>0, 42=>0, 43=>0, 45=>0, 48=>1, 51=>0, 53=>0, 54=>0, 57=>0, 58=>0, 59=>0, 60=>1, 61=>0, 73=>0, 74=>0, 75=>0, 78=>0, 79=>0, 80=>0, 81=>0, 82=>0, 83=>0, 84=>0, 85=>0, 86=>0, 87=>0, 88=>0, 89=>0, 90=>0, 91=>0, 92=>0, 93=>0, 94=>0, 95=>0, 96=>0, 97=>0, 98=>0, 99=>0, 100=>0, 101=>0, 102=>0, 103=>0, 104=>0, 105=>0, 106=>0, 107=>0, 108=>0, 109=>0, 110=>0, 111=>0, 112=>0, 113=>0, 114=>0, 115=>0, 116=>0, 117=>0, 118=>0, 119=>0, 120=>0, 121=>0, 122=>0, 123=>0, 124=>0, 125=>0, 126=>0, 127=>0, 128=>0, 129=>0, 130=>0, 131=>0, 132=>0, 133=>0, 134=>0, 135=>0, 136=>0]; |
|
2 | +return ['tabId'=>['Dashboard'=>1, 'Home'=>3, 'Contacts'=>4, 'Accounts'=>6, 'Leads'=>7, 'Documents'=>8, 'Calendar'=>9, 'HelpDesk'=>13, 'Products'=>14, 'Faq'=>15, 'Vendors'=>18, 'PriceBooks'=>19, 'Rss'=>24, 'Campaigns'=>26, 'Users'=>29, 'Import'=>30, 'ModTracker'=>32, 'ServiceContracts'=>34, 'Services'=>35, 'Assets'=>37, 'ModComments'=>40, 'ProjectMilestone'=>41, 'ProjectTask'=>42, 'Project'=>43, 'SMSNotifier'=>45, 'OSSMail'=>48, 'OSSTimeControl'=>51, 'OSSMailScanner'=>53, 'OSSMailView'=>54, 'OSSOutsourcedServices'=>57, 'OSSSoldServices'=>58, 'OutsourcedProducts'=>59, 'OSSPasswords'=>60, 'OSSEmployees'=>61, 'ApiAddress'=>73, 'CallHistory'=>74, 'Ideas'=>75, 'HolidaysEntitlement'=>78, 'PaymentsIn'=>79, 'PaymentsOut'=>80, 'LettersIn'=>81, 'LettersOut'=>82, 'Announcements'=>83, 'Reservations'=>84, 'SQuoteEnquiries'=>85, 'SSalesProcesses'=>86, 'SRequirementsCards'=>87, 'SCalculations'=>88, 'SQuotes'=>89, 'SSingleOrders'=>90, 'SRecurringOrders'=>91, 'Partners'=>92, 'Competition'=>93, 'FBookkeeping'=>94, 'FInvoice'=>95, 'KnowledgeBase'=>96, 'IStorages'=>97, 'IGRN'=>98, 'FInvoiceProforma'=>99, 'IGDN'=>100, 'IIDN'=>101, 'IGIN'=>102, 'IPreOrder'=>103, 'ISTDN'=>104, 'ISTN'=>105, 'ISTRN'=>106, 'FCorectingInvoice'=>107, 'IGRNC'=>108, 'IGDNC'=>109, 'OpenStreetMap'=>110, 'Notification'=>111, 'EmailTemplates'=>112, 'CFixedAssets'=>113, 'CInternalTickets'=>114, 'FInvoiceCost'=>115, 'CMileageLogbook'=>116, 'SVendorEnquiries'=>117, 'Chat'=>118, 'MultiCompany'=>119, 'PermissionInspector'=>120, 'DataSetRegister'=>121, 'ActivityRegister'=>122, 'LocationRegister'=>123, 'IncidentRegister'=>124, 'AuditRegister'=>125, 'RecycleBin'=>126, 'Approvals'=>127, 'ApprovalsRegister'=>128, 'MailIntegration'=>129, 'Locations'=>130, 'Occurrences'=>131, 'ProductCategory'=>132, 'BankAccounts'=>133, 'Queue'=>134, 'Passwords'=>135, 'SMSTemplates'=>136], 'tabPresence'=>[1=>0, 3=>0, 4=>0, 6=>0, 7=>0, 8=>0, 9=>0, 13=>0, 14=>0, 15=>0, 18=>0, 19=>0, 24=>0, 26=>0, 29=>0, 30=>0, 32=>0, 34=>0, 35=>0, 37=>0, 40=>0, 41=>0, 42=>0, 43=>0, 45=>0, 48=>1, 51=>0, 53=>0, 54=>0, 57=>0, 58=>0, 59=>0, 60=>1, 61=>0, 73=>0, 74=>0, 75=>0, 78=>0, 79=>0, 80=>0, 81=>0, 82=>0, 83=>0, 84=>0, 85=>0, 86=>0, 87=>0, 88=>0, 89=>0, 90=>0, 91=>0, 92=>0, 93=>0, 94=>0, 95=>0, 96=>0, 97=>0, 98=>0, 99=>0, 100=>0, 101=>0, 102=>0, 103=>0, 104=>0, 105=>0, 106=>0, 107=>0, 108=>0, 109=>0, 110=>0, 111=>0, 112=>0, 113=>0, 114=>0, 115=>0, 116=>0, 117=>0, 118=>0, 119=>0, 120=>0, 121=>0, 122=>0, 123=>0, 124=>0, 125=>0, 126=>0, 127=>0, 128=>0, 129=>0, 130=>0, 131=>0, 132=>0, 133=>0, 134=>0, 135=>0, 136=>0], 'tabOwnedby'=>[1=>1, 3=>1, 4=>0, 6=>0, 7=>0, 8=>0, 9=>0, 13=>0, 14=>0, 15=>1, 18=>0, 19=>1, 24=>1, 26=>0, 29=>1, 30=>0, 32=>0, 34=>0, 35=>0, 37=>0, 40=>0, 41=>0, 42=>0, 43=>0, 45=>0, 48=>0, 51=>0, 53=>0, 54=>0, 57=>0, 58=>0, 59=>0, 60=>0, 61=>0, 73=>0, 74=>0, 75=>0, 78=>0, 79=>0, 80=>0, 81=>0, 82=>0, 83=>0, 84=>0, 85=>0, 86=>0, 87=>0, 88=>0, 89=>0, 90=>0, 91=>0, 92=>0, 93=>0, 94=>0, 95=>0, 96=>0, 97=>0, 98=>0, 99=>0, 100=>0, 101=>0, 102=>0, 103=>0, 104=>0, 105=>0, 106=>0, 107=>0, 108=>0, 109=>0, 110=>0, 111=>0, 112=>0, 113=>0, 114=>0, 115=>0, 116=>0, 117=>0, 118=>0, 119=>0, 120=>0, 121=>0, 122=>0, 123=>0, 124=>0, 125=>0, 126=>0, 127=>0, 128=>0, 129=>0, 130=>0, 131=>0, 132=>0, 133=>0, 134=>0, 135=>0, 136=>0], 'actionId'=>['Save'=>0, 'SavePriceBook'=>0, 'SaveVendor'=>0, 'DetailViewAjax'=>1, 'EditView'=>1, 'PriceBookEditView'=>1, 'QuickCreate'=>1, 'VendorEditView'=>1, 'Delete'=>2, 'DeletePriceBook'=>2, 'DeleteVendor'=>2, 'index'=>3, 'Popup'=>3, 'DetailView'=>4, 'PriceBookDetailView'=>4, 'VendorDetailView'=>4, 'Import'=>5, 'Export'=>6, 'CreateView'=>7, 'Merge'=>8, 'ConvertLead'=>9, 'ModTracker'=>13, 'CreateCustomFilter'=>14, 'DuplicateRecord'=>15, 'EditableComments'=>16, 'MassEdit'=>17, 'MassDelete'=>18, 'MassAddComment'=>19, 'MassComposeEmail'=>20, 'MassSendSMS'=>21, 'MassTransferOwnership'=>22, 'MassMoveDocuments'=>23, 'ReadRecord'=>24, 'WorkflowTrigger'=>25, 'Dashboard'=>26, 'CreateDashboardFilter'=>27, 'QuickExportToExcel'=>28, 'DetailTransferOwnership'=>30, 'ActivityPostponed'=>31, 'ActivityCancel'=>32, 'ActivityComplete'=>33, 'ExportPdf'=>34, 'PrintMail'=>35, 'RecordMapping'=>36, 'RecordMappingList'=>37, 'OpenRecord'=>38, 'CloseRecord'=>39, 'FavoriteRecords'=>40, 'WatchingRecords'=>41, 'WatchingModule'=>42, 'RemoveRelation'=>46, 'ReceivingMailNotifications'=>47, 'ReviewingUpdates'=>48, 'CreateDashboardChartFilter'=>49, 'ReloadRelationRecord'=>50, 'TimeLineList'=>51, 'MassArchived'=>52, 'MassActive'=>53, 'ArchiveRecord'=>54, 'ActiveRecord'=>55, 'MassTrash'=>56, 'MoveToTrash'=>57, 'RecordConventer'=>58, 'AutoAssignRecord'=>59, 'AssignToYourself'=>60, 'RecordPdfInventory'=>61, 'SetQtyProducts'=>62, 'RecordCollector'=>63, 'MeetingUrl'=>64, 'InterestsConflictUsers'=>65, 'Kanban'=>66, 'CustomViewAdvCond'=>67, 'RecordActivityNotifier'=>68, 'WorkflowTriggerWhenRecordIsBlocked'=>69, 'ServiceContractsSla'=>70], 'actionName'=>[0=>'Save', 1=>'EditView', 2=>'Delete', 3=>'index', 4=>'DetailView', 5=>'Import', 6=>'Export', 7=>'CreateView', 8=>'Merge', 9=>'ConvertLead', 13=>'ModTracker', 14=>'CreateCustomFilter', 15=>'DuplicateRecord', 16=>'EditableComments', 17=>'MassEdit', 18=>'MassDelete', 19=>'MassAddComment', 20=>'MassComposeEmail', 21=>'MassSendSMS', 22=>'MassTransferOwnership', 23=>'MassMoveDocuments', 24=>'ReadRecord', 25=>'WorkflowTrigger', 26=>'Dashboard', 27=>'CreateDashboardFilter', 28=>'QuickExportToExcel', 30=>'DetailTransferOwnership', 31=>'ActivityPostponed', 32=>'ActivityCancel', 33=>'ActivityComplete', 34=>'ExportPdf', 35=>'PrintMail', 36=>'RecordMapping', 37=>'RecordMappingList', 38=>'OpenRecord', 39=>'CloseRecord', 40=>'FavoriteRecords', 41=>'WatchingRecords', 42=>'WatchingModule', 46=>'RemoveRelation', 47=>'ReceivingMailNotifications', 48=>'ReviewingUpdates', 49=>'CreateDashboardChartFilter', 50=>'ReloadRelationRecord', 51=>'TimeLineList', 52=>'MassArchived', 53=>'MassActive', 54=>'ArchiveRecord', 55=>'ActiveRecord', 56=>'MassTrash', 57=>'MoveToTrash', 58=>'RecordConventer', 59=>'AutoAssignRecord', 60=>'AssignToYourself', 61=>'RecordPdfInventory', 62=>'SetQtyProducts', 63=>'RecordCollector', 64=>'MeetingUrl', 65=>'InterestsConflictUsers', 66=>'Kanban', 67=>'CustomViewAdvCond', 68=>'RecordActivityNotifier', 69=>'WorkflowTriggerWhenRecordIsBlocked', 70=>'ServiceContractsSla']]; |
|
3 | 3 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | $recepient = $textParser->setContent($this->sms_recepient)->parse()->getContent(); |
41 | 41 | $recepients = array_unique(explode(',', $recepient)); |
42 | 42 | foreach ($recepients as $phoneNumber) { |
43 | - $phoneNumber = preg_replace_callback('/[^\d\+]/s', function () { |
|
43 | + $phoneNumber = preg_replace_callback('/[^\d\+]/s', function() { |
|
44 | 44 | return ''; |
45 | 45 | }, strip_tags($phoneNumber)); |
46 | 46 | if ($phoneNumber) { |
@@ -78,7 +78,7 @@ |
||
78 | 78 | */ |
79 | 79 | public function setPhone(string $phoneNumber): self |
80 | 80 | { |
81 | - $phoneNumber = preg_replace_callback('/[^\d]/s', function () { |
|
81 | + $phoneNumber = preg_replace_callback('/[^\d]/s', function() { |
|
82 | 82 | return ''; |
83 | 83 | }, $phoneNumber); |
84 | 84 | $this->set('to', $phoneNumber); |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | private function findOutStartDates(&$node) |
283 | 283 | { |
284 | 284 | $maxTimeStampValue = 2147483647; |
285 | - $firstDate = $this->iterateNodes($node, $maxTimeStampValue, function (&$child, $firstDate) { |
|
285 | + $firstDate = $this->iterateNodes($node, $maxTimeStampValue, function(&$child, $firstDate) { |
|
286 | 286 | if (!empty($child['start_date']) && '1970-01-01' !== $child['start_date']) { |
287 | 287 | $taskStartDate = strtotime($child['start_date']); |
288 | 288 | if ($taskStartDate < $firstDate && $taskStartDate > 0) { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | $node['start'] = date('Y-m-d H:i:s', $firstDate); |
301 | 301 | } |
302 | 302 | // iterate one more time setting up empty dates |
303 | - $this->iterateNodes($node, $firstDate, function (&$child, $firstDate) { |
|
303 | + $this->iterateNodes($node, $firstDate, function(&$child, $firstDate) { |
|
304 | 304 | if (empty($child['start_date']) || '1970-01-01' === $child['start_date']) { |
305 | 305 | $child['start_date'] = date('Y-m-d', $firstDate); |
306 | 306 | $child['start'] = date('Y-m-d H:i:s', $firstDate); |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | */ |
320 | 320 | private function findOutEndDates(&$node) |
321 | 321 | { |
322 | - $lastDate = $this->iterateNodes($node, 0, function (&$child, $lastDate) { |
|
322 | + $lastDate = $this->iterateNodes($node, 0, function(&$child, $lastDate) { |
|
323 | 323 | if (!empty($child['start_date']) && '1970-01-01' !== $child['start_date']) { |
324 | 324 | $taskDate = strtotime($child['end_date']); |
325 | 325 | if ($taskDate > $lastDate) { |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | $node['end'] = $lastDate; |
337 | 337 | } |
338 | 338 | // iterate one more time setting up empty dates |
339 | - $this->iterateNodes($node, $lastDate, function (&$child, $lastDate) { |
|
339 | + $this->iterateNodes($node, $lastDate, function(&$child, $lastDate) { |
|
340 | 340 | if (empty($child['end_date'])) { |
341 | 341 | $child['end_date'] = date('Y-m-d', $lastDate); |
342 | 342 | $child['end'] = $lastDate; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | if (!empty($users) && $favoriteUsers = self::getFavoriteUsers($moduleName)) { |
45 | 45 | uksort($users, |
46 | - function ($a, $b) use ($favoriteUsers) { |
|
46 | + function($a, $b) use ($favoriteUsers) { |
|
47 | 47 | return (int) (!isset($favoriteUsers[$a]) && isset($favoriteUsers[$b])); |
48 | 48 | }); |
49 | 49 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | if (!\is_array($value)) { |
126 | 126 | return ''; |
127 | 127 | } |
128 | - $value = array_map(function ($v) { |
|
128 | + $value = array_map(function($v) { |
|
129 | 129 | return $v['name']; |
130 | 130 | }, $value); |
131 | 131 | $result = implode(', ', $value); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | } |
173 | 173 | $imageCount = (int) ($this->getFieldModel()->getFieldParams()['imageCount'] ?? 0); |
174 | 174 | $countValue = \count($value); |
175 | - $len = ($imageCount <= $countValue) && ($imageCount > 0) ? $imageCount : $countValue; |
|
175 | + $len = ($imageCount <= $countValue) && ($imageCount > 0) ? $imageCount : $countValue; |
|
176 | 176 | if (!$record && $recordModel) { |
177 | 177 | $record = $recordModel->getId(); |
178 | 178 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | } |
228 | 228 | $result = '<div class="c-multi-image__result text-center">'; |
229 | 229 | for ($i = 0; $i < $len; ++$i) { |
230 | - $result .='<div class="d-inline-block mr-1 c-multi-image__preview-img middle" style="background-image:url(' . $this->getImageUrl($value[$i]['key'], $record) . ')"></div>'; |
|
230 | + $result .= '<div class="d-inline-block mr-1 c-multi-image__preview-img middle" style="background-image:url(' . $this->getImageUrl($value[$i]['key'], $record) . ')"></div>'; |
|
231 | 231 | } |
232 | 232 | return $result . '</div>'; |
233 | 233 | } |