Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created
modules/Opportunities/SaveOverload.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
  ********************************************************************************/
40 40
 
41 41
 
42
+/**
43
+ * @param Opportunity $focus
44
+ */
42 45
 function perform_save(&$focus){
43 46
 	//US DOLLAR
44 47
 	if(isset($focus->amount) && !number_empty($focus->amount)){
Please login to merge, or discard this patch.
modules/Project/chart.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
     private $end_date;
25 25
     private $tasks;
26 26
 
27
+    /**
28
+     * @param string $start_date
29
+     */
27 30
     public function __construct($start_date, $end_date, $tasks)
28 31
     {
29 32
         $this->start_date = $start_date;
@@ -269,6 +272,10 @@  discard block
 block discarded – undo
269 272
     }
270 273
 
271 274
     //get date of passed in day in relation to the charts start date
275
+
276
+    /**
277
+     * @param integer $day
278
+     */
272 279
     function get_date($start, $day){
273 280
         $date = DateTime::createFromFormat('Y-m-d', $start);
274 281
        // $date->setTimezone(new DateTimeZone("Europe/London"));
Please login to merge, or discard this patch.
modules/Project/controller.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -202,6 +202,12 @@  discard block
 block discarded – undo
202 202
     }
203 203
 
204 204
 
205
+    /**
206
+     * @param string $milestone_flag
207
+     * @param string $status
208
+     * @param integer $project_task_id
209
+     * @param integer $order_number
210
+     */
205 211
     function create_task($name, $start, $end, $project_id, $milestone_flag, $status, $project_task_id, $predecessors, $rel_type, $duration, $duration_unit, $resource, $percent_complete, $description,$actual_duration,$order_number){
206 212
 
207 213
         $task = new ProjectTask();
@@ -224,6 +230,10 @@  discard block
 block discarded – undo
224 230
         $task->save();
225 231
     }
226 232
 
233
+    /**
234
+     * @param string $milestone_flag
235
+     * @param string $status
236
+     */
227 237
     function update_task($id, $name, $start, $end, $project_id, $milestone_flag, $status, $predecessors, $rel_type, $duration, $duration_unit, $resource, $percent_complete, $description,$actual_duration){
228 238
 
229 239
         $task = new ProjectTask();
@@ -397,6 +407,10 @@  discard block
 block discarded – undo
397 407
 
398 408
 
399 409
     //Returns the total number of days between two dates
410
+
411
+    /**
412
+     * @param string $start_date
413
+     */
400 414
     function count_days($start_date, $end_date){
401 415
         $d1 = new DateTime($start_date);
402 416
         $d2 = new DateTime($end_date);
Please login to merge, or discard this patch.
modules/ProjectTask/ProjectTask.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -209,6 +209,9 @@
 block discarded – undo
209 209
 		return $return_value;
210 210
 	}
211 211
 
212
+    /**
213
+     * @param string $project_id
214
+     */
212 215
     function _get_project_name($project_id)
213 216
     {
214 217
         $return_value = '';
Please login to merge, or discard this patch.
modules/ProspectLists/ProspectList.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -295,6 +295,10 @@
 block discarded – undo
295 295
     		$this->set_prospect_relationship($this->id, $this->contact_id, "prospect");
296 296
     }
297 297
 
298
+	/**
299
+	 * @param string $prospect_list_id
300
+	 * @param string $link_name
301
+	 */
298 302
 	function set_prospect_relationship($prospect_list_id, &$link_ids, $link_name)
299 303
 	{
300 304
 		$link_field = sprintf("%s_id", $link_name);
Please login to merge, or discard this patch.
modules/ProspectLists/ProspectListFormBase.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@
 block discarded – undo
50 50
 class ProspectListFormBase {
51 51
 
52 52
 
53
+/**
54
+ * @param string $prefix
55
+ */
53 56
 function getForm($prefix, $mod='', $form=''){
54 57
 	
55 58
 	if(!ACLController::checkAccess('ProspectLists', 'edit', true)){
Please login to merge, or discard this patch.
modules/Relationships/Relationship.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -246,6 +246,9 @@
 block discarded – undo
246 246
 	}
247 247
 
248 248
 
249
+	/**
250
+	 * @param string $base_module
251
+	 */
249 252
 	function trace_relationship_module($base_module, $rel_module1_name, $rel_module2_name=""){
250 253
 		global $beanList;
251 254
 		global $dictionary;
Please login to merge, or discard this patch.
modules/Relationships/RelationshipHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -320,6 +320,9 @@
 block discarded – undo
320 320
 //end function get_relationship_information
321 321
 }	
322 322
 
323
+/**
324
+ * @param string $base_module
325
+ */
323 326
 function traverse_rel_meta($base_module, & $target_bean, $target_rel_name){
324 327
 	$id_name = null;
325 328
 
Please login to merge, or discard this patch.
modules/SavedSearch/SavedSearch.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -86,6 +86,10 @@  discard block
 block discarded – undo
86 86
 	}
87 87
 
88 88
 	// Saved Search Form
89
+
90
+	/**
91
+	 * @param string $module
92
+	 */
89 93
 	function getForm($module, $inline = true) {
90 94
 	    global $db, $current_user, $currentModule, $current_language, $app_strings;
91 95
         $json = getJSONobj();
@@ -175,6 +179,9 @@  discard block
 block discarded – undo
175 179
         return $sugarSmarty->fetch('modules/SavedSearch/SavedSearchForm.tpl');
176 180
 	}
177 181
 
182
+    /**
183
+     * @param string $module
184
+     */
178 185
     function getSelect($module) {
179 186
 
180 187
 
@@ -341,6 +348,10 @@  discard block
 block discarded – undo
341 348
         }
342 349
     }
343 350
 
351
+	/**
352
+	 * @param string $search_query
353
+	 * @param string $saved_search_id
354
+	 */
344 355
 	function handleRedirect($return_module, $search_query, $saved_search_id, $advanced = 'false') {
345 356
         $_SESSION['LastSavedView'][$return_module] = $saved_search_id;
346 357
         $return_action = 'index';
Please login to merge, or discard this patch.