Passed
Push — developer ( 876bf5...ef1ee6 )
by Mariusz
23:26
created
user_privileges/user_privileges_1.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2
-$is_admin=true;
3
-$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','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','othereventduration'=>'[{"activitytype":"Call","duration":"60"},{"activitytype":"Meeting","duration":"60"},{"activitytype":"Task","duration":"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','sync_carddav'=>'PLL_OWNER','sync_caldav'=>'PLL_OWNER','secondary_email'=>'','default_search_operator'=>'PLL_CONTAINS','super_user'=>1,'currency_name'=>'Poland, Zlotych','currency_code'=>'PLN','currency_symbol'=>'zł','conv_rate'=>'1.00000','id'=>1];
4
-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','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','othereventduration'=>'[{"activitytype":"Call","duration":"60"},{"activitytype":"Meeting","duration":"60"},{"activitytype":"Task","duration":"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','sync_carddav'=>'PLL_OWNER','sync_caldav'=>'PLL_OWNER','sync_carddav_default_country'=>'','default_search_module'=>'','default_search_override'=>'','primary_phone_extra'=>'','primary_phone'=>'','mail_scanner_actions'=>'','mail_scanner_fields'=>'','secondary_email'=>'','default_search_operator'=>'PLL_CONTAINS','super_user'=>1,'calendar_all_users_by_default'=>'','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],'leadersByGroup'=>[],'leader'=>[],'parent_roles'=>['H1'],'parent_role_seq'=>'H1::H2','roleName'=>'Board of Management','multiCompanyId'=>1,'multiCompanyLogo'=>['name'=>'logo_yetiforce.png','size'=>'3 KB','path'=>'public_html/layouts/resources/Logo/logo_login_page.png','key'=>'11111111111111111111111111111111111111111111111111'],'multiCompanyLogoUrl'=>'file.php?module=MultiCompany&action=Logo&record=1&key=11111111111111111111111111111111111111111111111111'];
2
+$is_admin = true;
3
+$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', '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', 'othereventduration'=>'[{"activitytype":"Call","duration":"60"},{"activitytype":"Meeting","duration":"60"},{"activitytype":"Task","duration":"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', 'sync_carddav'=>'PLL_OWNER', 'sync_caldav'=>'PLL_OWNER', 'secondary_email'=>'', 'default_search_operator'=>'PLL_CONTAINS', 'super_user'=>1, 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'id'=>1];
4
+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', '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', 'othereventduration'=>'[{"activitytype":"Call","duration":"60"},{"activitytype":"Meeting","duration":"60"},{"activitytype":"Task","duration":"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', 'sync_carddav'=>'PLL_OWNER', 'sync_caldav'=>'PLL_OWNER', 'sync_carddav_default_country'=>'', 'default_search_module'=>'', 'default_search_override'=>'', 'primary_phone_extra'=>'', 'primary_phone'=>'', 'mail_scanner_actions'=>'', 'mail_scanner_fields'=>'', 'secondary_email'=>'', 'default_search_operator'=>'PLL_CONTAINS', 'super_user'=>1, 'calendar_all_users_by_default'=>'', '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], 'leadersByGroup'=>[], 'leader'=>[], 'parent_roles'=>['H1'], 'parent_role_seq'=>'H1::H2', 'roleName'=>'Board of Management', 'multiCompanyId'=>1, 'multiCompanyLogo'=>['name'=>'logo_yetiforce.png', 'size'=>'3 KB', 'path'=>'public_html/layouts/resources/Logo/logo_login_page.png', 'key'=>'11111111111111111111111111111111111111111111111111'], 'multiCompanyLogoUrl'=>'file.php?module=MultiCompany&action=Logo&record=1&key=11111111111111111111111111111111111111111111111111'];
Please login to merge, or discard this patch.
modules/Vtiger/actions/Widget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
 	public function positions(App\Request $request): void
184 184
 	{
185 185
 		$currentUserId = App\User::getCurrentUserId();
186
-		if ($positionsMap = $request->getMultiDimensionArray('position', [['row' => 'Integer',	'col' => 'Integer']])) {
186
+		if ($positionsMap = $request->getMultiDimensionArray('position', [['row' => 'Integer', 'col' => 'Integer']])) {
187 187
 			foreach ($positionsMap as $id => $position) {
188 188
 				[$linkId, $widgetId] = array_pad(explode('-', $id), 2, false);
189 189
 				if ($widgetId) {
Please login to merge, or discard this patch.
modules/Settings/PDF/models/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
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 = [];
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.
app/Integrations/Dav/Calendar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 		$separator = '-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-';
286 286
 		$value = (string) $this->vcomponent->{$davName};
287 287
 		if (false !== strpos($value, $separator)) {
288
-			[$html,$text] = explode($separator, $value, 2);
288
+			[$html, $text] = explode($separator, $value, 2);
289 289
 			$value = trim(strip_tags($html)) . "\n" . \trim(\str_replace($separator, '', $text));
290 290
 		} else {
291 291
 			$value = trim(\str_replace('\n', PHP_EOL, $value));
@@ -448,14 +448,14 @@  discard block
 block discarded – undo
448 448
 			$currentUser = \App\User::getCurrentUserModel();
449 449
 			$userTimeZone = new \DateTimeZone($currentUser->getDetail('time_zone'));
450 450
 			$sysTimeZone = new \DateTimeZone(\App\Fields\DateTime::getTimeZone());
451
-			[$hour , $minute] = explode(':', $currentUser->getDetail('start_hour'));
451
+			[$hour, $minute] = explode(':', $currentUser->getDetail('start_hour'));
452 452
 			$date = new \DateTime('now', $userTimeZone);
453 453
 			$date->setTime($hour, $minute);
454 454
 			$date->setTimezone($sysTimeZone);
455 455
 			$timeStart = $date->format('H:i:s');
456 456
 
457 457
 			$date->setTimezone($userTimeZone);
458
-			[$hour , $minute] = explode(':', $currentUser->getDetail('end_hour'));
458
+			[$hour, $minute] = explode(':', $currentUser->getDetail('end_hour'));
459 459
 			$date->setTime($hour, $minute);
460 460
 			$date->setTimezone($sysTimeZone);
461 461
 			$timeEnd = $date->format('H:i:s');
Please login to merge, or discard this patch.
app/TextParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 			$twig = new \Twig\Environment(new \Twig\Loader\ArrayLoader(['index' => $content]));
466 466
 			$sandbox = new \Twig\Extension\SandboxExtension(\App\Extension\Twig\SecurityPolicy::getPolicy(), true);
467 467
 			$twig->addExtension($sandbox);
468
-			$twig->addFunction(new \Twig\TwigFunction('YFParser', function ($text) {
468
+			$twig->addFunction(new \Twig\TwigFunction('YFParser', function($text) {
469 469
 				$value = '';
470 470
 				preg_match(static::VARIABLE_REGEX, $text, $matches);
471 471
 				if ($matches) {
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
 			}));
477 477
 			$content = $twig->render('index');
478 478
 		}
479
-		return preg_replace_callback(static::VARIABLE_REGEX, function ($matches) {
479
+		return preg_replace_callback(static::VARIABLE_REGEX, function($matches) {
480 480
 			[, $function, $params] = array_pad($matches, 3, '');
481 481
 			return \in_array($function, static::$baseFunctions) ? $this->{$function}($params) : '';
482 482
 		}, $content);
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
 		if (isset($this->language)) {
493 493
 			Language::setTemporaryLanguage($this->language);
494 494
 		}
495
-		$this->content = preg_replace_callback('/\$\(translate : ([,"\+\%\.\=\-\[\]\&\w\s\|]+)\)\$/u', function ($matches) {
495
+		$this->content = preg_replace_callback('/\$\(translate : ([,"\+\%\.\=\-\[\]\&\w\s\|]+)\)\$/u', function($matches) {
496 496
 			[, $params] = array_pad($matches, 2, '');
497 497
 			return $this->translate($params);
498 498
 		}, $this->content);
@@ -1852,7 +1852,7 @@  discard block
 block discarded – undo
1852 1852
 			$width = isset($config['width']) ? preg_replace('/[^[:alnum:]]/', '', explode(',', $config['width'])) : [];
1853 1853
 			foreach ($config['columns'] as $key => $name) {
1854 1854
 				if (false !== strpos($name, '||')) {
1855
-					[$title,$value] = explode('||', $name, 2);
1855
+					[$title, $value] = explode('||', $name, 2);
1856 1856
 					if ('(' === $title[0] && ')' === substr($title, -1)) {
1857 1857
 						$title = $this->parseVariable("\${$title}\$");
1858 1858
 					}
Please login to merge, or discard this patch.