@@ -271,7 +271,7 @@ |
||
271 | 271 | $requestUrl = (\App\RequestUtil::getBrowserInfo()->https ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']; |
272 | 272 | try { |
273 | 273 | $request = Requests::get($requestUrl, [], ['timeout' => 1]); |
274 | - $headers = array_map(function ($value) { |
|
274 | + $headers = array_map(function($value) { |
|
275 | 275 | return is_array($value) ? strtolower(implode(',', $value)) : strtolower($value); |
276 | 276 | }, $request->headers->getAll()); |
277 | 277 | } catch (\Exception $exc) { |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | /** |
513 | 513 | * Get php.ini configuration. |
514 | 514 | * |
515 | - * @return array |
|
515 | + * @return string |
|
516 | 516 | */ |
517 | 517 | public static function getPhpIniConf() |
518 | 518 | { |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | /** |
542 | 542 | * Get php.ini configuration from CLI. |
543 | 543 | * |
544 | - * @return array |
|
544 | + * @return string |
|
545 | 545 | */ |
546 | 546 | public static function getPhpIniConfCron() |
547 | 547 | { |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Function to get field uitype. |
16 | 16 | * |
17 | - * @return string uitype |
|
17 | + * @return integer uitype |
|
18 | 18 | */ |
19 | 19 | public function getUIType() |
20 | 20 | { |
@@ -135,6 +135,7 @@ discard block |
||
135 | 135 | /** |
136 | 136 | * Function to get field instance from InventoryFieldObject. |
137 | 137 | * |
138 | + * @param Vtiger_Basic_InventoryField $inventoryField |
|
138 | 139 | * @return <Settings_MappedFields_Field_Model> |
139 | 140 | */ |
140 | 141 | public static function getInstanceFromInventoryFieldObject($inventoryField) |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @param \App\Request $request |
126 | 126 | * |
127 | - * @return string export query |
|
127 | + * @return App\Db\Query export query |
|
128 | 128 | */ |
129 | 129 | public function getExportQuery(\App\Request $request) |
130 | 130 | { |
@@ -311,6 +311,9 @@ discard block |
||
311 | 311 | return $arr; |
312 | 312 | } |
313 | 313 | |
314 | + /** |
|
315 | + * @param Vtiger_Basic_InventoryField[] $inventoryFields |
|
316 | + */ |
|
314 | 317 | public function sanitizeInventoryValues($inventoryRow, $inventoryFields) |
315 | 318 | { |
316 | 319 | $inventoryEntries = []; |
@@ -17,8 +17,6 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * Create the name of the Inventory data table. |
19 | 19 | * |
20 | - * @param string $module Module name |
|
21 | - * @param string $prefix Prefix table |
|
22 | 20 | * |
23 | 21 | * @return string Table name |
24 | 22 | */ |
@@ -117,8 +115,6 @@ discard block |
||
117 | 115 | /** |
118 | 116 | * Get inventory columns. |
119 | 117 | * |
120 | - * @param string $module Module name |
|
121 | - * @param bool $returnInBlock Should the result be divided into blocks |
|
122 | 118 | * |
123 | 119 | * @return array Inventory columns |
124 | 120 | */ |
@@ -165,7 +161,6 @@ discard block |
||
165 | 161 | /** |
166 | 162 | * Retrieve list of all fields. |
167 | 163 | * |
168 | - * @param string $moduleName Module name |
|
169 | 164 | * |
170 | 165 | * @return array Fields instance Vtiger_Basic_InventoryField |
171 | 166 | */ |
@@ -211,7 +206,7 @@ discard block |
||
211 | 206 | /** |
212 | 207 | * Retrieve list of parameters. |
213 | 208 | * |
214 | - * @param array $fields Array of instances fields (Vtiger_Basic_InventoryField) |
|
209 | + * @param Vtiger_Basic_InventoryField $fields Array of instances fields (Vtiger_Basic_InventoryField) |
|
215 | 210 | * |
216 | 211 | * @return array Array of parameters |
217 | 212 | */ |
@@ -41,6 +41,7 @@ |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * {@inheritdoc} |
44 | + * @param string $columnName |
|
44 | 45 | */ |
45 | 46 | public function validate($value, $columnName, $isUserFormat = false) |
46 | 47 | { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$is_admin=true; |
|
4 | -$user_info=['user_name'=>'admin', 'is_admin'=>'on', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'lead_view'=>'Today', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl_pl', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'callduration'=>'60', 'othereventduration'=>'60', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'view_date_format'=>'PLL_ELAPSED', 'login_method'=>'PLL_PASSWORD', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'id'=>1]; |
|
3 | +$is_admin = true; |
|
4 | +$user_info = ['user_name'=>'admin', 'is_admin'=>'on', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'lead_view'=>'Today', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl_pl', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'callduration'=>'60', 'othereventduration'=>'60', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'view_date_format'=>'PLL_ELAPSED', 'login_method'=>'PLL_PASSWORD', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'id'=>1]; |
|
5 | 5 | return ['details'=>['user_name'=>'admin', 'is_admin'=>'1', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'lead_view'=>'Today', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl_pl', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'callduration'=>'60', 'othereventduration'=>'60', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'records_limit'=>'', 'phone_crm_extension_extra'=>'', 'date_password_change'=>'', 'force_password_change'=>'', 'view_date_format'=>'PLL_ELAPSED', 'authy_methods'=>'', 'authy_secret_totp'=>'', 'login_method'=>'PLL_PASSWORD', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'record_id'=>1, 'record_module'=>'Users'], 'displayName'=>'Administrator', 'profiles'=>[1], 'groups'=>[3], 'parent_roles'=>['H1'], 'parent_role_seq'=>'H1::H2']; |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$tab_seq_array=[1=>0, 3=>0, 4=>0, 6=>0, 7=>0, 8=>0, 9=>0, 13=>0, 14=>0, 15=>0, 16=>2, 18=>0, 19=>0, 24=>0, 26=>0, 27=>0, 29=>0, 30=>0, 32=>0, 33=>0, 34=>0, 35=>0, 37=>0, 40=>0, 41=>0, 42=>0, 43=>0, 45=>0, 48=>1, 50=>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]; |
|
3 | +$tab_seq_array = [1=>0, 3=>0, 4=>0, 6=>0, 7=>0, 8=>0, 9=>0, 13=>0, 14=>0, 15=>0, 16=>2, 18=>0, 19=>0, 24=>0, 26=>0, 27=>0, 29=>0, 30=>0, 32=>0, 33=>0, 34=>0, 35=>0, 37=>0, 40=>0, 41=>0, 42=>0, 43=>0, 45=>0, 48=>1, 50=>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]; |
|
4 | 4 | return ['tabId'=>['Dashboard'=>1, 'Home'=>3, 'Contacts'=>4, 'Accounts'=>6, 'Leads'=>7, 'Documents'=>8, 'Calendar'=>9, 'HelpDesk'=>13, 'Products'=>14, 'Faq'=>15, 'Events'=>16, 'Vendors'=>18, 'PriceBooks'=>19, 'Rss'=>24, 'Campaigns'=>26, 'Portal'=>27, 'Users'=>29, 'Import'=>30, 'ModTracker'=>32, 'PBXManager'=>33, 'ServiceContracts'=>34, 'Services'=>35, 'Assets'=>37, 'ModComments'=>40, 'ProjectMilestone'=>41, 'ProjectTask'=>42, 'Project'=>43, 'SMSNotifier'=>45, 'OSSMail'=>48, 'Password'=>50, '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], 'tabPresence'=>[1=>0, 3=>0, 4=>0, 6=>0, 7=>0, 8=>0, 9=>0, 13=>0, 14=>0, 15=>0, 16=>2, 18=>0, 19=>0, 24=>0, 26=>0, 27=>0, 29=>0, 30=>0, 32=>0, 33=>0, 34=>0, 35=>0, 37=>0, 40=>0, 41=>0, 42=>0, 43=>0, 45=>0, 48=>1, 50=>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], 'tabOwnedby'=>[1=>1, 3=>1, 4=>0, 6=>0, 7=>0, 8=>0, 9=>0, 13=>0, 14=>0, 15=>1, 16=>0, 18=>0, 19=>1, 24=>1, 26=>0, 27=>1, 29=>1, 30=>0, 32=>0, 33=>0, 34=>0, 35=>0, 37=>0, 40=>0, 41=>0, 42=>0, 43=>0, 45=>0, 48=>0, 50=>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], '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, 'ReceiveIncomingCalls'=>11, 'MakeOutgoingCalls'=>12, '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], 'actionName'=>[0=>'Save', 1=>'EditView', 2=>'Delete', 3=>'index', 4=>'DetailView', 5=>'Import', 6=>'Export', 7=>'CreateView', 8=>'Merge', 9=>'ConvertLead', 11=>'ReceiveIncomingCalls', 12=>'MakeOutgoingCalls', 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']]; |
@@ -1262,7 +1262,7 @@ |
||
1262 | 1262 | * Truncating HTML. |
1263 | 1263 | * |
1264 | 1264 | * @param $html |
1265 | - * @param int|bool $length |
|
1265 | + * @param integer $length |
|
1266 | 1266 | * @param bool $addDots |
1267 | 1267 | * |
1268 | 1268 | * @throws \HTMLPurifier_Exception |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | if (isset($this->language)) { |
361 | 361 | Language::setTemporaryLanguage($this->language); |
362 | 362 | } |
363 | - $this->content = preg_replace_callback('/\$\((\w+) : ([,"\+\%\.\-\[\]\&\w\s\|]+)\)\$/u', function ($matches) { |
|
363 | + $this->content = preg_replace_callback('/\$\((\w+) : ([,"\+\%\.\-\[\]\&\w\s\|]+)\)\$/u', function($matches) { |
|
364 | 364 | list(, $function, $params) = array_pad($matches, 3, ''); |
365 | 365 | if (in_array($function, static::$baseFunctions)) { |
366 | 366 | return $this->$function($params); |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | if (isset($this->language)) { |
382 | 382 | Language::setTemporaryLanguage($this->language); |
383 | 383 | } |
384 | - $this->content = preg_replace_callback('/\$\(translate : ([,"\+\%\.\-\[\]\&\w\s\|]+)\)\$/u', function ($matches) { |
|
384 | + $this->content = preg_replace_callback('/\$\(translate : ([,"\+\%\.\-\[\]\&\w\s\|]+)\)\$/u', function($matches) { |
|
385 | 385 | list(, $params) = array_pad($matches, 2, ''); |
386 | 386 | return $this->translate($params); |
387 | 387 | }, $this->content); |
@@ -1162,7 +1162,7 @@ discard block |
||
1162 | 1162 | public function getGeneralVariable() |
1163 | 1163 | { |
1164 | 1164 | $variables = [ |
1165 | - 'LBL_ENTITY_VARIABLES' => array_map(function ($value) { |
|
1165 | + 'LBL_ENTITY_VARIABLES' => array_map(function($value) { |
|
1166 | 1166 | return Language::translate($value, 'Other.TextParser'); |
1167 | 1167 | }, array_flip(static::$variableGeneral)), |
1168 | 1168 | ]; |
@@ -1330,7 +1330,7 @@ discard block |
||
1330 | 1330 | } |
1331 | 1331 | } |
1332 | 1332 | $generator = new \HTMLPurifier_Generator($config, new \HTMLPurifier_Context()); |
1333 | - $html = preg_replace_callback('/<*([A-Za-z_]\w*)\s\/>/', function ($matches) { |
|
1333 | + $html = preg_replace_callback('/<*([A-Za-z_]\w*)\s\/>/', function($matches) { |
|
1334 | 1334 | if (\in_array($matches[1], ['div'])) { |
1335 | 1335 | return "<{$matches[1]}></{$matches[1]}>"; |
1336 | 1336 | } |
@@ -41,6 +41,7 @@ |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * {@inheritdoc} |
44 | + * @param string $columnName |
|
44 | 45 | */ |
45 | 46 | public function validate($value, $columnName, $isUserFormat = false) |
46 | 47 | { |