@@ -79,8 +79,8 @@ |
||
79 | 79 | fa.record_id = fd.id |
80 | 80 | GROUP BY |
81 | 81 | fa.id", |
82 | - PMF_Db::getTablePrefix() . 'faqattachment', |
|
83 | - PMF_Db::getTablePrefix() . 'faqdata' |
|
82 | + PMF_Db::getTablePrefix().'faqattachment', |
|
83 | + PMF_Db::getTablePrefix().'faqdata' |
|
84 | 84 | ); |
85 | 85 | |
86 | 86 | $result = $this->config->getDb()->query($query); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $this->handle = @fopen($this->path, $this->mode); |
67 | 67 | |
68 | 68 | if (!is_resource($this->handle)) { |
69 | - throw new PMF_Attachment_Filesystem_File_Exception('Could not open file: ' . $this->path); |
|
69 | + throw new PMF_Attachment_Filesystem_File_Exception('Could not open file: '.$this->path); |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | { |
152 | 152 | $retval = false; |
153 | 153 | |
154 | - if(in_array($mode, array(self::MODE_WRITE, self::MODE_READ, self::MODE_APPEND))) { |
|
154 | + if (in_array($mode, array(self::MODE_WRITE, self::MODE_READ, self::MODE_APPEND))) { |
|
155 | 155 | fclose($this->handle); |
156 | 156 | $this->handle = fopen($this->path, $mode); |
157 | 157 |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | $subDirNameLength = 5; |
50 | 50 | |
51 | 51 | for ($i = 0; $i < $subDirCount; $i++) { |
52 | - $retval .= DIRECTORY_SEPARATOR . substr($fsHash, $i*$subDirNameLength, $subDirNameLength); |
|
52 | + $retval .= DIRECTORY_SEPARATOR.substr($fsHash, $i*$subDirNameLength, $subDirNameLength); |
|
53 | 53 | } |
54 | 54 | |
55 | - $retval .= DIRECTORY_SEPARATOR . substr($fsHash, $i*$subDirNameLength); |
|
55 | + $retval .= DIRECTORY_SEPARATOR.substr($fsHash, $i*$subDirNameLength); |
|
56 | 56 | |
57 | 57 | return $retval; |
58 | 58 | } |
@@ -193,9 +193,9 @@ discard block |
||
193 | 193 | |
194 | 194 | if ($headers) { |
195 | 195 | $disposition = 'attachment' == $disposition ? 'attachment' : 'inline'; |
196 | - header('Content-Type: ' . $this->mimeType, true); |
|
197 | - header('Content-Length: ' . $this->filesize, true); |
|
198 | - header("Content-Disposition: $disposition; filename=\"{$this->filename}\"" , true); |
|
196 | + header('Content-Type: '.$this->mimeType, true); |
|
197 | + header('Content-Length: '.$this->filesize, true); |
|
198 | + header("Content-Disposition: $disposition; filename=\"{$this->filename}\"", true); |
|
199 | 199 | header("Content-MD5: {$this->realHash}", true); |
200 | 200 | } |
201 | 201 |
@@ -364,7 +364,9 @@ |
||
364 | 364 | if (count($matches[1])) { |
365 | 365 | $languages = array_combine($matches[1], $matches[4]); |
366 | 366 | foreach ($languages as $lang => $val) { |
367 | - if ($val === '') $languages[$lang] = 1; |
|
367 | + if ($val === '') { |
|
368 | + $languages[$lang] = 1; |
|
369 | + } |
|
368 | 370 | } |
369 | 371 | arsort($languages, SORT_NUMERIC); |
370 | 372 | } |
@@ -132,33 +132,33 @@ discard block |
||
132 | 132 | |
133 | 133 | // Get language from: _POST, _GET, _COOKIE, phpMyFAQ configuration and the automatic language detection |
134 | 134 | $_lang['post'] = PMF_Filter::filterInput(INPUT_POST, 'language', FILTER_SANITIZE_STRING); |
135 | - if (!is_null($_lang['post']) && !self::isASupportedLanguage($_lang['post']) ) { |
|
135 | + if (!is_null($_lang['post']) && !self::isASupportedLanguage($_lang['post'])) { |
|
136 | 136 | $_lang['post'] = null; |
137 | 137 | } |
138 | 138 | // Get the user language |
139 | 139 | $_lang['get'] = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING); |
140 | - if (!is_null($_lang['get']) && !self::isASupportedLanguage($_lang['get']) ) { |
|
140 | + if (!is_null($_lang['get']) && !self::isASupportedLanguage($_lang['get'])) { |
|
141 | 141 | $_lang['get'] = null; |
142 | 142 | } |
143 | 143 | // Get the faq record language |
144 | 144 | $_lang['artget'] = PMF_Filter::filterInput(INPUT_GET, 'artlang', FILTER_SANITIZE_STRING); |
145 | - if (!is_null($_lang['artget']) && !self::isASupportedLanguage($_lang['artget']) ) { |
|
145 | + if (!is_null($_lang['artget']) && !self::isASupportedLanguage($_lang['artget'])) { |
|
146 | 146 | $_lang['artget'] = null; |
147 | 147 | } |
148 | 148 | // Get the language from the session |
149 | - if (isset($_SESSION['pmf_lang']) && self::isASupportedLanguage($_SESSION['pmf_lang']) ) { |
|
149 | + if (isset($_SESSION['pmf_lang']) && self::isASupportedLanguage($_SESSION['pmf_lang'])) { |
|
150 | 150 | $_lang['session'] = trim($_SESSION['pmf_lang']); |
151 | 151 | } |
152 | 152 | |
153 | 153 | // Get the language from the config |
154 | 154 | if (isset($configLanguage)) { |
155 | 155 | $confLangCode = str_replace(array("language_", ".php"), "", $configLanguage); |
156 | - if (self::isASupportedLanguage($confLangCode) ) { |
|
156 | + if (self::isASupportedLanguage($confLangCode)) { |
|
157 | 157 | $_lang['config'] = $confLangCode; |
158 | 158 | } |
159 | 159 | } |
160 | 160 | // Detect the browser's language |
161 | - if ((true === $configDetection) && self::isASupportedLanguage($this->acceptedLanguage) ) { |
|
161 | + if ((true === $configDetection) && self::isASupportedLanguage($this->acceptedLanguage)) { |
|
162 | 162 | $_lang['detection'] = strtolower($this->acceptedLanguage); |
163 | 163 | } |
164 | 164 | // Select the language |
@@ -206,12 +206,12 @@ discard block |
||
206 | 206 | { |
207 | 207 | global $languageCodes; |
208 | 208 | |
209 | - $search = array("language_" , ".php"); |
|
209 | + $search = array("language_", ".php"); |
|
210 | 210 | $languages = $languageFiles = []; |
211 | 211 | |
212 | 212 | $dir = new DirectoryIterator(PMF_LANGUAGE_DIR); |
213 | 213 | foreach ($dir as $fileinfo) { |
214 | - if (! $fileinfo->isDot()) { |
|
214 | + if (!$fileinfo->isDot()) { |
|
215 | 215 | $languageFiles[] = strtoupper( |
216 | 216 | str_replace($search, '', trim($fileinfo->getFilename())) |
217 | 217 | ); |
@@ -246,21 +246,21 @@ discard block |
||
246 | 246 | global $languageCodes; |
247 | 247 | |
248 | 248 | $onChange = ($submitOnChange ? ' onchange="this.form.submit();"' : ''); |
249 | - $output = '<select class="form-control" name="' . $id . '" id="' . $id . '" size="1"' . $onChange . ">\n"; |
|
249 | + $output = '<select class="form-control" name="'.$id.'" id="'.$id.'" size="1"'.$onChange.">\n"; |
|
250 | 250 | $languages = self::getAvailableLanguages(); |
251 | 251 | |
252 | 252 | if (count($languages) > 0) { |
253 | 253 | foreach ($languages as $lang => $value) { |
254 | - if (! in_array($lang, $excludedLanguages)) { |
|
255 | - $output .= "\t" . '<option value="' . $lang . '"'; |
|
254 | + if (!in_array($lang, $excludedLanguages)) { |
|
255 | + $output .= "\t".'<option value="'.$lang.'"'; |
|
256 | 256 | if ($lang == $default) { |
257 | 257 | $output .= ' selected="selected"'; |
258 | 258 | } |
259 | - $output .= '>' . $value . "</option>\n"; |
|
259 | + $output .= '>'.$value."</option>\n"; |
|
260 | 260 | } |
261 | 261 | } |
262 | 262 | } else { |
263 | - $output .= "\t<option value=\"en\">" . $languageCodes["EN"] . "</option>"; |
|
263 | + $output .= "\t<option value=\"en\">".$languageCodes["EN"]."</option>"; |
|
264 | 264 | } |
265 | 265 | $output .= "</select>\n"; |
266 | 266 | return $output; |
@@ -281,24 +281,24 @@ discard block |
||
281 | 281 | if ($onlyThisLang) { |
282 | 282 | if (strtolower($key) == $lang) { |
283 | 283 | if ($fileLanguageValue) { |
284 | - $output .= "\t<option value=\"language_" . strtolower($lang) . ".php\""; |
|
284 | + $output .= "\t<option value=\"language_".strtolower($lang).".php\""; |
|
285 | 285 | } else { |
286 | - $output .= "\t<option value=\"" . strtolower($lang) . "\""; |
|
286 | + $output .= "\t<option value=\"".strtolower($lang)."\""; |
|
287 | 287 | } |
288 | 288 | $output .= " selected=\"selected\""; |
289 | - $output .= ">" . $value . "</option>\n"; |
|
289 | + $output .= ">".$value."</option>\n"; |
|
290 | 290 | break; |
291 | 291 | } |
292 | 292 | } else { |
293 | 293 | if ($fileLanguageValue) { |
294 | - $output .= "\t<option value=\"language_" . strtolower($key) . ".php\""; |
|
294 | + $output .= "\t<option value=\"language_".strtolower($key).".php\""; |
|
295 | 295 | } else { |
296 | - $output .= "\t<option value=\"" . strtolower($key) . "\""; |
|
296 | + $output .= "\t<option value=\"".strtolower($key)."\""; |
|
297 | 297 | } |
298 | 298 | if (strtolower($key) == $lang) { |
299 | 299 | $output .= " selected=\"selected\""; |
300 | 300 | } |
301 | - $output .= ">" . $value . "</option>\n"; |
|
301 | + $output .= ">".$value."</option>\n"; |
|
302 | 302 | } |
303 | 303 | } |
304 | 304 | return $output; |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | public static function isASupportedTinyMCELanguage($langcode) |
334 | 334 | { |
335 | 335 | return file_exists( |
336 | - PMF_ROOT_DIR . '/admin/editor/langs/' . $langcode . '.js' |
|
336 | + PMF_ROOT_DIR.'/admin/editor/langs/'.$langcode.'.js' |
|
337 | 337 | ); |
338 | 338 | } |
339 | 339 |
@@ -43,6 +43,6 @@ |
||
43 | 43 | */ |
44 | 44 | public function encrypt($str) |
45 | 45 | { |
46 | - return hash('sha256', $str . $this->salt); |
|
46 | + return hash('sha256', $str.$this->salt); |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 | \ No newline at end of file |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | |
260 | 260 | if (!empty($url)) { |
261 | 261 | $match = array(); |
262 | - if (PMF_String::preg_match('$&(amp;|)' . $this->pageParamName . '=(\d+)$', $url, $match)) { |
|
262 | + if (PMF_String::preg_match('$&(amp;|)'.$this->pageParamName.'=(\d+)$', $url, $match)) { |
|
263 | 263 | $page = isset($match[2]) ? $match[2] : $page; |
264 | 264 | } |
265 | 265 | } |
@@ -275,8 +275,8 @@ discard block |
||
275 | 275 | public function render() |
276 | 276 | { |
277 | 277 | $content = array(); |
278 | - $pages = ceil($this->total / $this->perPage); |
|
279 | - $adjacents = floor($this->adjacents / 2) >= 1 ? floor($this->adjacents / 2) : 1; |
|
278 | + $pages = ceil($this->total/$this->perPage); |
|
279 | + $adjacents = floor($this->adjacents/2) >= 1 ? floor($this->adjacents/2) : 1; |
|
280 | 280 | |
281 | 281 | for ($page = 1; $page <= $pages; $page++) { |
282 | 282 | |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | |
361 | 361 | } else { |
362 | 362 | |
363 | - $cleanedUrl = PMF_String::preg_replace(array('$&(amp;|)' . $this->pageParamName . '=(\d+)$'), '', $url); |
|
363 | + $cleanedUrl = PMF_String::preg_replace(array('$&(amp;|)'.$this->pageParamName.'=(\d+)$'), '', $url); |
|
364 | 364 | $url = sprintf('%s&%s=%d', $cleanedUrl, $this->pageParamName, $page); |
365 | 365 | |
366 | 366 | } |
@@ -218,23 +218,23 @@ |
||
218 | 218 | } |
219 | 219 | |
220 | 220 | if (isset($options['firstPageLinkTpl'])) { |
221 | - $this->firstPageLinkTpl = $options['firstPageLinkTpl']; |
|
221 | + $this->firstPageLinkTpl = $options['firstPageLinkTpl']; |
|
222 | 222 | } |
223 | 223 | |
224 | 224 | if (isset($options['lastPageLinkTpl'])) { |
225 | - $this->lastPageLinkTpl = $options['lastPageLinkTpl']; |
|
225 | + $this->lastPageLinkTpl = $options['lastPageLinkTpl']; |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | if (isset($options['layoutTpl'])) { |
229 | - $this->layoutTpl = $options['layoutTpl']; |
|
229 | + $this->layoutTpl = $options['layoutTpl']; |
|
230 | 230 | } |
231 | 231 | |
232 | 232 | if (isset($options['pageParamName'])) { |
233 | - $this->pageParamName = $options['pageParamName']; |
|
233 | + $this->pageParamName = $options['pageParamName']; |
|
234 | 234 | } |
235 | 235 | |
236 | 236 | if (isset($options['seoName'])) { |
237 | - $this->seoName = $options['seoName']; |
|
237 | + $this->seoName = $options['seoName']; |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | if (isset($options['useRewrite']) && isset($options['rewriteUrl'])) { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | */ |
161 | 161 | public function strstr($haystack, $needle, $part = false) |
162 | 162 | { |
163 | - return strstr($haystack, $needle, (boolean) $part); |
|
163 | + return strstr($haystack, $needle, (boolean)$part); |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | * |
263 | 263 | * @return array|string |
264 | 264 | */ |
265 | - public function preg_replace_callback($pattern, $callback, $subject, $limit= -1, &$count = 0) |
|
265 | + public function preg_replace_callback($pattern, $callback, $subject, $limit = -1, &$count = 0) |
|
266 | 266 | { |
267 | 267 | return preg_replace_callback($pattern, $callback, $subject, $limit, $count); |
268 | 268 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | * |
279 | 279 | * @return array|string|null |
280 | 280 | */ |
281 | - public function preg_replace($pattern, $replacement, $subject, $limit= -1, &$count = 0) |
|
281 | + public function preg_replace($pattern, $replacement, $subject, $limit = -1, &$count = 0) |
|
282 | 282 | { |
283 | 283 | return preg_replace($pattern, $replacement, $subject, $limit, $count); |
284 | 284 | } |
@@ -143,7 +143,7 @@ |
||
143 | 143 | * @param string $needle Needle |
144 | 144 | * @param boolean $part Part |
145 | 145 | * |
146 | - * @return string|false |
|
146 | + * @return string |
|
147 | 147 | */ |
148 | 148 | public function strstr($haystack, $needle, $part = false) |
149 | 149 | { |
@@ -329,8 +329,7 @@ |
||
329 | 329 | if ($nextline < 1) { |
330 | 330 | $nextline = 2; |
331 | 331 | } |
332 | - } |
|
333 | - else { |
|
332 | + } else { |
|
334 | 333 | $nextline += rand(1, 7); |
335 | 334 | } |
336 | 335 | $w1 += rand(-4, 4); |
@@ -466,10 +466,10 @@ discard block |
||
466 | 466 | } |
467 | 467 | |
468 | 468 | /** |
469 | - * Save the Captcha |
|
470 | - * |
|
471 | - * @return boolean |
|
472 | - */ |
|
469 | + * Save the Captcha |
|
470 | + * |
|
471 | + * @return boolean |
|
472 | + */ |
|
473 | 473 | private function saveCaptcha() |
474 | 474 | { |
475 | 475 | $select = sprintf(" |
@@ -479,8 +479,8 @@ discard block |
||
479 | 479 | %sfaqcaptcha |
480 | 480 | WHERE |
481 | 481 | id = '%s'", |
482 | - PMF_Db::getTablePrefix(), |
|
483 | - $this->code |
|
482 | + PMF_Db::getTablePrefix(), |
|
483 | + $this->code |
|
484 | 484 | ); |
485 | 485 | |
486 | 486 | $result = $this->_config->getDb()->query($select); |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | if (function_exists('imagejpeg')) { |
219 | 219 | $response->headers->set('Content-Type', 'image/jpeg'); |
220 | - $quality = (int) $this->quality; |
|
220 | + $quality = (int)$this->quality; |
|
221 | 221 | $response->setCallback(function() use ($img, $quality) { |
222 | 222 | imagejpeg($img, null, $quality); |
223 | 223 | }); |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | $captchaCode = str_replace("0", "O", $captchaCode); |
269 | 269 | } |
270 | 270 | // Sanity check |
271 | - for ($i = 0; $i < PMF_String::strlen( $captchaCode ); $i++) { |
|
271 | + for ($i = 0; $i < PMF_String::strlen($captchaCode); $i++) { |
|
272 | 272 | if (!in_array($captchaCode[$i], $this->letters)) { |
273 | 273 | return false; |
274 | 274 | } |
@@ -362,16 +362,16 @@ discard block |
||
362 | 362 | { |
363 | 363 | $len = PMF_String::strlen($this->code); |
364 | 364 | $w1 = 15; |
365 | - $w2 = $this->width / ($len + 1); |
|
365 | + $w2 = $this->width/($len + 1); |
|
366 | 366 | |
367 | 367 | for ($p = 0; $p < $len; $p++) { |
368 | 368 | $letter = $this->code[$p]; |
369 | 369 | if (count($this->fonts) > 0) { |
370 | 370 | $font = $this->fonts[rand(0, count($this->fonts) - 1)]; |
371 | 371 | } |
372 | - $size = rand(20, $this->height / 2.2); |
|
372 | + $size = rand(20, $this->height/2.2); |
|
373 | 373 | $rotation = rand(-23, 23); |
374 | - $y = rand($size + 3, $this->height-5); |
|
374 | + $y = rand($size + 3, $this->height - 5); |
|
375 | 375 | // $w1 += rand(- $this->width / 90, $this->width / 40 ); |
376 | 376 | $x = $w1 + $w2*$p; |
377 | 377 | $c1 = []; // fore char color |
@@ -387,28 +387,28 @@ discard block |
||
387 | 387 | } while ($c1['b'] == $this->_backgroundColor['b']); |
388 | 388 | $c1 = imagecolorallocate($this->img, $c1['r'], $c1['g'], $c1['b']); |
389 | 389 | do { |
390 | - $c2['r'] = ($c1['r'] < 100 ? $c1['r'] * 2 : mt_rand(30, 199)); |
|
390 | + $c2['r'] = ($c1['r'] < 100 ? $c1['r']*2 : mt_rand(30, 199)); |
|
391 | 391 | } while (($c2['r'] == $this->_backgroundColor['r']) && ($c2['r'] == $c1['r'])); |
392 | 392 | do { |
393 | - $c2['g'] = ($c1['g'] < 100 ? $c1['g'] * 2 : mt_rand(30, 199)); |
|
393 | + $c2['g'] = ($c1['g'] < 100 ? $c1['g']*2 : mt_rand(30, 199)); |
|
394 | 394 | } while (($c2['g'] == $this->_backgroundColor['g']) && ($c2['g'] == $c1['g'])); |
395 | 395 | do { |
396 | - $c2['b'] = ($c1['b'] < 100 ? $c1['b'] * 2 : mt_rand(30, 199)); |
|
396 | + $c2['b'] = ($c1['b'] < 100 ? $c1['b']*2 : mt_rand(30, 199)); |
|
397 | 397 | } while (($c2['b'] == $this->_backgroundColor['b']) && ($c2['b'] == $c1['b'])); |
398 | 398 | $c2 = imagecolorallocate($this->img, $c2['r'], $c2['g'], $c2['b']); |
399 | 399 | // Add the letter |
400 | 400 | if (function_exists('imagettftext') && (count($this->fonts) > 0)) { |
401 | - imagettftext($this->img, $size, $rotation, $x + 2, $y, $c2, $font, $letter); |
|
401 | + imagettftext($this->img, $size, $rotation, $x + 2, $y, $c2, $font, $letter); |
|
402 | 402 | imagettftext($this->img, $size, $rotation, $x + 1, $y + 1, $c2, $font, $letter); |
403 | - imagettftext($this->img, $size, $rotation, $x, $y-2, $c1, $font, $letter); |
|
403 | + imagettftext($this->img, $size, $rotation, $x, $y - 2, $c1, $font, $letter); |
|
404 | 404 | } else { |
405 | 405 | $size = 5; |
406 | 406 | $c3 = imagecolorallocate($this->img, 0, 0, 255); |
407 | 407 | $x = 20; |
408 | 408 | $y = 12; |
409 | 409 | $s = 30; |
410 | - imagestring($this->img, $size, $x + 1 + ($s * $p), $y+1, $letter, $c3); |
|
411 | - imagestring($this->img, $size, $x + ($s * $p), $y, $letter, $c1); |
|
410 | + imagestring($this->img, $size, $x + 1 + ($s*$p), $y + 1, $letter, $c3); |
|
411 | + imagestring($this->img, $size, $x + ($s*$p), $y, $letter, $c1); |
|
412 | 412 | } |
413 | 413 | } |
414 | 414 | |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | |
469 | 469 | // Create the captcha code |
470 | 470 | for ($i = 1; $i <= $caplength; $i++) { |
471 | - $j = floor(rand(0,34)); |
|
471 | + $j = floor(rand(0, 34)); |
|
472 | 472 | $this->code .= $this->letters[$j]; |
473 | 473 | } |
474 | 474 | if (!$this->saveCaptcha()) { |
@@ -571,6 +571,6 @@ discard block |
||
571 | 571 | */ |
572 | 572 | private function getFonts() |
573 | 573 | { |
574 | - return glob(PMF_INCLUDE_DIR . '/fonts/*.ttf'); |
|
574 | + return glob(PMF_INCLUDE_DIR.'/fonts/*.ttf'); |
|
575 | 575 | } |
576 | 576 | } |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | } else { |
61 | 61 | $enableRelevance = $this->_config->get('search.enableRelevance'); |
62 | 62 | |
63 | - $columns = $this->getResultColumns(); |
|
63 | + $columns = $this->getResultColumns(); |
|
64 | 64 | $columns .= ($enableRelevance) ? $this->getMatchingColumnsAsResult($searchTerm) : ''; |
65 | - $orderBy = ($enableRelevance) ? 'ORDER BY ' . $this->getMatchingOrder() . ' DESC' : ''; |
|
65 | + $orderBy = ($enableRelevance) ? 'ORDER BY '.$this->getMatchingOrder().' DESC' : ''; |
|
66 | 66 | $chars = array( |
67 | 67 | "\xe2\x80\x98", |
68 | 68 | "\xe2\x80\x99", |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $this->_config->getDb()->escape($searchterm), |
141 | 141 | substr(strstr($matchColumn, '.'), 1)); |
142 | 142 | |
143 | - $resultColumns .= ', ' . $column; |
|
143 | + $resultColumns .= ', '.$column; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | return $resultColumns; |
@@ -160,11 +160,11 @@ discard block |
||
160 | 160 | $order = ''; |
161 | 161 | |
162 | 162 | foreach ($list as $field) { |
163 | - $string = '(rel_' . $field . '*' . $count .')'; |
|
163 | + $string = '(rel_'.$field.'*'.$count.')'; |
|
164 | 164 | if (empty($order)) { |
165 | 165 | $order .= $string; |
166 | 166 | } else { |
167 | - $order .= '+' . $string; |
|
167 | + $order .= '+'.$string; |
|
168 | 168 | } |
169 | 169 | $count--; |
170 | 170 | } |