Test Failed
Push — CI ( c95a04...5b7ec7 )
by Adam
105:00 queued 49:09
created
soap/SoapError.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
 		$this->set_error('no_error');
49 49
 	}
50 50
 
51
+	/**
52
+	 * @param string $error_name
53
+	 */
51 54
 	function set_error($error_name){
52 55
 		global $error_defs;
53 56
 		if(!isset($error_defs[$error_name])){
Please login to merge, or discard this patch.
soap/SoapHelperFunctions.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
  * @param String $module_id -- The ID of the bean in the specified module
612 612
  * @param String $link_field_name - The relationship name for which to create realtionships.
613 613
  * @param Array $related_ids -- The array of ids for which we want to create relationships
614
- * @return true on success, false on failure
614
+ * @return boolean on success, false on failure
615 615
  */
616 616
 function new_handle_set_relationship($module_name, $module_id, $link_field_name, $related_ids) {
617 617
     global  $beanList, $beanFiles;
@@ -1037,6 +1037,9 @@  discard block
 block discarded – undo
1037 1037
         return false;
1038 1038
 }
1039 1039
 
1040
+/**
1041
+ * @param string $file_in_zip
1042
+ */
1040 1043
 function getFile( $zip_file, $file_in_zip ){
1041 1044
     $base_upgrade_dir = sugar_cached("/upgrades");
1042 1045
     $base_tmp_upgrade_dir   = "$base_upgrade_dir/temp";
Please login to merge, or discard this patch.
soap/SoapPortalHelper.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
 */
126 126
 
127 127
 
128
+/**
129
+ * @param string $in
130
+ */
128 131
 function get_notes_in_contacts($in, $orderBy = '')
129 132
     {
130 133
         //bail if the in is empty
@@ -140,6 +143,9 @@  discard block
 block discarded – undo
140 143
         return $contact->build_related_list($query, $note);
141 144
     }
142 145
 
146
+/**
147
+ * @param string $in
148
+ */
143 149
 function get_notes_in_module($in, $module, $orderBy = '')
144 150
     {
145 151
         //bail if the in is empty
@@ -163,6 +169,9 @@  discard block
 block discarded – undo
163 169
         return $sugar->build_related_list($query, $note);
164 170
     }
165 171
 
172
+    /**
173
+     * @param string $in
174
+     */
166 175
     function get_related_in_module($in, $module, $rel_module, $orderBy = '', $row_offset = 0, $limit= -1)
167 176
     {
168 177
         global $beanList, $beanFiles;
@@ -245,6 +254,9 @@  discard block
 block discarded – undo
245 254
         set_module_in($sugar->build_related_in($query), 'Contacts');
246 255
     }
247 256
 
257
+/**
258
+ * @param string $in
259
+ */
248 260
 function get_related_list($in, $template, $where, $order_by, $row_offset = 0, $limit = ""){
249 261
 
250 262
         $q = '';
@@ -271,6 +283,9 @@  discard block
 block discarded – undo
271 283
 
272 284
     }
273 285
 
286
+/**
287
+ * @param Contact $contact
288
+ */
274 289
 function build_relationship_tree($contact){
275 290
     global $sugar_config;
276 291
     $contact->retrieve($contact->id);
Please login to merge, or discard this patch.
soap/SoapRelationshipHelper.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -146,6 +146,9 @@  discard block
 block discarded – undo
146 146
  *         error Mixed Array containing the SOAP errors if found, empty otherwise
147 147
  *
148 148
  */
149
+/**
150
+ * @param integer $show_deleted
151
+ */
149 152
 function retrieve_modified_relationships($module_name, $related_module, $relationship_query, $show_deleted, $offset, $max_results, $select_fields = array(), $relationship_name = ''){
150 153
 
151 154
     global  $beanList, $beanFiles, $dictionary, $current_user;
@@ -480,6 +483,11 @@  discard block
 block discarded – undo
480 483
 
481 484
 // Retrieves array of ids for records of $get_module linked to $from_module by $get_id
482 485
 // Example: to retrieve list of Contacts associated to Account X: $return = get_linked_records("Contacts", "Accounts", "X");
486
+/**
487
+ * @param string $get_module
488
+ * @param string $from_module
489
+ * @param string $get_id
490
+ */
483 491
 function get_linked_records($get_module, $from_module, $get_id) {
484 492
 	global $beanList, $beanFiles;
485 493
 
Please login to merge, or discard this patch.
soap/SoapSugarUsers.php 1 patch
Doc Comments   +10 added lines, -8 removed lines patch added patch discarded remove patch
@@ -168,8 +168,8 @@  discard block
 block discarded – undo
168 168
  * Check to see if the soap server and client are on the same machine.
169 169
  * We don't allow a server to sync to itself.
170 170
  *
171
- * @return true -- if the SOAP server and client are on the same machine
172
- * @return false -- if the SOAP server and client are not on the same machine.
171
+ * @return integer -- if the SOAP server and client are on the same machine
172
+ * @return integer -- if the SOAP server and client are not on the same machine.
173 173
  */
174 174
 function is_loopback(){
175 175
 	if(query_client_ip() == $_SERVER['SERVER_ADDR'])
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
  * Validate the provided session information is correct and current.  Load the session.
182 182
  *
183 183
  * @param String $session_id -- The session ID that was returned by a call to login.
184
- * @return true -- If the session is valid and loaded.
185
- * @return false -- if the session is not valid.
184
+ * @return boolean -- If the session is valid and loaded.
185
+ * @return boolean -- if the session is not valid.
186 186
  */
187 187
 function validate_authenticated($session_id){
188 188
 	if(!empty($session_id)){
@@ -261,8 +261,8 @@  discard block
 block discarded – undo
261 261
  * Perform a seamless login.  This is used internally during the sync process.
262 262
  *
263 263
  * @param String $session -- Session ID returned by a previous call to login.
264
- * @return true -- if the session was authenticated
265
- * @return false -- if the session could not be authenticated
264
+ * @return integer -- if the session was authenticated
265
+ * @return integer -- if the session could not be authenticated
266 266
  */
267 267
 function seamless_login($session){
268 268
 		if(!validate_authenticated($session)){
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
  *
465 465
  * @param String $session -- Session ID returned by a previous call to login.
466 466
  * @param String $module_name -- The name of the module to return records from.  This name should be the name the module was developed under (changing a tab name is studio does not affect the name that should be passed into this method)..
467
- * @param Array $ids -- An array of SugarBean IDs.
467
+ * @param string[] $ids -- An array of SugarBean IDs.
468 468
  * @param Array $select_fields -- A list of the fields to be included in the results. This optional parameter allows for only needed fields to be retrieved.
469 469
  * @return Array 'field_list' -- Var def information about the returned fields
470 470
  *               'entry_list' -- The records that were retrieved
@@ -680,7 +680,6 @@  discard block
 block discarded – undo
680 680
 /**
681 681
  * Retrieve an attachment from a note
682 682
  * @param String $session -- Session ID returned by a previous call to login.
683
- * @param Binary $note -- The flie contents of the attachment.
684 683
  * @return Array 'id' -- The ID of the new note or -1 on error
685 684
  *               'error' -- The SOAP error if any.
686 685
  *
@@ -2152,6 +2151,9 @@  discard block
 block discarded – undo
2152 2151
 }
2153 2152
 
2154 2153
 // INTERNAL FUNCTION NOT EXPOSED THROUGH API
2154
+/**
2155
+ * @param string $module_name
2156
+ */
2155 2157
 function handle_set_entries($module_name, $name_value_lists, $select_fields = FALSE) {
2156 2158
 	global $beanList, $beanFiles, $app_list_strings, $current_user;
2157 2159
 
Please login to merge, or discard this patch.
src/SuiteCrm/Command/CacheClearCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * @param InputInterface $input
34 34
      * @param OutputInterface $output
35
-     * @return bool
35
+     * @return boolean|null
36 36
      */
37 37
     protected function execute(InputInterface $input, OutputInterface $output) {
38 38
         parent::_execute($input, $output);
Please login to merge, or discard this patch.
SugarSecurity.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@
 block discarded – undo
72 72
 		}
73 73
 	}
74 74
 	
75
+	/**
76
+	 * @param string $contents
77
+	 */
75 78
 	function scanContents($contents){
76 79
 		return;	
77 80
 	}
Please login to merge, or discard this patch.
XTemplate/xtpl.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -278,6 +278,9 @@  discard block
 block discarded – undo
278 278
 /*
279 279
 	returns true if a block exists otherwise returns false.
280 280
 */
281
+/**
282
+ * @param string $bname
283
+ */
281 284
 function exists($bname){
282 285
 	return (!empty($this->parsed_blocks[$bname])) || (!empty($this->blocks[$bname]));
283 286
 }
@@ -325,6 +328,9 @@  discard block
 block discarded – undo
325 328
 	returns the parsed text for a block
326 329
 */
327 330
 
331
+/**
332
+ * @return string
333
+ */
328 334
 function text($bname) {
329 335
 
330 336
     if(!empty($this->parsed_blocks)){
@@ -446,6 +452,9 @@  discard block
 block discarded – undo
446 452
 */
447 453
 
448 454
 
455
+/**
456
+ * @param string $block
457
+ */
449 458
 function maketree($con,$block) {
450 459
 	$con2=explode($this->block_start_delim,$con);
451 460
 	$level=0;
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -361,6 +361,9 @@
 block discarded – undo
361 361
 		return $this->recursiveVariableReplace($defs, $module, $var_values);
362 362
 	}
363 363
 
364
+	/**
365
+	 * @return string
366
+	 */
364 367
 	public function getModuleDir(){
365 368
 		return $this->module_dir;
366 369
 	}
Please login to merge, or discard this patch.