@@ -291,7 +291,7 @@ |
||
291 | 291 | * Score calculator for exact phrase queries (terms sequence is fixed) |
292 | 292 | * |
293 | 293 | * @param integer $docId |
294 | - * @return float |
|
294 | + * @return integer |
|
295 | 295 | */ |
296 | 296 | public function _exactPhraseFreq($docId) |
297 | 297 | { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | /** |
106 | 106 | * Get query field name |
107 | 107 | * |
108 | - * @return string|null |
|
108 | + * @return string |
|
109 | 109 | */ |
110 | 110 | public function getField() |
111 | 111 | { |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * Get lower term |
117 | 117 | * |
118 | - * @return Zend_Search_Lucene_Index_Term|null |
|
118 | + * @return Zend_Search_Lucene_Index_Term |
|
119 | 119 | */ |
120 | 120 | public function getLowerTerm() |
121 | 121 | { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * Get upper term |
127 | 127 | * |
128 | - * @return Zend_Search_Lucene_Index_Term|null |
|
128 | + * @return Zend_Search_Lucene_Index_Term |
|
129 | 129 | */ |
130 | 130 | public function getUpperTerm() |
131 | 131 | { |
@@ -61,7 +61,6 @@ discard block |
||
61 | 61 | * Zend_Search_Lucene_Search_Query_Term constructor |
62 | 62 | * |
63 | 63 | * @param Zend_Search_Lucene_Index_Term $term |
64 | - * @param boolean $sign |
|
65 | 64 | */ |
66 | 65 | public function __construct(Zend_Search_Lucene_Index_Term $term) |
67 | 66 | { |
@@ -175,7 +174,7 @@ discard block |
||
175 | 174 | /** |
176 | 175 | * Return query terms |
177 | 176 | * |
178 | - * @return array |
|
177 | + * @return Zend_Search_Lucene_Index_Term[] |
|
179 | 178 | */ |
180 | 179 | public function getQueryTerms() |
181 | 180 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * Returns all possible lexeme types. |
58 | 58 | * It's used for syntax analyzer state machine initialization |
59 | 59 | * |
60 | - * @return array |
|
60 | + * @return integer[] |
|
61 | 61 | */ |
62 | 62 | public static function getTypes() |
63 | 63 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * IndexReader constructor needs token type and token text as a parameters. |
120 | 120 | * |
121 | 121 | * @param integer $tokenCategory |
122 | - * @param string $tokText |
|
122 | + * @param string $tokenText |
|
123 | 123 | * @param integer $position |
124 | 124 | */ |
125 | 125 | public function __construct($tokenCategory, $tokenText, $position) |
@@ -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 | private static function _floatToByte($f) |
414 | 414 | { |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | * |
495 | 495 | * @param mixed $input |
496 | 496 | * @param Zend_Search_Lucene_Interface $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, Zend_Search_Lucene_Interface $reader) |
500 | 500 | { |
@@ -322,7 +322,7 @@ |
||
322 | 322 | * Sets the modified time of $filename to now. |
323 | 323 | * |
324 | 324 | * @param string $filename |
325 | - * @return void |
|
325 | + * @return boolean |
|
326 | 326 | */ |
327 | 327 | public function touchFile($filename) |
328 | 328 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Convert a PDF into text. |
43 | 43 | * |
44 | - * @param string $filename The filename to extract the data from. |
|
44 | + * @param string $data |
|
45 | 45 | * @return string The extracted text from the PDF |
46 | 46 | */ |
47 | 47 | protected static function extractText($data) |
@@ -31,6 +31,9 @@ |
||
31 | 31 | array('field'=> 'type', 'display_field' => 'type', 'display_name' => 'Type'), |
32 | 32 | ); |
33 | 33 | |
34 | + /** |
|
35 | + * @param aCase $old |
|
36 | + */ |
|
34 | 37 | private function compareBeans($old, $new){ |
35 | 38 | $events = array(); |
36 | 39 | foreach($this->diff_fields as $field){ |
@@ -443,6 +443,9 @@ |
||
443 | 443 | } |
444 | 444 | } |
445 | 445 | |
446 | + /** |
|
447 | + * @param SugarPHPMailer $mailer |
|
448 | + */ |
|
446 | 449 | private function logEmail($email, $mailer, $caseId = null){ |
447 | 450 | require_once('modules/Emails/Email.php'); |
448 | 451 | $emailObj = new Email(); |