Passed
Push — develop ( cdc274...c2fe6a )
by Daniel
03:41
created
services/tree/display.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
 	 */
169 169
 	public function display_list(array $data)
170 170
 	{
171
-		$data = array_map(function($row) {
171
+		$data = array_map(function ($row) {
172 172
 			$row['num_kids'] = $this->count_descendants($row);
173 173
 			return array_change_key_case($row, CASE_UPPER);
174 174
 		}, $data);
Please login to merge, or discard this patch.
services/navbar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 	 */
126 126
 	protected function save_locations(array $locations)
127 127
 	{
128
-		$locations =  array_merge($this->get_locations(), $locations);
128
+		$locations = array_merge($this->get_locations(), $locations);
129 129
 
130 130
 		$this->config->set('sm_navbar_locations', json_encode(array_filter($locations)));
131 131
 	}
Please login to merge, or discard this patch.
services/blocks/action/save_block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 
89 89
 		if (!empty($groups))
90 90
 		{
91
-			$permission =  array(
91
+			$permission = array(
92 92
 				'type'		=> $this->request->variable('perm_type', 0),
93 93
 				'groups'	=> $groups,
94 94
 			);
Please login to merge, or discard this patch.
blocks/recent_topics.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
 		$config['max_topics']['lang'] = 'TOPICS_PER_PAGE';
104 104
 		unset($config['template'], $config['context']);
105 105
 
106
-		$config['date_range']	= array('lang' => 'TOPICS_LOOK_BACK', 'validate' => 'int:0:255', 'type' => 'number:1:255', 'maxlength' => 3, 'default' => 60, 'append' => 'DAYS');
107
-		$config['last_post']	= array('lang' => 'SHOW_LAST_POST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'default' => true);
106
+		$config['date_range'] = array('lang' => 'TOPICS_LOOK_BACK', 'validate' => 'int:0:255', 'type' => 'number:1:255', 'maxlength' => 3, 'default' => 60, 'append' => 'DAYS');
107
+		$config['last_post'] = array('lang' => 'SHOW_LAST_POST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'default' => true);
108 108
 
109 109
 		$keys = array_keys($config);
110 110
 		$keys[array_search('max_topics', $keys)] = 'per_page';
@@ -210,21 +210,21 @@  discard block
 block discarded – undo
210 210
 		$folder_img = $folder_alt = $topic_type = '';
211 211
 		topic_status($topic_data, $replies, $unread_topic, $folder_img, $folder_alt, $topic_type);
212 212
 
213
-		$template_data['S_HAS_POLL']			= (bool) $topic_data['poll_start'];
214
-		$template_data['S_TOPIC_ICONS']			= (bool) $topic_data['enable_icons'];
215
-		$template_data['TOPIC_IMG_STYLE']		= $folder_img;
213
+		$template_data['S_HAS_POLL'] = (bool) $topic_data['poll_start'];
214
+		$template_data['S_TOPIC_ICONS'] = (bool) $topic_data['enable_icons'];
215
+		$template_data['TOPIC_IMG_STYLE'] = $folder_img;
216 216
 		$template_data['TOPIC_FOLDER_IMG']		= $this->user->img($folder_img, $folder_alt);
217
-		$template_data['TOPIC_FOLDER_IMG_ALT']	= $this->user->lang[$folder_alt];
217
+		$template_data['TOPIC_FOLDER_IMG_ALT'] = $this->user->lang[$folder_alt];
218 218
 		$template_data['TOPIC_TYPE_CLASS']		= $this->topic_type_class[$topic_data['topic_type']];
219
-		$template_data['TOPIC_TIME_RFC3339']	= gmdate(DATE_RFC3339, $topic_data['topic_time']);
219
+		$template_data['TOPIC_TIME_RFC3339'] = gmdate(DATE_RFC3339, $topic_data['topic_time']);
220 220
 		$template_data['LAST_POST_TIME_RFC3339'] = gmdate(DATE_RFC3339, $topic_data['topic_last_post_time']);
221
-		$template_data['LAST_POST_TIME']		= $this->user->format_date($topic_data['topic_last_post_time']);
221
+		$template_data['LAST_POST_TIME'] = $this->user->format_date($topic_data['topic_last_post_time']);
222 222
 
223 223
 		if (!empty($this->icons[$topic_data['icon_id']]))
224 224
 		{
225
-			$template_data['TOPIC_ICON_IMG']		= $this->icons[$topic_data['icon_id']]['img'];
226
-			$template_data['TOPIC_ICON_IMG_WIDTH']	= $this->icons[$topic_data['icon_id']]['width'];
227
-			$template_data['TOPIC_ICON_IMG_HEIGHT']	= $this->icons[$topic_data['icon_id']]['height'];
225
+			$template_data['TOPIC_ICON_IMG'] = $this->icons[$topic_data['icon_id']]['img'];
226
+			$template_data['TOPIC_ICON_IMG_WIDTH'] = $this->icons[$topic_data['icon_id']]['width'];
227
+			$template_data['TOPIC_ICON_IMG_HEIGHT'] = $this->icons[$topic_data['icon_id']]['height'];
228 228
 		}
229 229
 
230 230
 		return $template_data;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,7 @@
 block discarded – undo
82 82
 		\phpbb\request\request_interface $request,
83 83
 		\phpbb\pagination $pagination,
84 84
 		\phpbb\template\template $template
85
-	)
86
-	{
85
+	) {
87 86
 		parent::__construct($auth, $content_visibility, $translator, $user, $truncator, $date_range, $forum_data, $forum_options, $phpbb_root_path, $php_ext);
88 87
 
89 88
 		$this->cache = $cache;
Please login to merge, or discard this patch.
blocks/members.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 	{
83 83
 		if ($bdata['settings']['query_type'] === 'tenured')
84 84
 		{
85
-			$bdata['settings']['date_range']  = '';
85
+			$bdata['settings']['date_range'] = '';
86 86
 		}
87 87
 
88 88
 		$data = $this->members->get_list($bdata['settings']);
Please login to merge, or discard this patch.