Test Failed
Push — CI ( 0f01dd...c95a04 )
by Adam
55:13
created
include/javascript/javascript.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -71,12 +71,20 @@  discard block
 block discarded – undo
71 71
 			}
72 72
 	}
73 73
 
74
+    /**
75
+     * @param string $dispField
76
+     * @param string $type
77
+     * @param string $required
78
+     */
74 79
     function addSpecialField($dispField, $realField, $type, $required, $prefix = '') {
75 80
        if (isset($this->sugarbean->field_name_map[$realField]['vname'])) {
76 81
     	$this->addFieldGeneric($dispField, 'date', $this->sugarbean->field_name_map[$realField]['vname'], $required, $prefix );
77 82
        }
78 83
     }
79 84
 
85
+	/**
86
+	 * @param string $required
87
+	 */
80 88
 	function addField($field,$required, $prefix='', $displayField='', $translate = false){
81 89
 		if ($field == "id") return;
82 90
         if(isset($this->sugarbean->field_name_map[$field]['vname'])){
@@ -184,6 +192,10 @@  discard block
 block discarded – undo
184 192
 	}
185 193
 
186 194
     // Bug #47961 Generator of callback validator
195
+
196
+    /**
197
+     * @param string $prefix
198
+     */
187 199
     function addFieldCallback($field, $type, $displayName, $required, $prefix, $callback)
188 200
     {
189 201
         $this->script .= 'addToValidateCallback("'
@@ -230,6 +242,11 @@  discard block
 block discarded – undo
230 242
                        . $this->stripEndColon(translate($displayName,$this->sugarbean->module_dir)) . "', '$compareTo', '$allowBlank' );\n";
231 243
 	}
232 244
 
245
+	/**
246
+	 * @param string $type
247
+	 * @param string $displayName
248
+	 * @param string $required
249
+	 */
233 250
 	function addToValidateBinaryDependency($field, $type, $displayName, $required, $prefix='',$compareTo){
234 251
 		$this->script .= "addToValidateBinaryDependency('".$this->formname."', '".$prefix.$field."', '".$type . "', {$this->getRequiredString($required)},'"
235 252
                        . $this->stripEndColon(translate($displayName,$this->sugarbean->module_dir)) . "', '$compareTo' );\n";
@@ -248,6 +265,9 @@  discard block
 block discarded – undo
248 265
 		$this->script .= "addToValidateIsInArray('{$this->formname}', '{$name}', '{$type}', {$req}, '".$this->stripEndColon(translate($displayName,$this->sugarbean->module_dir))."', '{$arr}', '{$operator}');\n";
249 266
     }
250 267
 
268
+	/**
269
+	 * @param string $prefix
270
+	 */
251 271
 	function addAllFields($prefix,$skip_fields=null, $translate = false){
252 272
 		if (!isset($skip_fields))
253 273
 		{
Please login to merge, or discard this patch.
include/javascript/jsAlerts.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -59,6 +59,10 @@
 block discarded – undo
59 59
 			$this->addAlert($app_strings['ERROR_JS_ALERT_SYSTEM_CLASS'], $app_strings['ERROR_JS_ALERT_TIMEOUT_TITLE'],'', $app_strings['ERROR_JS_ALERT_TIMEOUT_MSG_2'], (session_cache_expire()) * 60 , 'index.php');
60 60
 		}
61 61
 	}
62
+
63
+	/**
64
+	 * @param string $subtitle
65
+	 */
62 66
 	function addAlert($type, $name, $subtitle, $description, $countdown, $redirect='')
63 67
     {
64 68
 		$script = 'addAlert(' . json_encode($type) .',' . json_encode($name). ',' . json_encode($subtitle). ','. json_encode(str_replace(array("\r", "\n"), array('','<br>'),$description)) . ',' . $countdown . ','.json_encode($redirect).');' . "\n";
Please login to merge, or discard this patch.
include/json_config.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@
 block discarded – undo
53 53
 class json_config {
54 54
 	var $global_registry_var_name = 'GLOBAL_REGISTRY';
55 55
 
56
+	/**
57
+	 * @param string $module
58
+	 */
56 59
 	function get_static_json_server($configOnly = true, $getStrings = false, $module = null, $record = null, $scheduler = false) {
57 60
 		global $current_user;
58 61
 		$str = '';
Please login to merge, or discard this patch.
include/ListView/ListView.php 1 patch
Doc Comments   +34 added lines, -7 removed lines patch added patch discarded remove patch
@@ -105,6 +105,9 @@  discard block
 block discarded – undo
105 105
 }
106 106
 
107 107
 
108
+/**
109
+ * @param string $xTemplateSection
110
+ */
108 111
 function processListView($seed, $xTemplateSection, $html_varName)
109 112
 {
110 113
     global $sugar_config;
@@ -232,8 +235,8 @@  discard block
 block discarded – undo
232 235
 /**
233 236
  * @return void
234 237
  * @param unknown $data
235
- * @param unknown $xTemplateSection
236
- * @param unknown $html_varName
238
+ * @param string $xtemplateSection
239
+ * @param string $html_varName
237 240
  * @desc INTERNAL FUNCTION handles the rows
238 241
  */
239 242
  function process_dynamic_listview_rows($data,$parent_data, $xtemplateSection, $html_varName, $subpanel_def)
@@ -610,6 +613,9 @@  discard block
 block discarded – undo
610 613
  * All Rights Reserved.
611 614
  * Contributor(s): ______________________________________.
612 615
 */
616
+ /**
617
+  * @param string $value
618
+  */
613 619
  function setHeaderText($value) {
614 620
     $this->header_text = $value;
615 621
 }
@@ -728,6 +734,9 @@  discard block
 block discarded – undo
728 734
  * All Rights Reserved.
729 735
  * Contributor(s): ______________________________________.
730 736
 */
737
+ /**
738
+  * @param string $where
739
+  */
731 740
  function setQuery($where, $limit, $orderBy, $varName, $allowOrderByOveride=true) {
732 741
     $this->query_where = $where;
733 742
     if($this->getSessionVariable("query", "where") != $where) {
@@ -834,6 +843,9 @@  discard block
 block discarded – undo
834 843
  * All Rights Reserved.
835 844
  * Contributor(s): ______________________________________.
836 845
 */
846
+ /**
847
+  * @param XTemplate $newXTemplate
848
+  */
837 849
  function setXTemplate($newXTemplate) {
838 850
     $this->xTemplate = $newXTemplate;
839 851
 }
@@ -852,6 +864,9 @@  discard block
 block discarded – undo
852 864
  * All Rights Reserved.
853 865
  * Contributor(s): ______________________________________.
854 866
 */
867
+ /**
868
+  * @param string $name
869
+  */
855 870
  function xTemplateAssign($name, $value) {
856 871
 
857 872
         if(!isset($this->xTemplate)) {
@@ -906,6 +921,9 @@  discard block
 block discarded – undo
906 921
  * All Rights Reserved.
907 922
  * Contributor(s): ______________________________________.
908 923
 */
924
+ /**
925
+  * @param string $varName
926
+  */
909 927
  function getSessionVariable($localVarName,$varName) {
910 928
     //Set any variables pass in through request first
911 929
     if(isset($_REQUEST[$this->getSessionVariableName($localVarName, $varName)])) {
@@ -961,7 +979,7 @@  discard block
 block discarded – undo
961 979
 
962 980
     /**
963 981
 
964
-    * @return void
982
+    * @return string
965 983
     * @param unknown $localVarName
966 984
     * @param unknown $varName
967 985
     * @desc INTERNAL FUNCTION returns the session/query variable name
@@ -977,7 +995,7 @@  discard block
 block discarded – undo
977 995
 
978 996
     * @return void
979 997
     * @param unknown $seed
980
-    * @param unknown $xTemplateSection
998
+    * @param unknown $xtemplateSection
981 999
     * @param unknown $html_varName
982 1000
     * @desc INTERNAL FUNCTION Handles List Views using seeds that extend SugarBean
983 1001
         $XTemplateSection is the section in the XTemplate file that should be parsed usually main
@@ -1169,8 +1187,7 @@  discard block
 block discarded – undo
1169 1187
     }
1170 1188
     /**
1171 1189
     * @return void
1172
-    * @param unknown $data
1173
-    * @param unknown $xTemplateSection
1190
+    * @param unknown $xtemplateSection
1174 1191
     * @param unknown $html_varName
1175 1192
     * @desc INTERNAL FUNCTION process the List Navigation
1176 1193
     * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
@@ -1550,7 +1567,7 @@  discard block
 block discarded – undo
1550 1567
     /**
1551 1568
     * @return void
1552 1569
     * @param unknown $data
1553
-    * @param unknown $xTemplateSection
1570
+    * @param unknown $xtemplateSection
1554 1571
     * @param unknown $html_varName
1555 1572
     * @desc INTERNAL FUNCTION handles the rows
1556 1573
     * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
@@ -2036,6 +2053,10 @@  discard block
 block discarded – undo
2036 2053
      * All Rights Reserved.
2037 2054
      * Contributor(s): ______________________________________.
2038 2055
      */
2056
+
2057
+     /**
2058
+      * @param string $varName
2059
+      */
2039 2060
      function setLocalSessionVariable($localVarName,$varName, $value) {
2040 2061
         $_SESSION[$localVarName."_".$varName] = $value;
2041 2062
      }
@@ -2046,6 +2067,12 @@  discard block
 block discarded – undo
2046 2067
      * All Rights Reserved.
2047 2068
      * Contributor(s): ______________________________________.
2048 2069
      */
2070
+
2071
+ /**
2072
+  * @param string $varName
2073
+  *
2074
+  * @return string
2075
+  */
2049 2076
  function getLocalSessionVariable($localVarName,$varName) {
2050 2077
     if(isset($_SESSION[$localVarName."_".$varName])) {
2051 2078
         return $_SESSION[$localVarName."_".$varName];
Please login to merge, or discard this patch.
include/ListView/ListViewData.php 1 patch
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -162,7 +162,8 @@  discard block
 block discarded – undo
162 162
 	/**
163 163
 	 * based off of a base name it sets base, offset, and order by variable names to retrieve them from requests and sessions
164 164
 	 *
165
-	 * @param unknown_type $baseName
165
+	 * @param string $baseName
166
+	 * @param string $where
166 167
 	 */
167 168
 	function setVariableName($baseName, $where, $listviewName = null){
168 169
         global $timedate;
@@ -180,6 +181,9 @@  discard block
 block discarded – undo
180 181
         $_SESSION[strtoupper($baseName) . "_DETAIL_NAV_HISTORY"] = false;
181 182
 	}
182 183
 
184
+	/**
185
+	 * @param string $main_query
186
+	 */
183 187
 	function getTotalCount($main_query){
184 188
 		if(!empty($this->count_query)){
185 189
 		    $count_query = $this->count_query;
@@ -605,8 +609,8 @@  discard block
 block discarded – undo
605 609
      * generates the additional details values
606 610
      *
607 611
      * @param unknown_type $fields
608
-     * @param unknown_type $adFunction
609
-     * @param unknown_type $editAccess
612
+     * @param string $adFunction
613
+     * @param boolean $editAccess
610 614
      * @return array string to attach to field
611 615
      */
612 616
     function getAdditionalDetails($fields, $adFunction, $editAccess)
Please login to merge, or discard this patch.
include/ListView/ListViewDisplay.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -75,6 +75,10 @@
 block discarded – undo
75 75
 		$this->lvd = new ListViewData();
76 76
 		$this->searchColumns = array () ;
77 77
 	}
78
+
79
+	/**
80
+	 * @param string $moduleDir
81
+	 */
78 82
 	function shouldProcess($moduleDir){
79 83
 		$searching = false;
80 84
 		$sessionSearchQuery = "{$moduleDir}2_QUERY_QUERY";
Please login to merge, or discard this patch.
include/Localization/Localization.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -122,6 +122,7 @@
 block discarded – undo
122 122
 	 * abstraction of precedence
123 123
 	 * @param string prefName Name of preference to retrieve based on overrides
124 124
 	 * @param object user User in focus, default null (current_user)
125
+	 * @param string $prefName
125 126
 	 * @return string pref Most significant preference
126 127
 	 */
127 128
 	function getPrecedentPreference($prefName, $user=null, $sugarConfigPrefName = '') {
Please login to merge, or discard this patch.
include/MassUpdate.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -1151,6 +1151,9 @@  discard block
 block discarded – undo
1151 1151
 		return $html;
1152 1152
 	}
1153 1153
 
1154
+	/**
1155
+	 * @param string $value
1156
+	 */
1154 1157
 	function date_to_dateTime($field, $value) {
1155 1158
 		global $timedate;
1156 1159
 	    //Check if none was set
@@ -1180,6 +1183,9 @@  discard block
 block discarded – undo
1180 1183
 	    return $value." ".$oldTime;
1181 1184
 	}
1182 1185
 
1186
+	/**
1187
+	 * @param string $value
1188
+	 */
1183 1189
 	function checkClearField($field, $value) {
1184 1190
 	    if ($value == 1 && strpos($field, '_flag')) {
1185 1191
 	        $fName = substr($field, -5);
Please login to merge, or discard this patch.
include/MVC/Controller/SugarController.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,6 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
 	/**
246 246
 	 * Generic load method to load mapping arrays.
247
+	 * @param string $var
247 248
 	 */
248 249
 	private function loadMapping($var, $merge = false){
249 250
 		$$var = sugar_cache_retrieve("CONTROLLER_". $var . "_".$this->module);
@@ -469,7 +470,8 @@  discard block
 block discarded – undo
469 470
 	/**
470 471
 	 * Determine if a given function exists on the objects
471 472
 	 * @param function - the function to check
472
-	 * @return true if the method exists on the object, false otherwise
473
+	 * @param string $function
474
+	 * @return boolean if the method exists on the object, false otherwise
473 475
 	 */
474 476
 	protected function hasFunction($function){
475 477
 		return method_exists($this, $function);
@@ -777,6 +779,7 @@  discard block
 block discarded – undo
777 779
 
778 780
 	/**
779 781
 	 * getActionFilename
782
+	 * @param string $action
780 783
 	 */
781 784
 	public static function getActionFilename($action) {
782 785
 	   if(isset(self::$action_case_file[$action])) {
Please login to merge, or discard this patch.