Passed
Pull Request — developer (#16008)
by Arkadiusz
19:21
created
user_privileges/tabdata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
modules/SMSNotifier/workflow/SMSTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
app/Integrations/SMSProvider/SMSAPI.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
modules/Project/models/Gantt.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
modules/Accounts/ConfigTemplate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		'default' => 50,
16 16
 		'description' => 'Max depth of hierarchy',
17 17
 		'validation' => '\App\Validator::naturalNumber',
18
-		'sanitization' => function () {
18
+		'sanitization' => function() {
19 19
 			return (int) func_get_arg(0);
20 20
 		},
21 21
 	],
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	'defaultViewName' => [
35 35
 		'default' => 'List',
36 36
 		'description' => 'Default module view. Values: List, ListPreview, DashBoard or Tiles, refresh menu files after you change this value',
37
-		'validation' => function () {
37
+		'validation' => function() {
38 38
 			$arg = func_get_arg(0);
39 39
 			return 'List' === $arg || 'ListPreview' === $arg || 'DashBoard' === $arg || 'Tiles' === $arg;
40 40
 		},
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	'defaultDetailViewName' => [
43 43
 		'default' => 'full',
44 44
 		'description' => 'Default record view for list preview. Values: full or summary',
45
-		'validation' => function () {
45
+		'validation' => function() {
46 46
 			$arg = func_get_arg(0);
47 47
 			return 'full' === $arg || 'summary' === $arg;
48 48
 		},
Please login to merge, or discard this patch.
modules/Vtiger/models/CalendarRightPanel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
config/ConfigTemplates.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 		'enabledServices' => [
11 11
 			'default' => [],
12 12
 			'description' => 'List of active services. Available: dav, webservice',
13
-			'validation' => function () {
13
+			'validation' => function() {
14 14
 				$arg = func_get_arg(0);
15 15
 				return \is_array($arg) && empty(array_diff($arg, ['dav', 'webservice']));
16 16
 			},
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		'AUTH_METHOD' => [
55 55
 			'default' => 'Basic',
56 56
 			'description' => 'Webservice config.',
57
-			'validation' => function () {
57
+			'validation' => function() {
58 58
 				return 'Basic' === func_get_arg(0);
59 59
 			},
60 60
 		],
@@ -102,18 +102,18 @@  discard block
 block discarded – undo
102 102
 		'upload_maxsize' => [
103 103
 			'default' => 52428800,
104 104
 			'description' => 'Maximum file size for uploaded files in bytes also used when uploading import files: upload_maxsize default value = 52428800 (50MB)',
105
-			'validation' => function () {
105
+			'validation' => function() {
106 106
 				$arg = func_get_arg(0);
107 107
 				return $arg && \App\Validator::naturalNumber($arg) && ($arg * 1048576) <= \App\Config::getMaxUploadSize(false);
108 108
 			},
109
-			'sanitization' => function () {
109
+			'sanitization' => function() {
110 110
 				return (int) func_get_arg(0) * 1048576;
111 111
 			},
112 112
 		],
113 113
 		'allow_exports' => [
114 114
 			'default' => 'all',
115 115
 			'description' => 'Flag to allow export functionality: "all" - to allow anyone to use exports, "admin" - to only allow admins to export, "none" -  to block exports completely',
116
-			'validation' => function () {
116
+			'validation' => function() {
117 117
 				$arg = func_get_arg(0);
118 118
 				return \in_array($arg, ['all', 'admin', 'none']);
119 119
 			},
@@ -125,18 +125,18 @@  discard block
 block discarded – undo
125 125
 		'list_max_entries_per_page' => [
126 126
 			'default' => 20,
127 127
 			'description' => 'List max entries per page: default value = 20',
128
-			'validation' => function () {
128
+			'validation' => function() {
129 129
 				$arg = func_get_arg(0);
130 130
 				return $arg && \App\Validator::naturalNumber($arg) && (100 >= $arg) && (0 < $arg);
131 131
 			},
132
-			'sanitization' => function () {
132
+			'sanitization' => function() {
133 133
 				return (int) func_get_arg(0);
134 134
 			},
135 135
 		],
136 136
 		'default_module' => [
137 137
 			'default' => 'Home',
138 138
 			'description' => 'Default module: default value = Home',
139
-			'validation' => function () {
139
+			'validation' => function() {
140 140
 				$arg = func_get_arg(0);
141 141
 				return true === \App\Module::isModuleActive($arg);
142 142
 			},
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 		'default_charset' => [
145 145
 			'default' => 'UTF-8',
146 146
 			'description' => 'Default charset:  default value = "UTF-8"',
147
-			'validation' => function () {
147
+			'validation' => function() {
148 148
 				return 'UTF-8' === func_get_arg(0);
149 149
 			},
150 150
 		],
@@ -156,21 +156,21 @@  discard block
 block discarded – undo
156 156
 		'application_unique_key' => [
157 157
 			'default' => sha1(time() + random_int(1, 9999999)),
158 158
 			'description' => 'Unique Application Key',
159
-			'validation' => function () {
159
+			'validation' => function() {
160 160
 				return !class_exists('\\Config\\Main');
161 161
 			},
162
-			'sanitization' => function () {
162
+			'sanitization' => function() {
163 163
 				return sha1(time() + random_int(1, 9999999));
164 164
 			},
165 165
 		],
166 166
 		'listview_max_textlength' => [
167 167
 			'default' => 40,
168 168
 			'description' => 'Trim descriptions, titles in listviews to this value',
169
-			'validation' => function () {
169
+			'validation' => function() {
170 170
 				$arg = func_get_arg(0);
171 171
 				return $arg && \App\Validator::naturalNumber($arg) && (100 >= $arg) && (0 < $arg);
172 172
 			},
173
-			'sanitization' => function () {
173
+			'sanitization' => function() {
174 174
 				return (int) func_get_arg(0);
175 175
 			},
176 176
 		],
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 		'default_timezone' => [
182 182
 			'default' => '_TIMEZONE_',
183 183
 			'description' => 'Set the default timezone as per your preference',
184
-			'validation' => function () {
184
+			'validation' => function() {
185 185
 				$arg = func_get_arg(0);
186 186
 				return \in_array($arg, timezone_identifiers_list());
187 187
 			},
@@ -189,33 +189,33 @@  discard block
 block discarded – undo
189 189
 		'title_max_length' => [
190 190
 			'default' => 60,
191 191
 			'description' => 'Maximum length of characters for title',
192
-			'validation' => function () {
192
+			'validation' => function() {
193 193
 				$arg = func_get_arg(0);
194 194
 				return $arg && \App\Validator::naturalNumber($arg) && (100 >= $arg) && (0 < $arg);
195 195
 			},
196
-			'sanitization' => function () {
196
+			'sanitization' => function() {
197 197
 				return (int) func_get_arg(0);
198 198
 			},
199 199
 		],
200 200
 		'href_max_length' => [
201 201
 			'default' => 35,
202 202
 			'description' => 'Maximum length for href tag',
203
-			'validation' => function () {
203
+			'validation' => function() {
204 204
 				$arg = func_get_arg(0);
205 205
 				return $arg && \App\Validator::naturalNumber($arg) && (100 >= $arg) && (0 < $arg);
206 206
 			},
207
-			'sanitization' => function () {
207
+			'sanitization' => function() {
208 208
 				return (int) func_get_arg(0);
209 209
 			},
210 210
 		],
211 211
 		'MINIMUM_CRON_FREQUENCY' => [
212 212
 			'default' => 1,
213 213
 			'description' => 'Minimum cron frequency [min]',
214
-			'validation' => function () {
214
+			'validation' => function() {
215 215
 				$arg = func_get_arg(0);
216 216
 				return $arg && \App\Validator::naturalNumber($arg) && (100 >= $arg) && (0 < $arg);
217 217
 			},
218
-			'sanitization' => function () {
218
+			'sanitization' => function() {
219 219
 				return (int) func_get_arg(0);
220 220
 			},
221 221
 		],
@@ -231,11 +231,11 @@  discard block
 block discarded – undo
231 231
 		'listMaxEntriesMassEdit' => [
232 232
 			'default' => 500,
233 233
 			'description' => 'Maximum number of records in a mass edition',
234
-			'validation' => function () {
234
+			'validation' => function() {
235 235
 				$arg = func_get_arg(0);
236 236
 				return $arg && \App\Validator::naturalNumber($arg) && (5000 >= $arg);
237 237
 			},
238
-			'sanitization' => function () {
238
+			'sanitization' => function() {
239 239
 				return (int) func_get_arg(0);
240 240
 			},
241 241
 		],
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 		'defaultLayout' => [
279 279
 			'default' => 'basic',
280 280
 			'description' => 'Set the default layout',
281
-			'validation' => function () {
281
+			'validation' => function() {
282 282
 				return isset(\App\Layout::getAllLayouts()[func_get_arg(0)]);
283 283
 			},
284 284
 		],
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 		'phoneFieldAdvancedHrefFormat' => [
290 290
 			'default' => new \Nette\PhpGenerator\PhpLiteral('\libphonenumber\PhoneNumberFormat::RFC3966'),
291 291
 			'description' => "Phone number display format. Values:\nfalse - formatting is disabled \n\\libphonenumber\\PhoneNumberFormat::RFC3966 - +48-44-668-18-00\n\\libphonenumber\\PhoneNumberFormat::E164 - +48446681800 \n\\libphonenumber\\PhoneNumberFormat::INTERNATIONAL - 044 668 18 00\n\\libphonenumber\\PhoneNumberFormat::NATIONAL - +48 44 668 18 00",
292
-			'validation' => function () {
292
+			'validation' => function() {
293 293
 				return \in_array(func_get_arg(0), [
294 294
 					false,
295 295
 					\libphonenumber\PhoneNumberFormat::RFC3966,
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 		'LOG_LEVELS' => [
349 349
 			'default' => false,
350 350
 			'description' => 'Level of saved/displayed logs. Values: false = All / 3 = error and warning / ["error", "warning", "info", "trace", "profile"]',
351
-			'validation' => function () {
351
+			'validation' => function() {
352 352
 				$arg = func_get_arg(0);
353 353
 				return false === $arg || (\is_array($arg) && array_diff(['error', 'warning', 'info', 'trace', 'profile'], $arg));
354 354
 			},
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 		'SMARTY_ERROR_REPORTING' => [
430 430
 			'default' => new \Nette\PhpGenerator\PhpLiteral('E_ALL & ~E_NOTICE'),
431 431
 			'description' => 'Do not show Smarty Notice in phpError.log',
432
-			'validation' => function () {
432
+			'validation' => function() {
433 433
 				$arg = (string) func_get_arg(0);
434 434
 				return \in_array($arg, ['E_ALL', 'E_ALL & ~E_NOTICE']);
435 435
 			},
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 		'EXCEPTION_ERROR_LEVEL' => [
438 438
 			'default' => new \Nette\PhpGenerator\PhpLiteral('E_ALL & ~E_NOTICE'),
439 439
 			'description' => "Set the error reporting level. The parameter is either an integer representing a bit field, or named constants.\nhttps://secure.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting\nAll errors - E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED / Critical errors - E_ERROR | E_WARNING | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR",
440
-			'validation' => function () {
440
+			'validation' => function() {
441 441
 				$arg = (string) func_get_arg(0);
442 442
 				return \in_array($arg, ['E_ALL', 'E_ALL & ~E_NOTICE']);
443 443
 			},
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
 		'CACHING_DRIVER' => [
610 610
 			'default' => 'Base',
611 611
 			'description' => 'Data caching is about storing some PHP variables in cache and retrieving it later from cache. Drivers: Base, Apcu',
612
-			'validation' => function () {
612
+			'validation' => function() {
613 613
 				$arg = func_get_arg(0);
614 614
 				return 'Basic' === $arg || 'Apcu' === $arg;
615 615
 			},
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
 		'MODULES_SPLITTED_EDIT_VIEW_LAYOUT' => [
808 808
 			'default' => [],
809 809
 			'description' => 'List of modules with splitted edit view layout',
810
-			'validation' => function () {
810
+			'validation' => function() {
811 811
 				$arg = func_get_arg(0);
812 812
 				return \is_array($arg) && array_diff($arg, App\Module::getAllModuleNames());
813 813
 			},
@@ -870,7 +870,7 @@  discard block
 block discarded – undo
870 870
 			'default' => 20,
871 871
 			'description' => 'Maximum length of a comment visible in the related module',
872 872
 			'validation' => '\App\Validator::naturalNumber',
873
-			'sanitization' => function () {
873
+			'sanitization' => function() {
874 874
 				return (int) func_get_arg(0);
875 875
 			},
876 876
 		],
@@ -920,7 +920,7 @@  discard block
 block discarded – undo
920 920
 		'GLOBAL_SEARCH_SORTING_RESULTS' => [
921 921
 			'default' => 0,
922 922
 			'description' => 'Global search - Should the results be sorted in MySQL or PHP while displaying (None = 0, PHP = 1, Mysql = 2). The parameter impacts system efficiency.',
923
-			'validation' => function () {
923
+			'validation' => function() {
924 924
 				$arg = func_get_arg(0);
925 925
 				return \is_int($arg) && \in_array($arg, [0, 1, 2]);
926 926
 			},
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
 		'GLOBAL_SEARCH_AUTOCOMPLETE' => [
935 935
 			'default' => 1,
936 936
 			'description' => 'Global search - Search for records while entering text  (1/0).',
937
-			'validation' => function () {
937
+			'validation' => function() {
938 938
 				$arg = func_get_arg(0);
939 939
 				return \is_int($arg) && \in_array($arg, [0, 1]);
940 940
 			},
@@ -968,14 +968,14 @@  discard block
 block discarded – undo
968 968
 		'encryptionPass' => [
969 969
 			'default' => 'yeti',
970 970
 			'description' => 'Key to encrypt passwords, changing the key results in the loss of all encrypted data.',
971
-			'validation' => function () {
971
+			'validation' => function() {
972 972
 				return true;
973 973
 			},
974 974
 		],
975 975
 		'encryptionMethod' => [
976 976
 			'default' => 'aes-256-cbc',
977 977
 			'description' => 'Encryption method.',
978
-			'validation' => function () {
978
+			'validation' => function() {
979 979
 				$arg = func_get_arg(0);
980 980
 				return empty($arg) || ($arg && \in_array($arg, \App\Encryption::getMethods()));
981 981
 			},
@@ -1043,7 +1043,7 @@  discard block
 block discarded – undo
1043 1043
 		'permittedModulesByCreatorField' => [
1044 1044
 			'default' => [],
1045 1045
 			'description' => 'List of modules to which access is based on the record creation.',
1046
-			'validation' => function () {
1046
+			'validation' => function() {
1047 1047
 				$arg = func_get_arg(0);
1048 1048
 				return \is_array($arg) && array_diff($arg, App\Module::getAllModuleNames());
1049 1049
 			},
@@ -1114,7 +1114,7 @@  discard block
 block discarded – undo
1114 1114
 		'cookieForceHttpOnly' => [
1115 1115
 			'default' => true,
1116 1116
 			'description' => "Force the use of https only for cookie.\nValues: true, false, null",
1117
-			'validation' => function () {
1117
+			'validation' => function() {
1118 1118
 				$arg = func_get_arg(0);
1119 1119
 				return null === $arg ? $arg : \is_bool($arg);
1120 1120
 			},
@@ -1132,7 +1132,7 @@  discard block
 block discarded – undo
1132 1132
 		'USER_AUTHY_MODE' => [
1133 1133
 			'default' => 'TOTP_OPTIONAL',
1134 1134
 			'description' => "User authentication mode.\n\n@see \\Users_Totp_Authmethod::ALLOWED_USER_AUTHY_MODE\nAvailable values:\nTOTP_OFF - 2FA TOTP is checking off\nTOTP_OPTIONAL - It is defined by the user\nTOTP_OBLIGATORY - It is obligatory.",
1135
-			'validation' => function () {
1135
+			'validation' => function() {
1136 1136
 				$arg = func_get_arg(0);
1137 1137
 				return \in_array($arg, \Users_Totp_Authmethod::ALLOWED_USER_AUTHY_MODE);
1138 1138
 			},
@@ -1330,7 +1330,7 @@  discard block
 block discarded – undo
1330 1330
 		'db_password' => [
1331 1331
 			'default' => '_DBC_PASS_',
1332 1332
 			'description' => 'Gets the database password',
1333
-			'validation' => function () {
1333
+			'validation' => function() {
1334 1334
 				return true;
1335 1335
 			},
1336 1336
 		],
Please login to merge, or discard this patch.
app/Components/InterestsConflict.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@
 block discarded – undo
315 315
 		if (\App\Cache::has($cacheName, '')) {
316 316
 			return \App\Cache::get($cacheName, '');
317 317
 		}
318
-		$allModules = array_map(function ($v) {
318
+		$allModules = array_map(function($v) {
319 319
 			return 0 > $v ? 999 : sprintf('%03d', $v);
320 320
 		}, array_column(\vtlib\Functions::getAllModules(false, true), 'tabsequence', 'name'));
321 321
 		$excludedModules = ['ModComments'];
Please login to merge, or discard this patch.