@@ -74,7 +74,7 @@ |
||
74 | 74 | * IndexReader constructor needs token type and token text as a parameters. |
75 | 75 | * |
76 | 76 | * @param $tokType integer |
77 | - * @param $tokText string |
|
77 | + * @param string $tokText string |
|
78 | 78 | */ |
79 | 79 | public function __construct($tokType, $tokText) |
80 | 80 | { |
@@ -143,7 +143,7 @@ |
||
143 | 143 | /** |
144 | 144 | * Returns next token |
145 | 145 | * |
146 | - * @return Zend_Search_Lucene_Search_QueryToken |
|
146 | + * @return integer |
|
147 | 147 | */ |
148 | 148 | public function next() |
149 | 149 | { |
@@ -407,8 +407,8 @@ discard block |
||
407 | 407 | /** |
408 | 408 | * Float to byte conversion |
409 | 409 | * |
410 | - * @param integer $b |
|
411 | - * @return float |
|
410 | + * @param double $f |
|
411 | + * @return integer |
|
412 | 412 | */ |
413 | 413 | static private function _floatToByte($f) |
414 | 414 | { |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | * |
495 | 495 | * @param mixed $input |
496 | 496 | * @param Zend_Search_Lucene $reader |
497 | - * @return a score factor for the term |
|
497 | + * @return double score factor for the term |
|
498 | 498 | */ |
499 | 499 | public function idf($input, $reader) |
500 | 500 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Assigns the query normalization factor to this. |
54 | 54 | * |
55 | - * @param $norm |
|
55 | + * @param double $norm |
|
56 | 56 | */ |
57 | 57 | abstract public function normalize($norm); |
58 | 58 | } |
@@ -241,7 +241,7 @@ |
||
241 | 241 | * Sets the modified time of $filename to now. |
242 | 242 | * |
243 | 243 | * @param string $filename |
244 | - * @return void |
|
244 | + * @return boolean |
|
245 | 245 | */ |
246 | 246 | public function touchFile($filename) |
247 | 247 | { |
@@ -42,6 +42,9 @@ |
||
42 | 42 | return $prefix.implode(' ', $subtext).$suffix; |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param string $word |
|
47 | + */ |
|
45 | 48 | protected function containsKeys($word, $keys) |
46 | 49 | { |
47 | 50 | foreach($keys as $key) |
@@ -69,11 +69,17 @@ discard block |
||
69 | 69 | return $list; |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $extension |
|
74 | + */ |
|
72 | 75 | protected function isFileTypeAllowed($extension) |
73 | 76 | { |
74 | 77 | return in_array($extension,array('tpl','page','php','html')); |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param string $fileName |
|
82 | + */ |
|
77 | 83 | protected function getFileExtension($fileName) |
78 | 84 | { |
79 | 85 | if(($pos=strrpos($fileName,'.'))===false) |
@@ -82,6 +88,9 @@ discard block |
||
82 | 88 | return substr($fileName,$pos+1); |
83 | 89 | } |
84 | 90 | |
91 | + /** |
|
92 | + * @param string $extension |
|
93 | + */ |
|
85 | 94 | protected function getFileType($extension) |
86 | 95 | { |
87 | 96 | if($extension==='tpl' || $extension==='page') |
@@ -90,6 +99,9 @@ discard block |
||
90 | 99 | return 'Class file'; |
91 | 100 | } |
92 | 101 | |
102 | + /** |
|
103 | + * @param string $extension |
|
104 | + */ |
|
93 | 105 | protected function getFileLanguage($extension) |
94 | 106 | { |
95 | 107 | switch($extension) |
@@ -63,6 +63,9 @@ |
||
63 | 63 | $this->loadData(); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param integer $index |
|
68 | + */ |
|
66 | 69 | private function getText($param, $index) |
67 | 70 | { |
68 | 71 | $item = $param->Item; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @return array list of all enabled users. |
|
45 | + * @return TList list of all enabled users. |
|
46 | 46 | */ |
47 | 47 | public function getAllUsers() |
48 | 48 | { |