Completed
Push — develop ( 3d5c62...ff34f8 )
by Daniel
06:38
created
services/form/builder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 		foreach ($fields_data as $field => $value)
141 141
 		{
142 142
 			$value = is_array($value) ? join("\n", $value) : $value;
143
-			$message .= '[tag=' . $field . ']' . $value . '[/tag]';
143
+			$message .= '[tag='.$field.']'.$value.'[/tag]';
144 144
 		}
145 145
 
146 146
 		return $message;
@@ -192,13 +192,13 @@  discard block
 block discarded – undo
192 192
 		$text = '';
193 193
 		if ($entity = $this->types->get_type($content_type))
194 194
 		{
195
-			$get_tags = 'get_' . $view . '_tags';
196
-			$get_template = 'get_' . $view . '_tpl';
195
+			$get_tags = 'get_'.$view.'_tags';
196
+			$get_template = 'get_'.$view.'_tpl';
197 197
 
198 198
 			$this->fields->prepare_to_show($entity, array($post_data['topic_id']), $entity->$get_tags(), $entity->$get_template(), $view);
199 199
 			$content = $this->fields->build_content(array_change_key_case($post_data, CASE_UPPER));
200 200
 
201
-			$text =  $content['CUSTOM_DISPLAY'] ?: join('', $content['FIELDS']['all']);
201
+			$text = $content['CUSTOM_DISPLAY'] ?: join('', $content['FIELDS']['all']);
202 202
 		}
203 203
 		return $text;
204 204
 	}
Please login to merge, or discard this patch.
services/actions/topic/index.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 */
91 91
 	public function execute($u_action, $mode = '')
92 92
 	{
93
-		include($this->phpbb_root_path . 'includes/functions_display.' . $this->php_ext);
93
+		include($this->phpbb_root_path.'includes/functions_display.'.$this->php_ext);
94 94
 
95 95
 		$this->language->add_lang('viewforum');
96 96
 		$this->language->add_lang('manager', 'blitze/content');
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
 			$filter_topic_status = $this->apply_status_filter($sql_where_array);
107 107
 			$filter_content_type = $this->apply_content_type_filter();
108 108
 
109
-			$callable = 'init_' . $mode . '_mode';
110
-			$this->base_url = $u_action . (sizeof($this->params) ? '&' : '');
109
+			$callable = 'init_'.$mode.'_mode';
110
+			$this->base_url = $u_action.(sizeof($this->params) ? '&' : '');
111 111
 			$this->$callable($content_types, $sql_where_array);
112 112
 
113 113
 			$this->forum->query()
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 		$topic_tracking_info = $this->forum->get_topic_tracking_info();
139 139
 print_data($topics_data);
140 140
 		$topics_data = array_values($topics_data);
141
-		$base_url = $u_action . http_build_query($this->params);
141
+		$base_url = $u_action.http_build_query($this->params);
142 142
 
143 143
 		for ($i = 0, $size = sizeof($topics_data); $i < $size; $i++)
144 144
 		{
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 	{
173 173
 		return array(
174 174
 			'ATTACH_ICON_IMG'	=> $this->get_attachment_icon($row),
175
-			'U_REVIEW_TOPIC'	=> $u_action . "&amp;do=view&amp;type=$content_type&amp;t=" . $row['topic_id'],
175
+			'U_REVIEW_TOPIC'	=> $u_action."&amp;do=view&amp;type=$content_type&amp;t=".$row['topic_id'],
176 176
 			'U_DELETE'			=> $this->get_delete_url($mode, $u_action, $row, $post_row),
177 177
 		);
178 178
 	}
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 			'S_CAN_MAKE_NORMAL'		=> ($s_can_make_sticky || $s_can_make_announce),
199 199
 			'S_CAN_MAKE_STICKY'		=> $s_can_make_sticky,
200 200
 			'S_CAN_MAKE_ANNOUNCE'	=> $s_can_make_announce,
201
-			'U_MCP_ACTION'			=> $this->base_url . '&amp;do=moderate&amp;redirect=' . $this->get_redirect_url($this->base_url),
201
+			'U_MCP_ACTION'			=> $this->base_url.'&amp;do=moderate&amp;redirect='.$this->get_redirect_url($this->base_url),
202 202
 		));
203 203
 	}
204 204
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 */
209 209
 	protected function init_ucp_mode(array $content_types, array &$sql_where_array)
210 210
 	{
211
-		$sql_where_array[] =  't.topic_poster = ' . (int) $this->user->data['user_id'];
211
+		$sql_where_array[] = 't.topic_poster = '.(int) $this->user->data['user_id'];
212 212
 
213 213
 		// list all content types that the user can post in
214 214
 		$postable_forums = array_intersect_key($this->content_forums, $this->auth->acl_getf('f_post', true));
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 			$this->template->assign_block_vars('postable', array(
221 221
 				'TYPE'		=> $entity->get_content_langname(),
222 222
 				'COLOUR'	=> $entity->get_content_colour(),
223
-				'U_POST'	=> append_sid("{$this->phpbb_root_path}posting." . $this->php_ext, 'mode=post&amp;f=' . $entity->get_forum_id()),
223
+				'U_POST'	=> append_sid("{$this->phpbb_root_path}posting.".$this->php_ext, 'mode=post&amp;f='.$entity->get_forum_id()),
224 224
 			));
225 225
 		}
226 226
 	}
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 			'CONTENT_TYPE'			=> $entity->get_content_langname(),
239 239
 			'CONTENT_TYPE_COLOR'	=> $entity->get_content_colour(),
240 240
 			'S_COMMENTS'			=> $entity->get_allow_comments(),
241
-			'U_CONTENT_TYPE'		=> $base_url . "&amp;type=$type",
241
+			'U_CONTENT_TYPE'		=> $base_url."&amp;type=$type",
242 242
 		);
243 243
 	}
244 244
 
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
 		}
289 289
 
290 290
 		return array(
291
-			'TOPIC_STATUS'		=> $this->language->lang('TOPIC_' . strtoupper($topic_status)),
292
-			'U_TOPIC_STATUS'	=> $base_url . "&amp;status=$topic_status",
291
+			'TOPIC_STATUS'		=> $this->language->lang('TOPIC_'.strtoupper($topic_status)),
292
+			'U_TOPIC_STATUS'	=> $base_url."&amp;status=$topic_status",
293 293
 		);
294 294
 	}
295 295
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 		if ($mode === 'mcp')
317 317
 		{
318 318
 			$u_mcp_queue = $this->get_mcp_queue_url($topic_unapproved, $posts_unapproved, $topic_id);
319
-			$u_mcp_queue = (!$u_mcp_queue && $topic_deleted) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=queue&amp;mode=deleted_topics&amp;t=' . $topic_id, true, $this->user->session_id) : $u_mcp_queue;
319
+			$u_mcp_queue = (!$u_mcp_queue && $topic_deleted) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=queue&amp;mode=deleted_topics&amp;t='.$topic_id, true, $this->user->session_id) : $u_mcp_queue;
320 320
 		}
321 321
 
322 322
 		return array(
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 	 */
333 333
 	protected function get_mcp_queue_url($topic_unapproved, $posts_unapproved, $topic_id)
334 334
 	{
335
-		return ($topic_unapproved || $posts_unapproved) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=queue&amp;mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . "&amp;t=$topic_id", true, $this->user->session_id) : '';
335
+		return ($topic_unapproved || $posts_unapproved) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=queue&amp;mode='.(($topic_unapproved) ? 'approve_details' : 'unapproved_posts')."&amp;t=$topic_id", true, $this->user->session_id) : '';
336 336
 	}
337 337
 
338 338
 	/**
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
 			if ($mode === 'mcp')
350 350
 			{
351 351
 				$redirect_url = $this->get_redirect_url($u_action);
352
-				$u_delete = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'quickmod=1&amp;action=delete_topic&amp;t=' . $row['topic_id'] . '&amp;redirect=' . $redirect_url, true, $this->user->session_id);
352
+				$u_delete = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'quickmod=1&amp;action=delete_topic&amp;t='.$row['topic_id'].'&amp;redirect='.$redirect_url, true, $this->user->session_id);
353 353
 			}
354 354
 		}
355 355
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 	 */
363 363
 	protected function get_redirect_url($base_url)
364 364
 	{
365
-		$base_url .= (sizeof($this->params)) ? '&' . http_build_query($this->params) : '';
365
+		$base_url .= (sizeof($this->params)) ? '&'.http_build_query($this->params) : '';
366 366
 		return urlencode(str_replace('&amp;', '&', $base_url));
367 367
 	}
368 368
 
Please login to merge, or discard this patch.