Test Failed
Push — CI ( 0f01dd...c95a04 )
by Adam
55:13
created
include/SugarOAuthServer.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,6 @@
 block discarded – undo
158 158
      * Create OAuth provider
159 159
      *
160 160
      * Checks current request for OAuth valitidy
161
-     * @param bool $add_rest add REST endpoint as request path
162 161
      */
163 162
     public function __construct($req_path = '')
164 163
     {
Please login to merge, or discard this patch.
include/SugarObjects/LanguageManager.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -105,6 +105,10 @@  discard block
 block discarded – undo
105 105
 		}
106 106
 	}
107 107
 
108
+	/**
109
+	 * @param string $module
110
+	 * @param string $lang
111
+	 */
108 112
 	static function saveCache($module,$lang, $loaded_mod_strings, $additonal_objects= array()){
109 113
 		if(empty($lang))
110 114
 			$lang = $GLOBALS['sugar_config']['default_language'];
@@ -226,6 +230,9 @@  discard block
 block discarded – undo
226 230
 			LanguageManager::saveCache($module, $lang, $loaded_mod_strings);
227 231
 	}
228 232
 
233
+	/**
234
+	 * @param string $module
235
+	 */
229 236
 	static function loadModuleLanguage($module, $lang, $refresh=false){
230 237
 		//here check if the cache file exists, if it does then load it, if it doesn't
231 238
 		//then call refreshVardef
Please login to merge, or discard this patch.
include/Sugarpdf/FontManager.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     /**
140 140
      * This method calculate the font size of $this->filename in KB
141 141
      * .php file + .z file + .ctg.z file
142
-     * @return Integer font Size in KB
142
+     * @return double font Size in KB
143 143
      */
144 144
     private function getFontSize(){
145 145
         $fileSize=filesize($this->fontPath.$this->filename);
@@ -326,8 +326,8 @@  discard block
 block discarded – undo
326 326
     }
327 327
     /**
328 328
      * This method add a font to SugarCRM from a font file and a metric file using MakeFont()
329
-     * @param $font_file string
330
-     * @param $metric_file string
329
+     * @param string $font_file string
330
+     * @param string $metric_file string
331 331
      * @param $embedded boolean
332 332
      * @param $encoding_table string
333 333
      * @param $patch array
Please login to merge, or discard this patch.
include/Sugarpdf/Sugarpdf.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     *
264 264
     * @param string $family Family font. It can be either a name defined by AddFont() or one of the standard Type1 families (case insensitive):<ul><li>times (Times-Roman)</li><li>timesb (Times-Bold)</li><li>timesi (Times-Italic)</li><li>timesbi (Times-BoldItalic)</li><li>helvetica (Helvetica)</li><li>helveticab (Helvetica-Bold)</li><li>helveticai (Helvetica-Oblique)</li><li>helveticabi (Helvetica-BoldOblique)</li><li>courier (Courier)</li><li>courierb (Courier-Bold)</li><li>courieri (Courier-Oblique)</li><li>courierbi (Courier-BoldOblique)</li><li>symbol (Symbol)</li><li>zapfdingbats (ZapfDingbats)</li></ul> It is also possible to pass an empty string. In that case, the current family is retained.
265 265
     * @param string $style Font style. Possible values are (case insensitive):<ul><li>empty string: regular</li><li>B: bold</li><li>I: italic</li><li>U: underline</li><li>D: line trough</li></ul> or any combination. The default value is regular. Bold and italic styles do not apply to Symbol and ZapfDingbats basic fonts or other fonts when not defined.
266
-    * @param float $size Font size in points. The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12
266
+    * @param integer $size Font size in points. The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12
267 267
     * @param string $fontfile The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
268 268
     * @access public
269 269
     * @see include/tcpdf/TCPDF#SetFont()
@@ -299,6 +299,7 @@  discard block
 block discarded – undo
299 299
      * the string to print in the PDF.
300 300
      * The cell method is used by all the methods which print text (Write, MultiCell).
301 301
      * @see include/tcpdf/TCPDF#Cell()
302
+     * @param integer $w
302 303
      */
303 304
     public function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=0, $link='', $stretch=0) {
304 305
         parent::Cell($w, $h, prepare_string($txt), $border, $ln, $align, $fill, $link, $stretch);
@@ -425,7 +426,7 @@  discard block
 block discarded – undo
425 426
      *              Array[line number (0 to x)][cell header]['options'] = Array[cell properties] = values
426 427
      * @param $returnHtml (bool) Return the table as HTML code instead of printing the HTML table
427 428
      * @param $options Array which can contain : table (array of "HTML proprty"=>"value"),td (array of "HTML proprty"=>"value"), tr (array of "HTML proprty"=>"value"), isheader(bool), header (array of "HTML proprty"=>"value"), width (array 'column name'=>'width value + unit OR nothing')
428
-     * @return the HTML code if $returnHtml set to true
429
+     * @return string|null HTML code if $returnHtml set to true
429 430
      */
430 431
     public function writeHTMLTable($item, $returnHtml=false, $options=NULL){
431 432
         //TODO ISSUE - width in % for the td have to be multiply by the number of column.
@@ -488,10 +489,10 @@  discard block
 block discarded – undo
488 489
 
489 490
     /**
490 491
      * return the HTML code of the value wrap with the tag $tag. This method handle options (general and specific)
491
-     * @param $tag
492
+     * @param string $tag
492 493
      * @param $value
493 494
      * @param $options
494
-     * @return the HTML wrapped code
495
+     * @return string HTML wrapped code
495 496
      */
496 497
     private function wrap($tag, $value, $options){
497 498
         if(empty($options[$tag])){
@@ -515,7 +516,7 @@  discard block
 block discarded – undo
515 516
      * Return the heigth of a line depending of the width, the font and the content
516 517
      * @param $line Array containing the data of all the cells of the line
517 518
      * @param $width Array containing the width of all the cells of the line
518
-     * @return The heigth of the line
519
+     * @return double heigth of the line
519 520
      */
520 521
     private function getLineHeightFromArray($line, $width){
521 522
         $h=0;
@@ -618,7 +619,7 @@  discard block
 block discarded – undo
618 619
     * between words.
619 620
     * This method returns the estimated number of lines required to print the text.
620 621
     * @param string $txt text to print
621
-    * @param float $w width of cell. If 0, they extend up to the right margin of the page.
622
+    * @param integer $w width of cell. If 0, they extend up to the right margin of the page.
622 623
     * @return int Return the estimated number of lines.
623 624
     * @access public
624 625
     * @since 4.5.011
Please login to merge, or discard this patch.
include/Sugarpdf/SugarpdfFactory.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,8 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * load the correct Tcpdf
47 47
      * @param string $type Tcpdf Type
48
-     * @return valid Tcpdf
48
+     * @param string $module
49
+     * @return Sugarpdf Tcpdf
49 50
      */
50 51
     function loadSugarpdf($type = 'default', $module, $bean = null, $sugarpdf_object_map = array()){
51 52
         $type = strtolower(basename($type));
@@ -109,7 +110,9 @@  discard block
 block discarded – undo
109 110
      * This is a private function which just helps the getSugarpdf function generate the
110 111
      * proper Tcpdf object
111 112
      * 
112
-     * @return a valid Sugarpdf
113
+     * @param string $file
114
+     * @param string $type
115
+     * @return Sugarpdf valid Sugarpdf
113 116
      */
114 117
     function _buildFromFile($file, &$bean, $sugarpdf_object_map, $type, $module){
115 118
         require_once($file);
@@ -132,6 +135,7 @@  discard block
 block discarded – undo
132 135
      * @param object bean = the bean to pass to the Sugarpdf
133 136
      * @param array Sugarpdf_object_map - the array which holds obejcts to pass between the
134 137
      *                                controller and the tcpdf.
138
+     * @param string $class
135 139
      * 
136 140
      * @return Sugarpdf
137 141
      */
Please login to merge, or discard this patch.
include/Sugarpdf/SugarpdfHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
     /**
83 83
      * This function prepare a string to be ready for the PDF printing.
84
-     * @param $string
84
+     * @param string $string
85 85
      * @return string
86 86
      */
87 87
     function prepare_string($string){
Please login to merge, or discard this patch.
include/SugarQueue/SugarJobQueue.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,6 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * Submit a new job to the queue
88 88
      * @param SugarJob $job
89
-     * @param User $user User to run the job under
90 89
      */
91 90
     public function submitJob($job)
92 91
     {
@@ -105,7 +104,7 @@  discard block
 block discarded – undo
105 104
     /**
106 105
      * Get Job object by ID
107 106
      * @param string $jobId
108
-     * @return SugarJob
107
+     * @return null|SchedulersJob
109 108
      */
110 109
     protected function getJob($jobId)
111 110
     {
@@ -187,7 +186,7 @@  discard block
 block discarded – undo
187 186
     /**
188 187
      * Fetch the next job in the queue and mark it running
189 188
      * @param string $clientID ID of the client requesting the job
190
-     * @return SugarJob
189
+     * @return null|SchedulersJob
191 190
      */
192 191
     public function nextJob($clientID)
193 192
     {
Please login to merge, or discard this patch.
include/SugarTheme/cssmin.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	 * </code>
35 35
 	 * 
36 36
 	 * @param	string			$css		Stylesheet definitions as string
37
-	 * @param	array|string	$options	Array or comma speperated list of options:
37
+	 * @param	string	$options	Array or comma speperated list of options:
38 38
 	 * 										
39 39
 	 * 										- remove-last-semicolon: Removes the last semicolon in 
40 40
 	 * 										the style definition of an element (activated by default).
@@ -120,8 +120,7 @@  discard block
 block discarded – undo
120 120
 	 * $css_string = cssmin::toString($css_structure);
121 121
 	 * </code>
122 122
 	 * 
123
-	 * @param	array		$css
124
-	 * @return	array
123
+	 * @return	string
125 124
 	 */
126 125
 	public static function toString(array $array)
127 126
 		{
Please login to merge, or discard this patch.
include/SugarTheme/SugarSprites.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
 		}
70 70
 	}
71 71
 
72
+	/**
73
+	 * @param string $file
74
+	 */
72 75
 	private function loadMetaHelper($dir, $file) {
73 76
 		if(file_exists("cache/sprites/{$dir}/{$file}.meta.php")) {
74 77
 			$sprites = array();
Please login to merge, or discard this patch.