Completed
Push — master ( cbbc79...7e8448 )
by Daniel
08:03
created
blocks/featured_member.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
 		if (is_array($message))
42 42
 		{
43 43
 			$this->message = (string) $message[0];
44
-		}
45
-		else
44
+		} else
46 45
 		{
47 46
 			$this->message = $message;
48 47
 		}
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
 	private function get_user_data($change_user)
142 142
 	{
143 143
 		$sql = 'SELECT user_id, username, user_colour, user_avatar, user_avatar_type, user_avatar_height, user_avatar_width, user_regdate, user_lastvisit, user_birthday, user_posts, user_rank
144
-			FROM ' . USERS_TABLE . '
144
+			FROM ' . USERS_TABLE.'
145 145
 			WHERE ' . $this->db->sql_in_set('user_type', array(USER_NORMAL, USER_FOUNDER));
146 146
 
147
-		$method = 'query_' . $this->settings['qtype'];
147
+		$method = 'query_'.$this->settings['qtype'];
148 148
 
149 149
 		if (is_callable(array($this, $method)))
150 150
 		{
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 	 */
169 169
 	private function query_featured(&$sql, $change_user)
170 170
 	{
171
-		$sql .= ' AND user_id = ' . userlist::get_user_id($this->settings, $change_user);
171
+		$sql .= ' AND user_id = '.userlist::get_user_id($this->settings, $change_user);
172 172
 	}
173 173
 
174 174
 	/**
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	private function change_user()
204 204
 	{
205 205
 		$change = false;
206
-		if ($this->settings['rotation'] == 'pageload' || $this->settings['last_changed'] < strtotime('-1 ' . self::$rotations[$this->settings['rotation']]))
206
+		if ($this->settings['rotation'] == 'pageload' || $this->settings['last_changed'] < strtotime('-1 '.self::$rotations[$this->settings['rotation']]))
207 207
 		{
208 208
 			$this->settings['last_changed'] = time();
209 209
 			$change = true;
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
 		$rotation = $this->settings['rotation'];
221 221
 
222 222
 		$this->ptemplate->assign_vars(array(
223
-			'QTYPE_EXPLAIN'		=> ($query_type == 'posts' || $query_type == 'recent') ? $this->user->lang('QTYPE_' . strtoupper($query_type)) : '',
224
-			'TITLE_EXPLAIN'		=> ($rotation != 'pageload') ? $this->user->lang(strtoupper($rotation) . '_MEMBER') : '',
223
+			'QTYPE_EXPLAIN'		=> ($query_type == 'posts' || $query_type == 'recent') ? $this->user->lang('QTYPE_'.strtoupper($query_type)) : '',
224
+			'TITLE_EXPLAIN'		=> ($rotation != 'pageload') ? $this->user->lang(strtoupper($rotation).'_MEMBER') : '',
225 225
 		));
226 226
 	}
227 227
 
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 	 */
232 232
 	private function get_settings(array $bdata)
233 233
 	{
234
-		$cached_settings = $this->cache->get('pt_block_data_' . $bdata['bid']);
234
+		$cached_settings = $this->cache->get('pt_block_data_'.$bdata['bid']);
235 235
 		$settings = ($cached_settings && $cached_settings['hash'] === $bdata['hash']) ? $cached_settings : $bdata['settings'];
236 236
 		$settings['hash'] = $bdata['hash'];
237 237
 
@@ -251,8 +251,8 @@  discard block
 block discarded – undo
251 251
 			$sql_data = array(
252 252
 				'settings'	=> json_encode($settings)
253 253
 			);
254
-			$this->db->sql_query('UPDATE ' . $this->blocks_table . ' SET ' . $this->db->sql_build_array('UPDATE', $sql_data) . ' WHERE bid = ' . (int) $bid);
255
-			$this->cache->put('pt_block_data_' . $bid, $this->settings);
254
+			$this->db->sql_query('UPDATE '.$this->blocks_table.' SET '.$this->db->sql_build_array('UPDATE', $sql_data).' WHERE bid = '.(int) $bid);
255
+			$this->cache->put('pt_block_data_'.$bid, $this->settings);
256 256
 		}
257 257
 	}
258 258
 
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 			'RANK_TITLE'		=> $rank['title'],
306 306
 			'RANK_IMG'			=> $rank['img'],
307 307
 			'U_PROFILE'			=> get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']),
308
-			'U_SEARCH_USER'		=> append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, "author_id={$row['user_id']}&amp;sr=posts"),
308
+			'U_SEARCH_USER'		=> append_sid($this->phpbb_root_path.'search.'.$this->php_ext, "author_id={$row['user_id']}&amp;sr=posts"),
309 309
 		));
310 310
 
311 311
 		return $tpl_data;
Please login to merge, or discard this patch.
services/poll.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
 		if (is_array($message))
42 42
 		{
43 43
 			$this->message = (string) $message[0];
44
-		}
45
-		else
44
+		} else
46 45
 		{
47 46
 			$this->message = $message;
48 47
 		}
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 * @param array $topic_data
69 69
 	 * @param \phpbb\template\twig\twig $template
70 70
 	 */
71
-	public function build(array $topic_data, \phpbb\template\twig\twig &$template)
71
+	public function build(array $topic_data, \phpbb\template\twig\twig & $template)
72 72
 	{
73 73
 		$this->translator->add_lang('viewtopic');
74 74
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 			'S_POLL_ACTION'		=> $viewtopic_url,
101 101
 			'S_FORM_TOKEN'		=> $this->sitemaker->get_form_key('posting'),
102 102
 
103
-			'U_VIEW_RESULTS'	=> $viewtopic_url . '&amp;view=viewpoll',
103
+			'U_VIEW_RESULTS'	=> $viewtopic_url.'&amp;view=viewpoll',
104 104
 		));
105 105
 	}
106 106
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 		$post_id = (int) $topic_data['topic_first_post_id'];
133 133
 
134 134
 		$sql = 'SELECT o.*, p.bbcode_bitfield, p.bbcode_uid
135
-			FROM ' . POLL_OPTIONS_TABLE . ' o, ' . POSTS_TABLE . " p
135
+			FROM ' . POLL_OPTIONS_TABLE.' o, '.POSTS_TABLE." p
136 136
 			WHERE o.topic_id = $topic_id
137 137
 				AND p.post_id = $post_id
138 138
 				AND p.topic_id = o.topic_id
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 	 * @param int $poll_most
178 178
 	 * @param \phpbb\template\twig\twig $template
179 179
 	 */
180
-	private function _build_poll_options(array $cur_voted_id, array $poll_info, $poll_total, $poll_most, \phpbb\template\twig\twig &$template)
180
+	private function _build_poll_options(array $cur_voted_id, array $poll_info, $poll_total, $poll_most, \phpbb\template\twig\twig & $template)
181 181
 	{
182 182
 		foreach ($poll_info as $poll_option)
183 183
 		{
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
 		if ($this->user->data['is_registered'])
209 209
 		{
210 210
 			$sql = 'SELECT poll_option_id
211
-			FROM ' . POLL_VOTES_TABLE . '
212
-			WHERE topic_id = ' . (int) $topic_id . '
211
+			FROM ' . POLL_VOTES_TABLE.'
212
+			WHERE topic_id = ' . (int) $topic_id.'
213 213
 				AND vote_user_id = ' . $this->user->data['user_id'];
214 214
 			$result = $this->db->sql_query($sql);
215 215
 
@@ -224,9 +224,9 @@  discard block
 block discarded – undo
224 224
 			// Cookie based guest tracking ... I don't like this but hum ho
225 225
 			// it's oft requested. This relies on "nice" users who don't feel
226 226
 			// the need to delete cookies to mess with results.
227
-			if ($this->request->is_set($this->config['cookie_name'] . '_poll_' . $topic_id, \phpbb\request\request_interface::COOKIE))
227
+			if ($this->request->is_set($this->config['cookie_name'].'_poll_'.$topic_id, \phpbb\request\request_interface::COOKIE))
228 228
 			{
229
-				$cur_voted_id = explode(',', $this->request->variable($this->config['cookie_name'] . '_poll_' . $topic_id, '', true, \phpbb\request\request_interface::COOKIE));
229
+				$cur_voted_id = explode(',', $this->request->variable($this->config['cookie_name'].'_poll_'.$topic_id, '', true, \phpbb\request\request_interface::COOKIE));
230 230
 				$cur_voted_id = array_map('intval', $cur_voted_id);
231 231
 			}
232 232
 		}
Please login to merge, or discard this patch.
services/forum/data.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -215,8 +215,7 @@  discard block
 block discarded – undo
215 215
 		if (sizeof($post_ids))
216 216
 		{
217 217
 			$sql_where[] = $this->db->sql_in_set('p.post_id', $post_ids);
218
-		}
219
-		else if (sizeof($this->store['topic']))
218
+		} else if (sizeof($this->store['topic']))
220 219
 		{
221 220
 			$sql_where[] = $this->db->sql_in_set('p.topic_id', array_keys($this->store['topic']));
222 221
 
@@ -240,8 +239,7 @@  discard block
 block discarded – undo
240 239
 		if ($this->_can_track_by_lastread())
241 240
 		{
242 241
 			$info = $this->_build_tracking_info('get_topic_tracking');
243
-		}
244
-		else if ($this->_can_track_anonymous())
242
+		} else if ($this->_can_track_anonymous())
245 243
 		{
246 244
 			$info = $this->_build_tracking_info('get_complete_topic_tracking');
247 245
 		}
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 			$this->store['topic'][$row['topic_id']] = $row;
85 85
 
86 86
 			$this->store['tracking'][$row['forum_id']]['topic_list'][] = $row['topic_id'];
87
-			$this->store['tracking'][$row['forum_id']]['mark_time'] =& $row['forum_mark_time'];
87
+			$this->store['tracking'][$row['forum_id']]['mark_time'] = & $row['forum_mark_time'];
88 88
 			$this->store['post_ids']['first'][] = $row['topic_first_post_id'];
89 89
 			$this->store['post_ids']['last'][] = $row['topic_last_post_id'];
90 90
 		}
@@ -319,10 +319,10 @@  discard block
 block discarded – undo
319 319
 	private function _get_attachment_sql($allowed_extensions, $exclude_in_message, $order_by)
320 320
 	{
321 321
 		return 'SELECT *
322
-			FROM ' . ATTACHMENTS_TABLE . '
323
-			WHERE ' . $this->db->sql_in_set('post_msg_id', $this->store['attachments']) .
324
-				(($exclude_in_message) ? ' AND in_message = 0' : '') .
325
-				(sizeof($allowed_extensions) ? ' AND ' . $this->db->sql_in_set('extension', $allowed_extensions) : '') . '
322
+			FROM ' . ATTACHMENTS_TABLE.'
323
+			WHERE ' . $this->db->sql_in_set('post_msg_id', $this->store['attachments']).
324
+				(($exclude_in_message) ? ' AND in_message = 0' : '').
325
+				(sizeof($allowed_extensions) ? ' AND '.$this->db->sql_in_set('extension', $allowed_extensions) : '').'
326 326
 			ORDER BY ' . $order_by;
327 327
 	}
328 328
 }
Please login to merge, or discard this patch.
exception/out_of_bounds.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 class unexpected_value extends base
16 16
 {
17 17
 	/**
18
-	* Translate this exception
19
-	*
20
-	* @param \phpbb\user $user
21
-	* @return array|string
22
-	* @access public
23
-	*/
18
+	 * Translate this exception
19
+	 *
20
+	 * @param \phpbb\user $user
21
+	 * @return array|string
22
+	 * @access public
23
+	 */
24 24
 	public function get_message(\phpbb\user $user)
25 25
 	{
26 26
 		return $this->translate_portions($user, $this->message_full, 'EXCEPTION_UNEXPECTED_VALUE');
Please login to merge, or discard this patch.
exception/invalid_argument.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 class unexpected_value extends base
16 16
 {
17 17
 	/**
18
-	* Translate this exception
19
-	*
20
-	* @param \phpbb\user $user
21
-	* @return array|string
22
-	* @access public
23
-	*/
18
+	 * Translate this exception
19
+	 *
20
+	 * @param \phpbb\user $user
21
+	 * @return array|string
22
+	 * @access public
23
+	 */
24 24
 	public function get_message(\phpbb\user $user)
25 25
 	{
26 26
 		return $this->translate_portions($user, $this->message_full, 'EXCEPTION_UNEXPECTED_VALUE');
Please login to merge, or discard this patch.
services/menus/display.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
 		if (is_array($message))
42 42
 		{
43 43
 			$this->message = (string) $message[0];
44
-		}
45
-		else
44
+		} else
46 45
 		{
47 46
 			$this->message = $message;
48 47
 		}
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * @param string $handle
66 66
 	 * @return void
67 67
 	 */
68
-	public function display_navlist(array $data, \phpbb\template\twig\twig &$template, $handle = 'tree')
68
+	public function display_navlist(array $data, \phpbb\template\twig\twig & $template, $handle = 'tree')
69 69
 	{
70 70
 		$this->prepare_items($data);
71 71
 
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
 				$row['num_kids'] = $this->count_descendants($row);
80 80
 
81 81
 				$template->assign_block_vars($handle, array_change_key_case($row, CASE_UPPER));
82
-				$this->close_open_tags($template, $handle . '.close', abs($prev_depth - $this_depth));
82
+				$this->close_open_tags($template, $handle.'.close', abs($prev_depth - $this_depth));
83 83
 			}
84 84
 
85
-			$this->close_open_tags($template, 'close_' . $handle, ($this_depth - $this->min_depth));
85
+			$this->close_open_tags($template, 'close_'.$handle, ($this_depth - $this->min_depth));
86 86
 		}
87 87
 	}
88 88
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 			}
122 122
 
123 123
 			$is_current_item = $this->is_current_item($row);
124
-			$this_depth	= $this->parental_depth[$row['parent_id']] + 1;
124
+			$this_depth = $this->parental_depth[$row['parent_id']] + 1;
125 125
 
126 126
 			$this->set_parental_depth($row, $this_depth, $leaf, $is_current_item);
127 127
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	 * @param int $repeat
235 235
 	 * @return void
236 236
 	 */
237
-	protected function close_open_tags(\phpbb\template\twig\twig &$template, $handle, $repeat)
237
+	protected function close_open_tags(\phpbb\template\twig\twig & $template, $handle, $repeat)
238 238
 	{
239 239
 		for ($i = 0; $i < $repeat; $i++)
240 240
 		{
Please login to merge, or discard this patch.
model/base_mapper.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -336,8 +336,7 @@  discard block
 block discarded – undo
336 336
 		if ($this->settings['display_preview'])
337 337
 		{
338 338
 			$post_data = $this->forum->get_post_data($this->settings['display_preview']);
339
-		}
340
-		else
339
+		} else
341 340
 		{
342 341
 			$post_data = array_fill_keys(array_keys($topic_data), array(array('post_text' => '', 'bbcode_uid' => '', 'bbcode_bitfield' => '')));
343 342
 		}
@@ -360,8 +359,7 @@  discard block
 block discarded – undo
360 359
 				$this->fields['user_colour'] = 'topic_last_poster_colour';
361 360
 
362 361
 				$this->ptemplate->assign_var('L_POST_BY_AUTHOR', $this->user->lang('LAST_POST_BY_AUTHOR'));
363
-			}
364
-			else
362
+			} else
365 363
 			{
366 364
 				$this->fields['time'] = 'topic_time';
367 365
 				$this->fields['user_id'] = 'topic_poster';
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 */
86 86
 	public function save(\blitze\sitemaker\model\entity_interface $entity)
87 87
 	{
88
-		$accessor = 'get_' . $this->entity_pkey;
88
+		$accessor = 'get_'.$this->entity_pkey;
89 89
 		if (is_null($entity->$accessor()))
90 90
 		{
91 91
 			$entity = $this->insert($entity);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		{
108 108
 			if ($condition instanceof $this->entity_class)
109 109
 			{
110
-				$accessor = 'get_' . $this->entity_pkey;
110
+				$accessor = 'get_'.$this->entity_pkey;
111 111
 				$condition = array($this->entity_pkey, '=', $condition->$accessor());
112 112
 			}
113 113
 			else
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 		}
118 118
 
119 119
 		$sql_where = $this->get_sql_condition($condition);
120
-		$this->db->sql_query('DELETE FROM ' . $this->entity_table . (sizeof($sql_where) ? ' WHERE ' . join(' AND ', $sql_where) : ''));
120
+		$this->db->sql_query('DELETE FROM '.$this->entity_table.(sizeof($sql_where) ? ' WHERE '.join(' AND ', $sql_where) : ''));
121 121
 	}
122 122
 
123 123
 	/**
@@ -136,9 +136,9 @@  discard block
 block discarded – undo
136 136
 	 */
137 137
 	protected function insert(\blitze\sitemaker\model\entity_interface $entity)
138 138
 	{
139
-		$this->db->sql_query('INSERT INTO ' . $this->entity_table . ' ' . $this->db->sql_build_array('INSERT', $entity->to_db()));
139
+		$this->db->sql_query('INSERT INTO '.$this->entity_table.' '.$this->db->sql_build_array('INSERT', $entity->to_db()));
140 140
 
141
-		$mutator = 'set_' . $this->entity_pkey;
141
+		$mutator = 'set_'.$this->entity_pkey;
142 142
 		$entity->$mutator((int) $this->db->sql_nextid());
143 143
 
144 144
 		return $entity;
@@ -152,11 +152,11 @@  discard block
 block discarded – undo
152 152
 	 */
153 153
 	protected function update(\blitze\sitemaker\model\entity_interface $entity)
154 154
 	{
155
-		$accessor = 'get_' . $this->entity_pkey;
155
+		$accessor = 'get_'.$this->entity_pkey;
156 156
 
157
-		return $this->db->sql_query('UPDATE ' . $this->entity_table . '
158
-			SET ' . $this->db->sql_build_array('UPDATE', $entity->to_db()) . '
159
-			WHERE ' . $this->entity_pkey . ' = ' . (int) $entity->$accessor());
157
+		return $this->db->sql_query('UPDATE '.$this->entity_table.'
158
+			SET ' . $this->db->sql_build_array('UPDATE', $entity->to_db()).'
159
+			WHERE ' . $this->entity_pkey.' = '.(int) $entity->$accessor());
160 160
 	}
161 161
 
162 162
 	/**
@@ -165,8 +165,8 @@  discard block
 block discarded – undo
165 165
 	 */
166 166
 	protected function find_sql(array $sql_where)
167 167
 	{
168
-		return 'SELECT * FROM ' . $this->entity_table .
169
-			(sizeof($sql_where) ? ' WHERE ' . join(' AND ', $sql_where) : '');
168
+		return 'SELECT * FROM '.$this->entity_table.
169
+			(sizeof($sql_where) ? ' WHERE '.join(' AND ', $sql_where) : '');
170 170
 	}
171 171
 
172 172
 	/**
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 		{
183 183
 			list($field, $operator, $value) = $info;
184 184
 
185
-			$callable = 'get_sql_where_' . gettype($value);
185
+			$callable = 'get_sql_where_'.gettype($value);
186 186
 			if (is_callable(array($this, $callable)))
187 187
 			{
188 188
 				$sql_where[] = call_user_func_array(array($this, $callable), array($field, $value, $operator));
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 	 */
221 221
 	protected function get_sql_where_string($field, $value, $operator)
222 222
 	{
223
-		return $field . " $operator '" . $this->db->sql_escape($value) . "'";
223
+		return $field." $operator '".$this->db->sql_escape($value)."'";
224 224
 	}
225 225
 
226 226
 	/**
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 	 */
232 232
 	protected function get_sql_where_integer($field, $value, $operator)
233 233
 	{
234
-		return $field . " $operator " . (int) $value;
234
+		return $field." $operator ".(int) $value;
235 235
 	}
236 236
 
237 237
 	/**
Please login to merge, or discard this patch.
model/base_entity.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
 			if (!isset($key))
102 102
 			{
103 103
 				$this->_entities[] = $entity;
104
-			}
105
-			else
104
+			} else
106 105
 			{
107 106
 				$this->_entities[$key] = $entity;
108 107
 			}
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 	}
57 57
 
58 58
 	/**
59
-	* {@inheritdoc}
60
-	*/
59
+	 * {@inheritdoc}
60
+	 */
61 61
 	public function to_array()
62 62
 	{
63 63
 		$attributes = $this->get_attributes();
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
 	}
75 75
 
76 76
 	/**
77
-	* {@inheritdoc}
78
-	*/
77
+	 * {@inheritdoc}
78
+	 */
79 79
 	public function to_db()
80 80
 	{
81 81
 		$this->check_required();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 	{
26 26
 		foreach ($data as $name => $value)
27 27
 		{
28
-			$mutator = 'set_' . $name;
28
+			$mutator = 'set_'.$name;
29 29
 			$this->$mutator($value);
30 30
 		}
31 31
 	}
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 		$data = array();
66 66
 		foreach ($attributes as $attribute)
67 67
 		{
68
-			$accessor = 'get_' . $attribute;
68
+			$accessor = 'get_'.$attribute;
69 69
 			$data[$attribute] = $this->$accessor();
70 70
 		}
71 71
 		unset($data['db_fields'], $data['required_fields']);
Please login to merge, or discard this patch.
cron/blocks_cleanup.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	private function clean_styles()
93 93
 	{
94
-		$routes_ary	= $this->manager->get_routes_per_style();
95
-		$style_ids	= $this->get_style_ids();
94
+		$routes_ary = $this->manager->get_routes_per_style();
95
+		$style_ids = $this->get_style_ids();
96 96
 
97 97
 		$routes = array();
98 98
 		foreach ($routes_ary as $style_id => $style_routes)
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
 		foreach ($routes as $route => $row)
124 124
 		{
125
-			$url = $board_url . '/' . (($row['ext_name']) ? 'app.php' : '') . $row['route'];
125
+			$url = $board_url.'/'.(($row['ext_name']) ? 'app.php' : '').$row['route'];
126 126
 
127 127
 			// Route no longer exists => remove all blocks for route
128 128
 			if ($this->url_checker->exists($url) !== true)
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
 		if (sizeof($block_ids))
187 187
 		{
188
-			$this->db->sql_query('DELETE FROM ' . $this->cblocks_table . ' WHERE ' . $this->db->sql_in_set('block_id', $block_ids));
188
+			$this->db->sql_query('DELETE FROM '.$this->cblocks_table.' WHERE '.$this->db->sql_in_set('block_id', $block_ids));
189 189
 		}
190 190
 	}
191 191
 
Please login to merge, or discard this patch.