Completed
Pull Request — master (#26)
by Daniel
10:26 queued 08:38
created
blocks/wordgraph.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
 			$this->ptemplate->assign_block_vars('wordgraph', array(
111 111
 				'WORD'			=> $this->show_word($word, $words_array[$word], $settings['show_word_count']),
112 112
 				'WORD_SIZE'		=> $settings['min_word_size'] + (($words_array[$word] - $params['min_count']) * $params['size_step']),
113
-				'WORD_COLOR'	=> $r . $g . $b,
114
-				'WORD_URL'		=> append_sid("{$this->phpbb_root_path}search.$this->php_ext", 'keywords=' . urlencode($word)),
113
+				'WORD_COLOR'	=> $r.$g.$b,
114
+				'WORD_URL'		=> append_sid("{$this->phpbb_root_path}search.$this->php_ext", 'keywords='.urlencode($word)),
115 115
 			));
116 116
 		}
117 117
 	}
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
 				AND m.word_id = l.word_id
189 189
 				AND m.post_id = p.post_id
190 190
 				AND t.topic_id = p.topic_id
191
-				AND t.topic_time <= ' . time() . '
192
-				AND ' . $this->content_visibility->get_global_visibility_sql('topic', array_map('intval', array_keys($this->auth->acl_getf('!f_read', true))), 't.') .
191
+				AND t.topic_time <= ' . time().'
192
+				AND ' . $this->content_visibility->get_global_visibility_sql('topic', array_map('intval', array_keys($this->auth->acl_getf('!f_read', true))), 't.').
193 193
 				$sql_where,
194 194
 			'GROUP_BY'	=> 'l.word_text, l.word_count',
195 195
 			'ORDER_BY'	=> 'l.word_count DESC'
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 		if ($exclude_words)
207 207
 		{
208 208
 			$exclude_words = array_filter(explode(',', str_replace(' ', '', strtolower($exclude_words))));
209
-			$sql_where = (sizeof($exclude_words)) ? ' AND ' . $this->db->sql_in_set('l.word_text', $exclude_words, true) : '';
209
+			$sql_where = (sizeof($exclude_words)) ? ' AND '.$this->db->sql_in_set('l.word_text', $exclude_words, true) : '';
210 210
 		}
211 211
 
212 212
 		return $sql_where;
@@ -220,6 +220,6 @@  discard block
 block discarded – undo
220 220
 	 */
221 221
 	private function show_word($word, $count, $show_count)
222 222
 	{
223
-		return censor_text(($show_count) ? $word . '(' . $count . ')' : $word);
223
+		return censor_text(($show_count) ? $word.'('.$count.')' : $word);
224 224
 	}
225 225
 }
Please login to merge, or discard this patch.