Completed
Pull Request — development (#622)
by Thomas
06:17
created
htdocs/lib2/search/ftsearch.inc.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
 /**
69 69
  * str = single word
70 70
  * @param $str
71
- * @param $simple
71
+ * @param boolean $simple
72 72
  *
73
- * @return array
73
+ * @return string
74 74
  */
75 75
 function ftsearch_split(&$str, $simple)
76 76
 {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
  * str = single word
142 142
  * @param $str
143 143
  *
144
- * @return mixed|string
144
+ * @return string
145 145
  */
146 146
 function ftsearch_text2simple($str)
147 147
 {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
  * str = single word
172 172
  * @param $str
173 173
  *
174
- * @return mixed|string
174
+ * @return string
175 175
  */
176 176
 function ftsearch_text2sort($str)
177 177
 {
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 /**
315 315
  * @param $text
316 316
  *
317
- * @return mixed|string
317
+ * @return string
318 318
  */
319 319
 function ftsearch_strip_html($text)
320 320
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     ['ai', 'ei'],
18 18
     ['ou', 'u'],
19 19
     ['th', 't'],
20
-    ['ph','f'],
20
+    ['ph', 'f'],
21 21
     ['oh', 'o'],
22 22
     ['ah', 'a'],
23 23
     ['eh', 'e'],
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     $str = '';
102 102
 
103 103
     ftsearch_load_ignores();
104
-    for ($i = count($astr) - 1; $i >= 0; $i --) {
104
+    for ($i = count($astr) - 1; $i >= 0; $i--) {
105 105
         // ignore?
106 106
         if (array_search(mb_strtolower($astr[$i]), $ftsearch_ignores) !== false) {
107 107
             unset($astr[$i]);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
     // doppelte chars ersetzen
158 158
     $ordZ = ord('z');
159
-    for ($c = ord('a'); $c <= $ordZ; $c ++) {
159
+    for ($c = ord('a'); $c <= $ordZ; $c++) {
160 160
         $old_str = '';
161 161
         while ($old_str !== $str) {
162 162
             $old_str = $str;
Please login to merge, or discard this patch.