Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created
modules/AOD_Index/AOD_Index.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     }
87 87
 
88 88
     /**
89
-     * @param $revision
89
+     * @param SugarBean $revision
90 90
      * @return bool|Zend_Search_Lucene_Document
91 91
      */
92 92
     private function getDocumentForRevision($revision){
@@ -197,6 +197,9 @@  discard block
 block discarded – undo
197 197
         return $document;
198 198
     }
199 199
 
200
+    /**
201
+     * @param string $module
202
+     */
200 203
     private function getBoost($module, $field){
201 204
         $fieldBoosts = array('name' =>0.5, 'first_name' => 0.5, 'last_name' => 0.5);
202 205
         $moduleBoosts = array('Accounts' => 0.5, 'Contacts' => 0.5, 'Leads' => 0.5, 'Opportunities' => 0.5);
Please login to merge, or discard this patch.
modules/AOD_Index/Lib/Zend/Search/Lucene.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     /**
201 201
      * Create index
202 202
      *
203
-     * @param mixed $directory
203
+     * @param string $directory
204 204
      * @return Zend_Search_Lucene_Interface
205 205
      */
206 206
     public static function create($directory)
@@ -901,7 +901,7 @@  discard block
 block discarded – undo
901 901
      *
902 902
      * Default value is 10
903 903
      *
904
-     * @param integer $maxMergeDocs
904
+     * @param integer $mergeFactor
905 905
      */
906 906
     public function setMergeFactor($mergeFactor)
907 907
     {
@@ -1547,7 +1547,7 @@  discard block
 block discarded – undo
1547 1547
     /**
1548 1548
      * Returns term in current position
1549 1549
      *
1550
-     * @return Zend_Search_Lucene_Index_Term|null
1550
+     * @return Zend_Search_Lucene_Index_Term
1551 1551
      */
1552 1552
     public function currentTerm()
1553 1553
     {
Please login to merge, or discard this patch.
modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,6 @@
 block discarded – undo
147 147
     /**
148 148
      * Set the default Analyzer implementation used by indexing code.
149 149
      *
150
-     * @param Zend_Search_Lucene_Analysis_Analyzer $similarity
151 150
      */
152 151
     public static function setDefault(Zend_Search_Lucene_Analysis_Analyzer $analyzer)
153 152
     {
Please login to merge, or discard this patch.
modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Token.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,6 @@  discard block
 block discarded – undo
82 82
      * @param string  $text
83 83
      * @param integer $start
84 84
      * @param integer $end
85
-     * @param string  $type
86 85
      */
87 86
     public function __construct($text, $start, $end)
88 87
     {
@@ -128,7 +127,7 @@  discard block
 block discarded – undo
128 127
      * Sets the Token's term text.
129 128
      * 
130 129
      * @param string $text
131
-     * @return this
130
+     * @return Zend_Search_Lucene_Analysis_Token
132 131
      */
133 132
     public function setTermText($text)
134 133
     {
Please login to merge, or discard this patch.
AOD_Index/Lib/Zend/Search/Lucene/Analysis/TokenFilter/ShortWords.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,6 @@
 block discarded – undo
46 46
     /**
47 47
      * Constructs new instance of this filter.
48 48
      *
49
-     * @param integer $short  minimum allowed length of term which passes this filter (default 2)
50 49
      */
51 50
     public function __construct($length = 2) {
52 51
         $this->length = $length;
Please login to merge, or discard this patch.
modules/AOD_Index/Lib/Zend/Search/Lucene/Document/Html.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -406,7 +406,7 @@
 block discarded – undo
406 406
      *
407 407
      * @param string|array $words  Words to highlight. Words could be organized using the array or string.
408 408
      * @param callback $callback   Callback method, used to transform (highlighting) text.
409
-     * @param array    $params     Array of additionall callback parameters passed through into it
409
+     * @param string[]    $params     Array of additionall callback parameters passed through into it
410 410
      *                             (first non-optional parameter is an HTML fragment for highlighting)
411 411
      * @return string
412 412
      * @throws Zend_Search_Lucene_Exception
Please login to merge, or discard this patch.
modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,6 @@
 block discarded – undo
169 169
      *
170 170
      * @param string $name
171 171
      * @param string $value
172
-     * @param string $encoding
173 172
      * @return Zend_Search_Lucene_Field
174 173
      */
175 174
     public static function binary($name, $value)
Please login to merge, or discard this patch.
modules/AOD_Index/Lib/Zend/Search/Lucene/FSM.php 1 patch
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
      * FSM actions are very flexible and may be defined by addEntryAction(), addExitAction(),
131 131
      * addInputAction() and addTransitionAction() calls.
132 132
      *
133
-     * @param array $states
134
-     * @param array $inputAphabet
133
+     * @param integer[] $states
134
+     * @param integer[] $inputAphabet
135 135
      * @param array $rules
136 136
      */
137 137
     public function __construct($states = array(), $inputAphabet = array(), $rules = array())
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      * Several entry actions are allowed.
283 283
      * Action execution order is defined by addEntryAction() calls
284 284
      *
285
-     * @param integer|string $state
285
+     * @param integer $state
286 286
      * @param Zend_Search_Lucene_FSMAction $action
287 287
      */
288 288
     public function addEntryAction($state, Zend_Search_Lucene_FSMAction $action)
@@ -327,7 +327,6 @@  discard block
 block discarded – undo
327 327
      * Action execution order is defined by addInputAction() calls
328 328
      *
329 329
      * @param integer|string $state
330
-     * @param integer|string $input
331 330
      * @param Zend_Search_Lucene_FSMAction $action
332 331
      */
333 332
     public function addInputAction($state, $inputSymbol, Zend_Search_Lucene_FSMAction $action)
@@ -356,8 +355,8 @@  discard block
 block discarded – undo
356 355
      * Several transition actions are allowed.
357 356
      * Action execution order is defined by addTransitionAction() calls
358 357
      *
359
-     * @param integer|string $sourceState
360
-     * @param integer|string $targetState
358
+     * @param integer $sourceState
359
+     * @param integer $targetState
361 360
      * @param Zend_Search_Lucene_FSMAction $action
362 361
      */
363 362
     public function addTransitionAction($sourceState, $targetState, Zend_Search_Lucene_FSMAction $action)
Please login to merge, or discard this patch.
modules/AOD_Index/Lib/Zend/Search/Lucene/Index/SegmentInfo.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1499,6 +1499,7 @@  discard block
 block discarded – undo
1499 1499
      * Checks, that document is deleted
1500 1500
      *
1501 1501
      * @param integer
1502
+     * @param integer $id
1502 1503
      * @return boolean
1503 1504
      */
1504 1505
     public function isDeleted($id)
@@ -1762,8 +1763,6 @@  discard block
 block discarded – undo
1762 1763
      *
1763 1764
      * Returns start document id for the next segment
1764 1765
      *
1765
-     * @param integer $startId
1766
-     * @param integer $mode
1767 1766
      * @throws Zend_Search_Lucene_Exception
1768 1767
      * @return integer
1769 1768
      */
@@ -2110,7 +2109,7 @@  discard block
 block discarded – undo
2110 2109
     /**
2111 2110
      * Returns term in current position
2112 2111
      *
2113
-     * @return Zend_Search_Lucene_Index_Term|null
2112
+     * @return Zend_Search_Lucene_Index_Term
2114 2113
      */
2115 2114
     public function currentTerm()
2116 2115
     {
Please login to merge, or discard this patch.