@@ -47,6 +47,9 @@ discard block |
||
47 | 47 | public $execute; |
48 | 48 | protected $module_list_from_cache; |
49 | 49 | |
50 | + /** |
|
51 | + * @param string[] $selected_actions |
|
52 | + */ |
|
50 | 53 | public function repairAndClearAll($selected_actions, $modules, $autoexecute=false, $show_output=true) |
51 | 54 | { |
52 | 55 | global $mod_strings; |
@@ -446,6 +449,11 @@ discard block |
||
446 | 449 | /////////////////////////////////////////////////////////////// |
447 | 450 | //// Recursively unlink all files of the given $extension in the given $thedir. |
448 | 451 | // |
452 | + |
|
453 | + /** |
|
454 | + * @param string $thedir |
|
455 | + * @param string $extension |
|
456 | + */ |
|
449 | 457 | private function _clearCache($thedir, $extension) |
450 | 458 | { |
451 | 459 | if ($current = @opendir($thedir)) { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * addDirectory |
107 | 107 | * |
108 | 108 | * This function is used to create the spriteSrc array |
109 | - * @param $name String value of the sprite name |
|
109 | + * @param string $name String value of the sprite name |
|
110 | 110 | * @param $dir String value of the directory associated with the sprite entry |
111 | 111 | */ |
112 | 112 | public function addDirectory($name, $dir) { |
@@ -212,6 +212,7 @@ discard block |
||
212 | 212 | * This is a private helper function to return attributes about an image. If the width, height or type of the |
213 | 213 | * image file cannot be determined, then we do not process the file. |
214 | 214 | * |
215 | + * @param string $file |
|
215 | 216 | * @return array of file info entries containing file information (x, y, type) if image type is supported |
216 | 217 | */ |
217 | 218 | private function getFileInfo($dir, $file) { |
@@ -631,6 +632,10 @@ discard block |
||
631 | 632 | } |
632 | 633 | |
633 | 634 | // helper function to get highest axis value |
635 | + |
|
636 | + /** |
|
637 | + * @param string $axis |
|
638 | + */ |
|
634 | 639 | function getMaxAxis($axis) { |
635 | 640 | $val = 0; |
636 | 641 | foreach($this->spriteMatrix as $id => $coor) { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * Given a name check if it exists in the table |
87 | 87 | * @param name the unique key from the manifest |
88 | 88 | * @param id the id of the item you are comparing to |
89 | - * @return upgrade_history object if found, null otherwise |
|
89 | + * @return null|UpgradeHistory object if found, null otherwise |
|
90 | 90 | */ |
91 | 91 | function checkForExisting($patch_to_check){ |
92 | 92 | $uh = new UpgradeHistory(); |
@@ -152,10 +152,16 @@ discard block |
||
152 | 152 | return $this->getList($query); |
153 | 153 | } |
154 | 154 | |
155 | + /** |
|
156 | + * @param string $query |
|
157 | + */ |
|
155 | 158 | function getList($query){ |
156 | 159 | return( parent::build_related_list( $query, $this ) ); |
157 | 160 | } |
158 | 161 | |
162 | + /** |
|
163 | + * @param string $var_md5 |
|
164 | + */ |
|
159 | 165 | function findByMd5( $var_md5 ) |
160 | 166 | { |
161 | 167 | $query = "SELECT id FROM " . $this->table_name . " where md5sum = '$var_md5'"; |
@@ -200,6 +206,10 @@ discard block |
||
200 | 206 | return true; |
201 | 207 | } |
202 | 208 | |
209 | + /** |
|
210 | + * @param string $check_path |
|
211 | + * @param string $recent_path |
|
212 | + */ |
|
203 | 213 | function foundConflict($check_path, $recent_path) |
204 | 214 | { |
205 | 215 | if(is_file($check_path)) |
@@ -83,6 +83,9 @@ discard block |
||
83 | 83 | |
84 | 84 | |
85 | 85 | |
86 | +/** |
|
87 | + * @return string |
|
88 | + */ |
|
86 | 89 | function extractFile( $zip_file, $file_in_zip ){ |
87 | 90 | global $base_tmp_upgrade_dir; |
88 | 91 | if(empty($base_tmp_upgrade_dir)){ |
@@ -94,6 +97,9 @@ discard block |
||
94 | 97 | return( "$my_zip_dir/$file_in_zip" ); |
95 | 98 | } |
96 | 99 | |
100 | +/** |
|
101 | + * @return string |
|
102 | + */ |
|
97 | 103 | function extractManifest( $zip_file ){ |
98 | 104 | return( extractFile( $zip_file, "manifest.php" ) ); |
99 | 105 | } |
@@ -86,7 +86,7 @@ discard block |
||
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 |
||
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); |
@@ -200,7 +200,7 @@ discard block |
||
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 |
||
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 |
||
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 | { |
@@ -147,7 +147,6 @@ |
||
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 | { |
@@ -82,7 +82,6 @@ discard block |
||
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 |
||
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 | { |
@@ -46,7 +46,6 @@ |
||
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; |