Passed
Pull Request — development (#3442)
by Elk
12:13 queued 06:23
created
sources/ElkArte/Controller/ProfileInfo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
 				'board' => array(
561 561
 					'name' => $row['bname'],
562 562
 					'id' => $row['id_board'],
563
-					'link' => '<a href="' . getUrl('board', ['board' => $row['id_board'], 'start' => 0, 'name' => $row['bname']]) .'">' . $row['bname'] . '</a>',
563
+					'link' => '<a href="' . getUrl('board', ['board' => $row['id_board'], 'start' => 0, 'name' => $row['bname']]) . '">' . $row['bname'] . '</a>',
564 564
 				),
565 565
 				'topic' => array(
566 566
 					'id' => $row['id_topic'],
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 						'function' => function ($rowData) {
759 759
 							if ($rowData['is_image'] && !empty($rowData['id_thumb']))
760 760
 							{
761
-								return '<img src="' . getUrl('action', ['action' => 'dlattach', 'attach' => $rowData['id_thumb'] . ';image']) .'" />';
761
+								return '<img src="' . getUrl('action', ['action' => 'dlattach', 'attach' => $rowData['id_thumb'] . ';image']) . '" />';
762 762
 							}
763 763
 
764 764
 							return '<img src="' . getUrl('action', ['action' => 'dlattach', 'attach' => $rowData['id'] . ';thumb']) . '" />';
@@ -1401,7 +1401,7 @@  discard block
 block discarded – undo
1401 1401
 						'body' => $preview,
1402 1402
 						'board' => array(
1403 1403
 							'name' => $row['bname'],
1404
-							'link' => '<a href="' . getUrl('board', ['board' => $row['id_board'], 'start' => 0, 'name' => $row['bname']]). '">' . $row['bname'] . '</a>'
1404
+							'link' => '<a href="' . getUrl('board', ['board' => $row['id_board'], 'start' => 0, 'name' => $row['bname']]) . '">' . $row['bname'] . '</a>'
1405 1405
 						),
1406 1406
 						'subject' => $row['subject'],
1407 1407
 						'short_subject' => $short_subject,
Please login to merge, or discard this patch.
sources/ElkArte/Controller/MoveTopic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -421,7 +421,7 @@
 block discarded – undo
421 421
 
422 422
 			// Add a URL onto the message.
423 423
 			$reason = strtr($reason, array(
424
-				$txt['movetopic_auto_board'] => '[url=' . getUrl('board', ['board' => $this->_toboard, 'start' => 0, 'name' => $this->_board_info['name']]) .']' . $this->_board_info['name'] . '[/url]',
424
+				$txt['movetopic_auto_board'] => '[url=' . getUrl('board', ['board' => $this->_toboard, 'start' => 0, 'name' => $this->_board_info['name']]) . ']' . $this->_board_info['name'] . '[/url]',
425 425
 				$txt['movetopic_auto_topic'] => '[iurl=' . getUrl('topic', ['topic' => $this->_topic, 'start' => 0, 'subject' => $this->_board_info['subject_new'] ?? $this->_board_info['subject']]) . ']' . ($this->_board_info['subject_new'] ?? $this->_board_info['subject']) . '[/iurl]'
426 426
 			));
427 427
 
Please login to merge, or discard this patch.
sources/ElkArte/Controller/PostModeration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
 		$context['total_unapproved_topics'] = $mod_count['topics'];
244 244
 		$context['total_unapproved_posts'] = $mod_count['posts'];
245 245
 		$baseUrl = getUrl('action', ['action' => 'moderate', 'area' => 'postmod', 'sa' => $context['current_view']] + (isset($this->_brd) ? ['brd' => $this->_brd] : []));
246
-		$context['page_index'] = constructPageIndex($baseUrl,$this->_req->query->start,$context['current_view'] === 'topics' ? $context['total_unapproved_topics'] : $context['total_unapproved_posts'], 10);
246
+		$context['page_index'] = constructPageIndex($baseUrl, $this->_req->query->start, $context['current_view'] === 'topics' ? $context['total_unapproved_topics'] : $context['total_unapproved_posts'], 10);
247 247
 		$context['start'] = $this->_req->query->start;
248 248
 
249 249
 		// We have enough to make some pretty tabs!
Please login to merge, or discard this patch.
sources/ElkArte/AdminController/PackageServers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
 			$context['package']['install']['link'] = '';
679 679
 		}
680 680
 
681
-		$context['package']['list_files']['link'] = '<a class="linkbutton" href="' .getUrl('admin', ['action' => 'admin', 'area' => 'packages', 'sa' => 'list', 'package' => $context['package']['filename']]) . '">' . $txt['list_files'] . '</a>';
681
+		$context['package']['list_files']['link'] = '<a class="linkbutton" href="' . getUrl('admin', ['action' => 'admin', 'area' => 'packages', 'sa' => 'list', 'package' => $context['package']['filename']]) . '">' . $txt['list_files'] . '</a>';
682 682
 
683 683
 		// Free a little bit of memory...
684 684
 		unset($context['package']['xml']);
@@ -790,7 +790,7 @@  discard block
 block discarded – undo
790 790
 		}
791 791
 		elseif ($context['package']['type'] === 'avatar')
792 792
 		{
793
-			$context['package']['install']['link'] = '<a class="linkbutton" href="' .getUrl('admin', ['action' => 'admin', 'area' => 'packages', 'sa' => 'install', 'package' => $context['package']['filename']]) . '">' . $txt['use_avatars'] . '</a>';
793
+			$context['package']['install']['link'] = '<a class="linkbutton" href="' . getUrl('admin', ['action' => 'admin', 'area' => 'packages', 'sa' => 'install', 'package' => $context['package']['filename']]) . '">' . $txt['use_avatars'] . '</a>';
794 794
 		}
795 795
 		elseif ($context['package']['type'] === 'language')
796 796
 		{
Please login to merge, or discard this patch.
sources/ElkArte/AdminController/ManageErrors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
 		$context['sort_direction'] = isset($this->_req->query->desc) ? 'down' : 'up';
169 169
 
170 170
 		// Set the page listing up.
171
-		$context['page_index'] = constructPageIndex(getUrl('admin', ['action' => 'admin' , 'area' => 'logs' , 'sa' => 'errorlog' . ($context['sort_direction'] == 'down' ? ';desc' : '')] + (isset($filter['href']) ? $filter['href'] : [])), $this->_req->query->start, $num_errors, $modSettings['defaultMaxMessages']);
171
+		$context['page_index'] = constructPageIndex(getUrl('admin', ['action' => 'admin', 'area' => 'logs', 'sa' => 'errorlog' . ($context['sort_direction'] == 'down' ? ';desc' : '')] + (isset($filter['href']) ? $filter['href'] : [])), $this->_req->query->start, $num_errors, $modSettings['defaultMaxMessages']);
172 172
 		$context['start'] = $this->_req->query->start;
173 173
 		$context['errors'] = array();
174 174
 
Please login to merge, or discard this patch.
sources/ElkArte/AdminController/ManageScheduledTasks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -381,7 +381,7 @@
 block discarded – undo
381 381
 			'items_per_page' => 30,
382 382
 			'title' => $txt['scheduled_log'],
383 383
 			'no_items_label' => $txt['scheduled_log_empty'],
384
-			'base_href' => $context['admin_area'] === 'scheduledtasks' ? getUrl('admin', ['action' => 'admin', 'area' => 'scheduledtasks', 'sa' => 'tasklog']) :getUrl('admin', ['action' => 'admin', 'area' => 'logs', 'sa' => 'tasklog']),
384
+			'base_href' => $context['admin_area'] === 'scheduledtasks' ? getUrl('admin', ['action' => 'admin', 'area' => 'scheduledtasks', 'sa' => 'tasklog']) : getUrl('admin', ['action' => 'admin', 'area' => 'logs', 'sa' => 'tasklog']),
385 385
 			'default_sort_col' => 'date',
386 386
 			'get_items' => array(
387 387
 				'function' => function ($start, $items_per_page, $sort) {
Please login to merge, or discard this patch.
sources/ElkArte/AdminController/ManageMembers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -537,7 +537,7 @@
 block discarded – undo
537 537
 					),
538 538
 					'data' => array(
539 539
 						'sprintf' => array(
540
-							'format' => '<a href="' . getUrl('action', ['action' => 'trackip', 'searchip' => '%1$s']) .'">%1$s</a>',
540
+							'format' => '<a href="' . getUrl('action', ['action' => 'trackip', 'searchip' => '%1$s']) . '">%1$s</a>',
541 541
 							'params' => array(
542 542
 								'member_ip' => false,
543 543
 							),
Please login to merge, or discard this patch.
sources/ElkArte/AdminController/ManagePermissions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@
 block discarded – undo
313 313
 
314 314
 							if ($rowData['id_group'] != 1)
315 315
 							{
316
-								return '<a href="' . getUrl('action', ['action' => 'admin', 'area' => 'permissions', 'sa' => 'modify', 'group' => $rowData['id_group']] +  (isset($this->_pid) ? ['pid' => $this->_pid] : [])) . '">' . $txt['membergroups_modify'] . '</a>';
316
+								return '<a href="' . getUrl('action', ['action' => 'admin', 'area' => 'permissions', 'sa' => 'modify', 'group' => $rowData['id_group']] + (isset($this->_pid) ? ['pid' => $this->_pid] : [])) . '">' . $txt['membergroups_modify'] . '</a>';
317 317
 							}
318 318
 
319 319
 							return '';
Please login to merge, or discard this patch.
sources/ElkArte/AdminController/ManageSmileys.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1503,7 +1503,7 @@
 block discarded – undo
1503 1503
 					),
1504 1504
 					'data' => array(
1505 1505
 						'sprintf' => array(
1506
-							'format' => '<a href="' .getUrl('admin', ['action' => 'admin', 'area' => 'smileys', 'sa' => 'editicon', 'icon' => '%1$s']) .'">' . $txt['smileys_modify'] . '</a>',
1506
+							'format' => '<a href="' . getUrl('admin', ['action' => 'admin', 'area' => 'smileys', 'sa' => 'editicon', 'icon' => '%1$s']) . '">' . $txt['smileys_modify'] . '</a>',
1507 1507
 							'params' => array(
1508 1508
 								'id' => false,
1509 1509
 							),
Please login to merge, or discard this patch.