Passed
Push — scrutinizer-code-quality ( eedb15...27193c )
by Adam
54:15 queued 15s
created
modules/Employees/views/view.list.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     * Return the "breadcrumbs" to display at the top of the page
69 69
     *
70 70
     * @param  bool $show_help optional, true if we show the help links
71
-    * @return HTML string containing breadcrumb title
71
+    * @return string string containing breadcrumb title
72 72
     */
73 73
     public function getModuleTitle($show_help = true)
74 74
     {
Please login to merge, or discard this patch.
modules/FP_events/controller.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -598,6 +598,12 @@
 block discarded – undo
598 598
     }
599 599
 
600 600
     //handles sending the emails
601
+
602
+    /**
603
+     * @param string $emailToname
604
+     * @param string $emailBody
605
+     * @param string $altemailBody
606
+     */
601 607
     public function sendEmail($emailTo, $emailSubject, $emailToname, $emailBody, $altemailBody, SugarBean $relatedBean = null, $attachments = array()){
602 608
        
603 609
         $emailObj = new Email();
Please login to merge, or discard this patch.
modules/Home/Dashlets/RSSDashlet/RSSDashlet.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -142,6 +142,9 @@
 block discarded – undo
142 142
         return $options;
143 143
     }
144 144
 
145
+    /**
146
+     * @param string $url
147
+     */
145 148
     protected function getRSSOutput(
146 149
         $url
147 150
         )
Please login to merge, or discard this patch.
modules/Home/QuickSearch.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      *        'order' => 'name', // order by
79 79
      *        'limit' => '30', // limit, number of records to return
80 80
      *       )
81
-     * @return array list of elements returned
81
+     * @return string list of elements returned
82 82
      */
83 83
     public function query($args)
84 84
     {
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      * Returns the list of users, faster than using query method for Users module
108 108
      *
109 109
      * @param array $args arguments used to construct query, see query() for example
110
-     * @return array list of users returned
110
+     * @return string list of users returned
111 111
      */
112 112
     public function get_user_array($args)
113 113
     {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * Returns search results from external API
123 123
      *
124 124
      * @param array $args
125
-     * @return array
125
+     * @return string
126 126
      */
127 127
     public function externalApi($args)
128 128
     {
@@ -496,7 +496,6 @@  discard block
 block discarded – undo
496 496
     /**
497 497
      * Returns prepared arguments. Should be redefined in child classes.
498 498
      *
499
-     * @param array $arguments
500 499
      * @return array
501 500
      */
502 501
     protected function prepareArguments($args)
Please login to merge, or discard this patch.
modules/Home/UnifiedSearch.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -188,6 +188,9 @@  discard block
 block discarded – undo
188 188
     $output = preg_replace(array('/(?<=[^A-Z])([A-Z])/', '/(?<=[^0-9])([0-9])/'), $sep.'$0', $input);
189 189
     return ucwords($output);
190 190
 }
191
+/**
192
+ * @param string $module
193
+ */
191 194
 function getModuleLabel($module){
192 195
     return translate('LBL_MODULE_NAME', $module);
193 196
 }
@@ -197,6 +200,9 @@  discard block
 block discarded – undo
197 200
     sugar_file_put_contents_atomic($file, $out);
198 201
 }
199 202
 
203
+/**
204
+ * @param string $filePath
205
+ */
200 206
 function getCorrectMTime($filePath){
201 207
     $time = filemtime($filePath);
202 208
     $isDST = (date('I', $time) == 1);
Please login to merge, or discard this patch.
modules/iCals/HTTP_WebDAV_Server_iCal.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -156,6 +156,7 @@
 block discarded – undo
156 156
          * set HTTP return status and mirror it in a private header
157 157
          *
158 158
          * @param  string  status code and message
159
+         * @param string $status
159 160
          * @return void
160 161
          */
161 162
         public function http_status($status)
Please login to merge, or discard this patch.
modules/iCals/iCal.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
     * Creates the string for the user's events and todos between the given start
192 192
     * and end times
193 193
     *
194
-    * @param UserBean $user_bean the current UserBean
194
+    * @param User $user_bean the current UserBean
195 195
     * @param DateTime $start_date_time the start date to search from
196 196
     * @param DateTime $end_date_time the end date to search to
197 197
     * @param string $dtstamp the current timestamp
Please login to merge, or discard this patch.
modules/Import/ImportDuplicateCheck.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,6 @@
 block discarded – undo
133 133
     /**
134 134
      * Checks to see if the given bean is a duplicate based off the given fields
135 135
      *
136
-     * @param  array $indexlist
137 136
      * @return bool true if this bean is a duplicate or false if it isn't
138 137
      */
139 138
     public function isADuplicateRecordByFields($fieldList)
Please login to merge, or discard this patch.
modules/Import/Importer.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -83,6 +83,9 @@  discard block
 block discarded – undo
83 83
     protected $sugarToExternalSourceFieldMap = array();
84 84
 
85 85
 
86
+    /**
87
+     * @param ImportFile $importSource
88
+     */
86 89
     public function __construct($importSource, $bean)
87 90
     {
88 91
         global $mod_strings, $sugar_config;
@@ -434,6 +437,9 @@  discard block
 block discarded – undo
434 437
     }
435 438
 
436 439
 
440
+    /**
441
+     * @param string $fieldTranslated
442
+     */
437 443
     protected function sanitizeFieldValueByType($rowValue, $fieldDef, $defaultRowValue, $focus, $fieldTranslated)
438 444
     {
439 445
         global $mod_strings, $app_list_strings;
@@ -527,6 +533,9 @@  discard block
 block discarded – undo
527 533
         }
528 534
     }
529 535
 
536
+    /**
537
+     * @param boolean $newRecord
538
+     */
530 539
     protected function saveImportBean($focus, $newRecord)
531 540
     {
532 541
         global $timedate, $current_user;
Please login to merge, or discard this patch.