Completed
Push — develop ( 8d0058...8a4838 )
by Daniel
06:26
created
services/fields.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,8 +142,7 @@
 block discarded – undo
142 142
 			$this->template->assign_vars(array_change_key_case(array_merge($tpl_data, $fields_data['all']), CASE_UPPER));
143 143
 			$this->template->set_filenames(array('content' => $this->tpl_name));
144 144
 			$tpl_data['CUSTOM_DISPLAY'] = $this->template->assign_display('content');
145
-		}
146
-		else
145
+		} else
147 146
 		{
148 147
 			$tpl_data['FIELDS'] = $fields_data;
149 148
 		}
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
 		$this->board_url = generate_board_url(true);
99 99
 		$this->display_mode = $view_mode;
100
-		$this->tpl_name	= ($custom_tpl) ? $tpl_name ?: $this->content_type . '_' . $view_mode : '';
100
+		$this->tpl_name = ($custom_tpl) ? $tpl_name ?: $this->content_type.'_'.$view_mode : '';
101 101
 		$this->view_mode = (in_array($view_mode, array('summary', 'detail'))) ? $view_mode : 'summary';
102 102
 		$this->db_fields = $db_fields;
103 103
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	 */
121 121
 	public function show($type, array $topic_data, array $post_data, array $users_cache, array &$attachments, array &$update_count, array $topic_tracking_info, array $topic_data_overwrite = array(), $mode = '')
122 122
 	{
123
-		$callable = 'get_' . $this->view_mode . '_template_data';
123
+		$callable = 'get_'.$this->view_mode.'_template_data';
124 124
 		$tpl_data = array_merge(array(
125 125
 				'TOPIC_COMMENTS'	=> $this->comments->count($topic_data),
126 126
 				'S_USER_LOGGED_IN'	=> $this->user->data['is_registered'],
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 			$topic_data_overwrite
130 130
 		);
131 131
 
132
-		$tpl_data['PERMA_LINK'] = $this->board_url . parse_url($tpl_data['TOPIC_URL'], PHP_URL_PATH);
132
+		$tpl_data['PERMA_LINK'] = $this->board_url.parse_url($tpl_data['TOPIC_URL'], PHP_URL_PATH);
133 133
 
134 134
 		return $this->build_content($tpl_data);
135 135
 	}
@@ -207,21 +207,21 @@  discard block
 block discarded – undo
207 207
 			$field_data['field_props'] = array_replace_recursive($this->form_fields[$field_type]->get_default_props(), $field_data['field_props']);
208 208
 			$field_data['field_value'] = &$field_values[$field_name];
209 209
 
210
-			$field_contents	= $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode);
210
+			$field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode);
211 211
 
212 212
 			// this essentially hides other fields if the field returns an array
213 213
 			if (is_array($field_contents))
214 214
 			{
215 215
 				$display_data['all'] = $field_contents;
216
-				$display_data[$field_data['field_' . $this->view_mode . '_show']] = $field_contents;
216
+				$display_data[$field_data['field_'.$this->view_mode.'_show']] = $field_contents;
217 217
 				break;
218 218
 			}
219 219
 
220 220
 			if (!empty($field_contents))
221 221
 			{
222
-				$field = $this->get_field_label($field_data['field_' . $this->view_mode . '_ldisp'], $field_data['field_label']) . $field_contents;
222
+				$field = $this->get_field_label($field_data['field_'.$this->view_mode.'_ldisp'], $field_data['field_label']).$field_contents;
223 223
 				$display_data['all'][$field_name] = $field;
224
-				$display_data[$field_data['field_' . $this->view_mode . '_show']][$field_name] = $field;
224
+				$display_data[$field_data['field_'.$this->view_mode.'_show']][$field_name] = $field;
225 225
 			}
226 226
 		}
227 227
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 		$html = '';
239 239
 		if ($label_type)
240 240
 		{
241
-			$html = '<div class="field-label ' . $this->label[$label_type] . '">' . $label_text . $this->language->lang('COLON') . ' </div>';
241
+			$html = '<div class="field-label '.$this->label[$label_type].'">'.$label_text.$this->language->lang('COLON').' </div>';
242 242
 		}
243 243
 		return $html;
244 244
 	}
Please login to merge, or discard this patch.
services/helper.php 3 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	public function get_edit_url(array $post_data, array $topic_data, $cp_mode = '')
54 54
 	{
55 55
 		$cp_param = $this->get_cp_param($post_data, $topic_data, $cp_mode);
56
-		return ($this->edit_allowed($post_data, $topic_data)) ? append_sid("{$this->phpbb_root_path}posting.$this->php_ext", "mode=edit&amp;f={$topic_data['forum_id']}&amp;p={$post_data['post_id']}" . $cp_param) : '';
56
+		return ($this->edit_allowed($post_data, $topic_data)) ? append_sid("{$this->phpbb_root_path}posting.$this->php_ext", "mode=edit&amp;f={$topic_data['forum_id']}&amp;p={$post_data['post_id']}".$cp_param) : '';
57 57
 	}
58 58
 
59 59
 	/**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	public function get_delete_url(array $post_data, array $topic_data, $cp_mode = '')
66 66
 	{
67 67
 		$cp_param = $this->get_cp_param($post_data, $topic_data, $cp_mode);
68
-		return ($this->delete_allowed($post_data, $topic_data)) ? append_sid("{$this->phpbb_root_path}posting.$this->php_ext", 'mode=' . (($this->softdelete_allowed($post_data)) ? 'soft_delete' : 'delete') . "&amp;f={$post_data['forum_id']}&amp;p={$post_data['post_id']}" . $cp_param) : '';
68
+		return ($this->delete_allowed($post_data, $topic_data)) ? append_sid("{$this->phpbb_root_path}posting.$this->php_ext", 'mode='.(($this->softdelete_allowed($post_data)) ? 'soft_delete' : 'delete')."&amp;f={$post_data['forum_id']}&amp;p={$post_data['post_id']}".$cp_param) : '';
69 69
 	}
70 70
 
71 71
 	/**
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	 */
94 94
 	public function get_print_topic_url(array $topic_data)
95 95
 	{
96
-		return ($this->auth->acl_get('f_print', $topic_data['forum_id'])) ? $topic_data['topic_url'] . '?view=print' : '';
96
+		return ($this->auth->acl_get('f_print', $topic_data['forum_id'])) ? $topic_data['topic_url'].'?view=print' : '';
97 97
 	}
98 98
 
99 99
 	/**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	public function get_email_topic_url(array $topic_data)
104 104
 	{
105
-		return ($this->auth->acl_get('f_email', $topic_data['forum_id']) && $this->config['email_enable']) ? append_sid("{$this->phpbb_root_path}memberlist.{$this->php_ext}", 'mode=email&amp;t=' . $topic_data['topic_id']) : '';
105
+		return ($this->auth->acl_get('f_email', $topic_data['forum_id']) && $this->config['email_enable']) ? append_sid("{$this->phpbb_root_path}memberlist.{$this->php_ext}", 'mode=email&amp;t='.$topic_data['topic_id']) : '';
106 106
 	}
107 107
 
108 108
 	/**
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 	 */
113 113
 	public function get_search_users_posts_url($forum_id, $username)
114 114
 	{
115
-		return append_sid("{$this->phpbb_root_path}search.{$this->php_ext}", "author={$username}&amp;" . urlencode('fid[]') . "=$forum_id&amp;sc=0&amp;sf=titleonly&amp;sr=topics");
115
+		return append_sid("{$this->phpbb_root_path}search.{$this->php_ext}", "author={$username}&amp;".urlencode('fid[]')."=$forum_id&amp;sc=0&amp;sf=titleonly&amp;sr=topics");
116 116
 	}
117 117
 
118 118
 	/**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	public function get_info_url(array $post_data)
123 123
 	{
124 124
 		$forum_id = $post_data['forum_id'];
125
-		return ($this->auth->acl_get('m_info', $forum_id)) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", "i=main&amp;mode=post_details&amp;f=$forum_id&amp;p=" . $post_data['post_id'], true, $this->user->session_id) : '';
125
+		return ($this->auth->acl_get('m_info', $forum_id)) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", "i=main&amp;mode=post_details&amp;f=$forum_id&amp;p=".$post_data['post_id'], true, $this->user->session_id) : '';
126 126
 	}
127 127
 
128 128
 	/**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 */
133 133
 	public function get_approve_url(array $post_data, $viewtopic_url)
134 134
 	{
135
-		return append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", "i=queue&amp;p={$post_data['post_id']}&amp;f={$post_data['forum_id']}&amp;redirect=" . urlencode(str_replace('&amp;', '&', $viewtopic_url . '&amp;p=' . $post_data['post_id'] . '#p' . $post_data['post_id'])));
135
+		return append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", "i=queue&amp;p={$post_data['post_id']}&amp;f={$post_data['forum_id']}&amp;redirect=".urlencode(str_replace('&amp;', '&', $viewtopic_url.'&amp;p='.$post_data['post_id'].'#p'.$post_data['post_id'])));
136 136
 	}
137 137
 
138 138
 	/**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 */
162 162
 	public function get_mcp_report_url(array $post_data)
163 163
 	{
164
-		return ($this->auth->acl_get('m_report', $post_data['forum_id'])) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=reports&amp;mode=report_details&amp;f=' . $post_data['forum_id'] . '&amp;p=' . $post_data['post_id'], true, $this->user->session_id) : '';
164
+		return ($this->auth->acl_get('m_report', $post_data['forum_id'])) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=reports&amp;mode=report_details&amp;f='.$post_data['forum_id'].'&amp;p='.$post_data['post_id'], true, $this->user->session_id) : '';
165 165
 	}
166 166
 
167 167
 	/**
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	 */
172 172
 	public function get_mcp_restore_url(array $post_data, array $topic_data)
173 173
 	{
174
-		return ($this->auth->acl_get('m_approve', $post_data['forum_id'])) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=queue&amp;mode=' . (($topic_data['topic_visibility'] != ITEM_DELETED) ? 'deleted_posts' : 'deleted_topics') . '&amp;f=' . $post_data['forum_id'] . '&amp;p=' . $post_data['post_id'], true, $this->user->session_id) : '';
174
+		return ($this->auth->acl_get('m_approve', $post_data['forum_id'])) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=queue&amp;mode='.(($topic_data['topic_visibility'] != ITEM_DELETED) ? 'deleted_posts' : 'deleted_topics').'&amp;f='.$post_data['forum_id'].'&amp;p='.$post_data['post_id'], true, $this->user->session_id) : '';
175 175
 	}
176 176
 
177 177
 	/**
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 	 */
181 181
 	public function get_notes_url(array $post_data)
182 182
 	{
183
-		return ($this->auth->acl_getf_global('m_')) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=notes&amp;mode=user_notes&amp;u=' . $post_data['poster_id'], true, $this->user->session_id) : '';
183
+		return ($this->auth->acl_getf_global('m_')) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=notes&amp;mode=user_notes&amp;u='.$post_data['poster_id'], true, $this->user->session_id) : '';
184 184
 	}
185 185
 
186 186
 	/**
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	 */
190 190
 	public function get_warning_url(array $post_data)
191 191
 	{
192
-		return ($this->auth->acl_get('m_warn') && !$this->user_is_poster($post_data['poster_id']) && $post_data['poster_id'] != ANONYMOUS) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=warn&amp;mode=warn_post&amp;f=' . $post_data['forum_id'] . '&amp;p=' . $post_data['post_id'], true, $this->user->session_id) : '';
192
+		return ($this->auth->acl_get('m_warn') && !$this->user_is_poster($post_data['poster_id']) && $post_data['poster_id'] != ANONYMOUS) ? append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=warn&amp;mode=warn_post&amp;f='.$post_data['forum_id'].'&amp;p='.$post_data['post_id'], true, $this->user->session_id) : '';
193 193
 	}
194 194
 
195 195
 	/**
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 		$cp_param = '';
243 243
 		if ($topic_data['topic_first_post_id'] == $post_data['post_id'])
244 244
 		{
245
-			$cp_param = '&amp;cp=' . ((!$cp_mode) ? (($this->user_is_poster($post_data['poster_id'])) ? 'ucp' : 'mcp') : $cp_mode);
245
+			$cp_param = '&amp;cp='.((!$cp_mode) ? (($this->user_is_poster($post_data['poster_id'])) ? 'ucp' : 'mcp') : $cp_mode);
246 246
 		}
247 247
 		return $cp_param;
248 248
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -222,8 +222,7 @@
 block discarded – undo
222 222
 			if ($topic_id)
223 223
 			{
224 224
 				$u_mcp = append_sid("{$this->phpbb_root_path}mcp.{$this->php_ext}", "i=mcp_main&amp;mode=topic_view&amp;f=$forum_id&amp;t=$topic_id", true, $this->user->session_id);
225
-			}
226
-			else
225
+			} else
227 226
 			{
228 227
 				$u_mcp = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'i=-blitze-content-mcp-content_module&amp;mode=content', true, $this->user->session_id);
229 228
 			}
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 * @param \phpbb\user			$user				User object
26 26
 	 * @param string				$phpbb_root_path	Path to the phpbb includes directory.
27 27
 	 * @param string				$php_ext			php file extension
28
-	*/
28
+	 */
29 29
 	public function __construct(\phpbb\auth\auth $auth, \phpbb\config\db $config, \phpbb\user $user, $phpbb_root_path, $php_ext)
30 30
 	{
31 31
 		parent::__construct($auth, $config, $user);
Please login to merge, or discard this patch.
services/actions/topic/view.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,14 +94,14 @@
 block discarded – undo
94 94
 	protected function get_data_overwrite($mode, $u_action, $type, $topic_id)
95 95
 	{
96 96
 		$overwrite = array(
97
-			'TOPIC_URL'	=> $u_action . '&amp;do=view&amp;type=' . $type . '&amp;t=' . $topic_id,
97
+			'TOPIC_URL'	=> $u_action.'&amp;do=view&amp;type='.$type.'&amp;t='.$topic_id,
98 98
 			'U_INFO'	=> '',
99 99
 		);
100 100
 
101 101
 		if ($mode === 'mcp')
102 102
 		{
103 103
 			$redirect_url = urlencode(str_replace('&amp;', '&', $u_action));
104
-			$overwrite['U_DELETE'] = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'quickmod=1&amp;action=delete_topic&amp;t=' . $topic_id . '&amp;redirect=' . $redirect_url);
104
+			$overwrite['U_DELETE'] = append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", 'quickmod=1&amp;action=delete_topic&amp;t='.$topic_id.'&amp;redirect='.$redirect_url);
105 105
 		}
106 106
 
107 107
 		return $overwrite;
Please login to merge, or discard this patch.
event/bbcodes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 		// Let's create the new BBCode
43 43
 		$configurator->BBCodes->addCustom(
44 44
 			'[pagebreak title={SIMPLETEXT;optional;postFilter=ucwords}]',
45
-			'<p><!-- pagebreak --></p>' .
45
+			'<p><!-- pagebreak --></p>'.
46 46
 			'<xsl:if test="@title"><h4>{SIMPLETEXT}</h4><br /></xsl:if>'
47 47
 		);
48 48
 	}
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 		// smcf = sitemaker content field (hopefully unique enough)
65 65
 		$configurator->BBCodes->addCustom(
66 66
 			'[smcf={IDENTIFIER}]{TEXT}[/smcf]',
67
-			"<!-- begin field -->\n" .
68
-			"<div data-field=\"{IDENTIFIER}\">{TEXT}</div><br />\n" .
67
+			"<!-- begin field -->\n".
68
+			"<div data-field=\"{IDENTIFIER}\">{TEXT}</div><br />\n".
69 69
 			"<!-- end field -->\n"
70 70
 		);
71 71
 	}
Please login to merge, or discard this patch.
services/views/driver/portal.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,7 @@
 block discarded – undo
136 136
 		if (sizeof(array_keys($filters)) > 1)
137 137
 		{
138 138
 			return array('filters' => $filters);
139
-		}
140
-		else
139
+		} else
141 140
 		{
142 141
 			$key = key($filters);
143 142
 			return array(
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	 * @param \blitze\content\services\topic\blocks_factory		$topic_blocks_factory	Topic blocks factory object
32 32
 	 * @param \phpbb\config\config								$config					Config object
33 33
 	 * @param \blitze\content\services\types					$content_types			Content types object
34
-	*/
34
+	 */
35 35
 	public function __construct(\phpbb\event\dispatcher_interface $phpbb_dispatcher, \phpbb\language\language $language, \phpbb\pagination $pagination, \phpbb\template\template $template, \blitze\content\services\fields $fields, \blitze\sitemaker\services\forum\data $forum, \blitze\content\services\helper $helper, \blitze\content\services\quickmod $quickmod, \blitze\content\services\topic\blocks_factory $topic_blocks_factory, \phpbb\config\config $config, \blitze\content\services\types $content_types)
36 36
 	{
37 37
 		parent::__construct($phpbb_dispatcher, $language, $pagination, $template, $fields, $forum, $helper, $quickmod, $topic_blocks_factory);
Please login to merge, or discard this patch.
blocks/archive.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 				'count'	=> $row['total'],
80 80
 				'url'	=> $this->helper->route($info['route_name'], $info['route_params'] + array(
81 81
 					'filter_type'	=> 'archive',
82
-					'filter_value'	=> $row['year'] . '-' . $row['month'],
82
+					'filter_value'	=> $row['year'].'-'.$row['month'],
83 83
 				)),
84 84
 			);
85 85
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,8 +106,7 @@
 block discarded – undo
106 106
 				'route_name'	=> 'blitze_content_type_filter',
107 107
 				'route_params'	=> array('type' => $this->content_types->get_forum_type($settings['forum_id'])),
108 108
 			);
109
-		}
110
-		else
109
+		} else
111 110
 		{
112 111
 			return array(
113 112
 				'forum_ids'		=> array_keys($this->content_types->get_forum_types()),
Please login to merge, or discard this patch.
services/form/field/choice.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 		$this->ptemplate->assign_vars($data);
63 63
 
64 64
 		$tpl_name = ($data['field_type'] === 'select') ? 'select' : 'pickem';
65
-		return $this->ptemplate->render_view('blitze/content', "fields/$tpl_name.html", $data['field_type'] . '_field');
65
+		return $this->ptemplate->render_view('blitze/content', "fields/$tpl_name.html", $data['field_type'].'_field');
66 66
 	}
67 67
 
68 68
 	/**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			foreach ($choices as $value => $option)
86 86
 			{
87 87
 				$options[] = array(
88
-					'id'		=> 'smc-'. $name . '-' . $count,
88
+					'id'		=> 'smc-'.$name.'-'.$count,
89 89
 					'label'		=> $this->language->lang($option),
90 90
 					'selected'	=> (int) (in_array($value, $selected)),
91 91
 					'value'		=> $value,
Please login to merge, or discard this patch.
services/form/field/location.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		$this->util->add_assets(array(
85 85
 			'js'	=> array(
86 86
 				100 => '@blitze_content/assets/fields/form.min.js',
87
-				101 => '//maps.googleapis.com/maps/api/js?key=' . $this->google_api_key . '&libraries=places&callback=initMap&language=' . $this->language->get_used_language() . '" async defer charset="UTF-8',
87
+				101 => '//maps.googleapis.com/maps/api/js?key='.$this->google_api_key.'&libraries=places&callback=initMap&language='.$this->language->get_used_language().'" async defer charset="UTF-8',
88 88
 			)
89 89
 		));
90 90
 		$data['show_input'] = true;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		}
104 104
 
105 105
 		$data['field_value'] = $this->get_field_value($data);
106
-		$callable = 'display_' . $data['field_props']['disp_type'];
106
+		$callable = 'display_'.$data['field_props']['disp_type'];
107 107
 
108 108
 		return $this->$callable($data);
109 109
 	}
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 */
115 115
 	protected function display_address(array $data)
116 116
 	{
117
-		return $this->get_location_title($data['field_value']['place'], $data['field_value']['address']) . $data['field_value']['address'];
117
+		return $this->get_location_title($data['field_value']['place'], $data['field_value']['address']).$data['field_value']['address'];
118 118
 	}
119 119
 
120 120
 	/**
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
 	 */
124 124
 	protected function display_coordinates(array $data)
125 125
 	{
126
-		return $this->get_location_title($data['field_value']['place'], $data['field_value']['address']) .
127
-			$data['field_value']['latitude'] . ', ' . $data['field_value']['longitude'];
126
+		return $this->get_location_title($data['field_value']['place'], $data['field_value']['address']).
127
+			$data['field_value']['latitude'].', '.$data['field_value']['longitude'];
128 128
 	}
129 129
 
130 130
 	/**
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 		{
139 139
 			$this->util->add_assets(array(
140 140
 				'js'	=> array(
141
-					'//maps.googleapis.com/maps/api/js?key=' . $this->google_api_key . '&callback=initMap&language=' . $this->language->get_used_language() . '" async defer charset="UTF-8',
141
+					'//maps.googleapis.com/maps/api/js?key='.$this->google_api_key.'&callback=initMap&language='.$this->language->get_used_language().'" async defer charset="UTF-8',
142 142
 					'@blitze_content/assets/fields/display.min.js',
143 143
 				)
144 144
 			));
@@ -157,18 +157,18 @@  discard block
 block discarded – undo
157 157
 		$info = $data['field_value'];
158 158
 		$settings = $data['field_props'];
159 159
 		$map_types = $settings['options'] ?: ['roadmap'];
160
-		$coordinates = $info['latitude'] . ',' . $info['longitude'];
160
+		$coordinates = $info['latitude'].','.$info['longitude'];
161 161
 
162 162
 		$params = array(
163 163
 			'center'	=> $coordinates,
164 164
 			'zoom'		=> $settings['map_zoom'] ?: $info['zoom'],
165
-			'size'		=> $settings['map_width'] . 'x' . $settings['map_height'],
165
+			'size'		=> $settings['map_width'].'x'.$settings['map_height'],
166 166
 			'maptype'	=> $info['map_type'] ?: $map_types[0],
167 167
 			'markers'	=> $coordinates,
168 168
 			'key'		=> $this->google_api_key,
169 169
 		);
170 170
 
171
-		return '<img src="https://maps.googleapis.com/maps/api/staticmap?' . http_build_query($params) . '" alt="' . $info['address'] . '" title="' . $info['place'] . '" />';
171
+		return '<img src="https://maps.googleapis.com/maps/api/staticmap?'.http_build_query($params).'" alt="'.$info['address'].'" title="'.$info['place'].'" />';
172 172
 	}
173 173
 
174 174
 	/**
@@ -178,6 +178,6 @@  discard block
 block discarded – undo
178 178
 	 */
179 179
 	protected function get_location_title($place, $address)
180 180
 	{
181
-		return (strpos($address, $place) === false) ? '<strong>' . $place . '</strong><br />' : '';
181
+		return (strpos($address, $place) === false) ? '<strong>'.$place.'</strong><br />' : '';
182 182
 	}
183 183
 }
Please login to merge, or discard this patch.
services/form/field/textarea.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
 	{
95 95
 		$toc_pattern = '(<h4>(.*?)</h4>)?';
96 96
 		$pages_pattern = '<p><!-- pagebreak --></p>';
97
-		$split_pattern = $pages_pattern . (($view_mode !== 'detail') ? $toc_pattern : '');
97
+		$split_pattern = $pages_pattern.(($view_mode !== 'detail') ? $toc_pattern : '');
98 98
 
99
-		$pages = array_filter(preg_split('#' . $split_pattern . '#s', $data['field_value']));
99
+		$pages = array_filter(preg_split('#'.$split_pattern.'#s', $data['field_value']));
100 100
 
101 101
 		if ($view_mode !== 'detail')
102 102
 		{
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 		}
105 105
 
106 106
 		// get page titles to generate TOC
107
-		preg_match_all('#' . $pages_pattern . $toc_pattern . '#s', $data['field_value'], $matches);
107
+		preg_match_all('#'.$pages_pattern.$toc_pattern.'#s', $data['field_value'], $matches);
108 108
 
109 109
 		return $this->get_detail_value($pages, $matches[2], $data);
110 110
 	}
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 			$asset_path = $this->util->get_web_path();
120 120
 			$this->util->add_assets(array(
121 121
 				'js'   => array(
122
-					$asset_path . 'assets/javascript/editor.js',
122
+					$asset_path.'assets/javascript/editor.js',
123 123
 					'@blitze_content/assets/fields/textarea.min.js'
124 124
 				)
125 125
 			));
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 				$this->template->assign_block_vars('toc', array(
228 228
 					'TITLE'		=> ($title) ? $title : $this->language->lang('CONTENT_TOC_UNTITLED'),
229 229
 					'S_PAGE'	=> ($page === $start),
230
-					'U_VIEW'	=> append_sid($topic_url, ($page) ? 'page=' . $page : false),
230
+					'U_VIEW'	=> append_sid($topic_url, ($page) ? 'page='.$page : false),
231 231
 				));
232 232
 			}
233 233
 		}
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 		// Assigning custom bbcodes
280 280
 		if (!function_exists('display_custom_bbcodes'))
281 281
 		{
282
-			include($this->phpbb_root_path . 'includes/functions_display.' . $this->php_ext);
282
+			include($this->phpbb_root_path.'includes/functions_display.'.$this->php_ext);
283 283
 		}
284 284
 
285 285
 		display_custom_bbcodes();
Please login to merge, or discard this patch.