Completed
Push — master ( 60a459...efce96 )
by Daniel
08:46
created
blocks/featured_member.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 			'WHERE'		=> $this->db->sql_in_set('u.user_type', array(USER_NORMAL, USER_FOUNDER)),
147 147
 		);
148 148
 
149
-		$method = 'query_' . $this->settings['qtype'];
149
+		$method = 'query_'.$this->settings['qtype'];
150 150
 
151 151
 		if (is_callable(array($this, $method)))
152 152
 		{
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	 */
172 172
 	private function query_featured(array &$sql_array, $change_user)
173 173
 	{
174
-		$sql_array['WHERE'] .= ' AND user_id = ' . userlist::get_user_id($this->settings, $change_user);
174
+		$sql_array['WHERE'] .= ' AND user_id = '.userlist::get_user_id($this->settings, $change_user);
175 175
 	}
176 176
 
177 177
 	/**
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 	 */
180 180
 	private function query_recent(array &$sql_array)
181 181
 	{
182
-		$sql_array['WHERE'] = 'user_id = ' . (int) $this->config['newest_user_id'];
182
+		$sql_array['WHERE'] = 'user_id = '.(int) $this->config['newest_user_id'];
183 183
 	}
184 184
 
185 185
 	/**
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 	private function change_user()
207 207
 	{
208 208
 		$change = false;
209
-		if ($this->settings['rotation'] == 'pageload' || $this->settings['last_changed'] < strtotime('-1 ' . self::$rotations[$this->settings['rotation']]))
209
+		if ($this->settings['rotation'] == 'pageload' || $this->settings['last_changed'] < strtotime('-1 '.self::$rotations[$this->settings['rotation']]))
210 210
 		{
211 211
 			$this->settings['last_changed'] = time();
212 212
 			$change = true;
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
 		$rotation = $this->settings['rotation'];
224 224
 
225 225
 		$this->ptemplate->assign_vars(array(
226
-			'QTYPE_EXPLAIN'		=> ($query_type == 'posts' || $query_type == 'recent') ? $this->user->lang('QTYPE_' . strtoupper($query_type)) : '',
227
-			'TITLE_EXPLAIN'		=> ($rotation != 'pageload') ? $this->user->lang(strtoupper($rotation) . '_MEMBER') : '',
226
+			'QTYPE_EXPLAIN'		=> ($query_type == 'posts' || $query_type == 'recent') ? $this->user->lang('QTYPE_'.strtoupper($query_type)) : '',
227
+			'TITLE_EXPLAIN'		=> ($rotation != 'pageload') ? $this->user->lang(strtoupper($rotation).'_MEMBER') : '',
228 228
 		));
229 229
 	}
230 230
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	 */
235 235
 	private function get_settings(array $bdata)
236 236
 	{
237
-		$cached_settings = $this->cache->get('pt_block_data_' . $bdata['bid']);
237
+		$cached_settings = $this->cache->get('pt_block_data_'.$bdata['bid']);
238 238
 		$settings = ($cached_settings && $cached_settings['hash'] === $bdata['hash']) ? $cached_settings : $bdata['settings'];
239 239
 		$settings['hash'] = $bdata['hash'];
240 240
 
@@ -254,8 +254,8 @@  discard block
 block discarded – undo
254 254
 			$sql_data = array(
255 255
 				'settings'	=> json_encode($settings)
256 256
 			);
257
-			$this->db->sql_query('UPDATE ' . $this->blocks_table . ' SET ' . $this->db->sql_build_array('UPDATE', $sql_data) . ' WHERE bid = ' . (int) $bid);
258
-			$this->cache->put('pt_block_data_' . $bid, $this->settings);
257
+			$this->db->sql_query('UPDATE '.$this->blocks_table.' SET '.$this->db->sql_build_array('UPDATE', $sql_data).' WHERE bid = '.(int) $bid);
258
+			$this->cache->put('pt_block_data_'.$bid, $this->settings);
259 259
 		}
260 260
 	}
261 261
 
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 			'RANK_TITLE'		=> $rank['title'],
309 309
 			'RANK_IMG'			=> $rank['img'],
310 310
 			'U_PROFILE'			=> get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']),
311
-			'U_SEARCH_USER'		=> append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, "author_id={$row['user_id']}&amp;sr=posts"),
311
+			'U_SEARCH_USER'		=> append_sid($this->phpbb_root_path.'search.'.$this->php_ext, "author_id={$row['user_id']}&amp;sr=posts"),
312 312
 		));
313 313
 
314 314
 		return $tpl_data;
Please login to merge, or discard this patch.
services/menus/menu_block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
 	 */
133 133
 	 protected function is_navigable(array $row)
134 134
 	 {
135
-	 	return (!$row['host'] && (!file_exists('.' . $row['item_url']) || pathinfo($row['item_url'], PATHINFO_EXTENSION ) === $this->php_ext)) ? true : false;
135
+	 	return (!$row['host'] && (!file_exists('.'.$row['item_url']) || pathinfo($row['item_url'], PATHINFO_EXTENSION) === $this->php_ext)) ? true : false;
136 136
 	 }
137 137
 
138 138
 	/**
Please login to merge, or discard this patch.
model/menus/entity/item.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 	 */
137 137
 	public function set_item_icon($icon)
138 138
 	{
139
-		$this->item_icon = ($icon) ? trim($icon) . ' ' : '';
139
+		$this->item_icon = ($icon) ? trim($icon).' ' : '';
140 140
 		return $this;
141 141
 	}
142 142
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 		// add leading / for local paths, except leading hashtags
154 154
 		if ($this->item_url && $this->item_url[0] !== '#' && $this->is_local_path($this->item_url))
155 155
 		{
156
-			$this->item_url = '/' . $this->item_url;
156
+			$this->item_url = '/'.$this->item_url;
157 157
 		}
158 158
 
159 159
 		return $this;
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
 		if ($item_url && $item_url[0] === '/')
170 170
 		{
171
-			$item_url = $this->board_url . $item_url;
171
+			$item_url = $this->board_url.$item_url;
172 172
 			if ($this->mod_rewrite_enabled)
173 173
 			{
174 174
 				$item_url = str_replace('app.php/', '', $item_url);
Please login to merge, or discard this patch.