@@ -139,7 +139,7 @@ discard block |
||
| 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 |
||
| 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 |
@@ -263,7 +263,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
@@ -45,7 +45,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | */ |
@@ -81,7 +81,7 @@ |
||
| 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){ |
@@ -86,7 +86,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | { |
@@ -34,7 +34,7 @@ discard block |
||
| 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 |
||
| 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 | { |
@@ -69,6 +69,9 @@ |
||
| 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(); |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | /** |
| 459 | 459 | * Return array of all valid fields that can be specified in the themedef.php file |
| 460 | 460 | * |
| 461 | - * @return array |
|
| 461 | + * @return string[] |
|
| 462 | 462 | */ |
| 463 | 463 | public static function getThemeDefFields() |
| 464 | 464 | { |
@@ -698,7 +698,7 @@ discard block |
||
| 698 | 698 | /** |
| 699 | 699 | * Returns an image tag for the given image. |
| 700 | 700 | * |
| 701 | - * @param string $image image name |
|
| 701 | + * @param string $imageName image name |
|
| 702 | 702 | * @param string $other_attributes optional, other attributes to add to the image tag, not cached |
| 703 | 703 | * @param string $width optional, defaults to the actual image's width |
| 704 | 704 | * @param string $height optional, defaults to the actual image's height |
@@ -817,6 +817,8 @@ discard block |
||
| 817 | 817 | * @param string class The md5 id used in the CSS sprites class |
| 818 | 818 | * @param string attr optional, list of additional html attributes |
| 819 | 819 | * @param string title optional, the title (equivalent to alt on img) |
| 820 | + * @param string $attr |
|
| 821 | + * @param string $title |
|
| 820 | 822 | * @return string HTML span tag |
| 821 | 823 | */ |
| 822 | 824 | public function getSprite($class, $attr, $title) { |
@@ -113,6 +113,7 @@ discard block |
||
| 113 | 113 | /** |
| 114 | 114 | * Implodes the text for a bunch of actions (such as links, forms, |
| 115 | 115 | * into a HTML list and returns the text. |
| 116 | + * @param string[] $actions |
|
| 116 | 117 | */ |
| 117 | 118 | function xhprof_render_actions($actions) { |
| 118 | 119 | $out = array(); |
@@ -142,8 +143,6 @@ discard block |
||
| 142 | 143 | * @param raw-str $onmouseover |
| 143 | 144 | * @param raw-str $onmouseout |
| 144 | 145 | * @param raw-str $onmousedown |
| 145 | - * @param raw-str $dir |
|
| 146 | - * @param raw-str $rel |
|
| 147 | 146 | */ |
| 148 | 147 | function xhprof_render_link($content, $href, $class='', $id='', $title='', |
| 149 | 148 | $target='', |
@@ -589,6 +588,7 @@ discard block |
||
| 589 | 588 | * For instance, negative numbers in diff reports comparing two runs (run1 & run2) |
| 590 | 589 | * represent improvement from run1 to run2. We use green to display those deltas, |
| 591 | 590 | * and red for regression deltas. |
| 591 | + * @param boolean $bold |
|
| 592 | 592 | */ |
| 593 | 593 | function get_print_class($num, $bold) { |
| 594 | 594 | global $vbar; |
@@ -712,6 +712,7 @@ discard block |
||
| 712 | 712 | * Print non-hierarchical (flat-view) of profiler data. |
| 713 | 713 | * |
| 714 | 714 | * @author Kannan |
| 715 | + * @param integer $limit |
|
| 715 | 716 | */ |
| 716 | 717 | function print_flat_data($url_params, $title, $flat_data, $sort, $run1, $run2, $limit) { |
| 717 | 718 | |
@@ -778,6 +779,7 @@ discard block |
||
| 778 | 779 | * Generates a tabular report for all functions. This is the top-level report. |
| 779 | 780 | * |
| 780 | 781 | * @author Kannan |
| 782 | + * @param integer $run2 |
|
| 781 | 783 | */ |
| 782 | 784 | function full_report($url_params, $symbol_tab, $sort, $run1, $run2) { |
| 783 | 785 | global $vwbar; |
@@ -922,6 +924,7 @@ discard block |
||
| 922 | 924 | |
| 923 | 925 | /** |
| 924 | 926 | * Return attribute names and values to be used by javascript tooltip. |
| 927 | + * @param string $type |
|
| 925 | 928 | */ |
| 926 | 929 | function get_tooltip_attributes($type, $metric) { |
| 927 | 930 | return "type='$type' metric='$metric'"; |
@@ -960,6 +963,10 @@ discard block |
||
| 960 | 963 | } |
| 961 | 964 | } |
| 962 | 965 | |
| 966 | +/** |
|
| 967 | + * @param boolean $parent |
|
| 968 | + * @param integer $run2 |
|
| 969 | + */ |
|
| 963 | 970 | function print_pc_array($url_params, $results, $base_ct, $base_info, $parent, |
| 964 | 971 | $run1, $run2) { |
| 965 | 972 | global $base_path; |
@@ -1299,6 +1306,8 @@ discard block |
||
| 1299 | 1306 | * Generate the profiler report for a single run. |
| 1300 | 1307 | * |
| 1301 | 1308 | * @author Kannan |
| 1309 | + * @param string $rep_symbol |
|
| 1310 | + * @param string $run |
|
| 1302 | 1311 | */ |
| 1303 | 1312 | function profiler_single_run_report ($url_params, |
| 1304 | 1313 | $xhprof_data, |
@@ -1319,6 +1328,9 @@ discard block |
||
| 1319 | 1328 | * Generate the profiler report for diff mode (delta between two runs). |
| 1320 | 1329 | * |
| 1321 | 1330 | * @author Kannan |
| 1331 | + * @param string $rep_symbol |
|
| 1332 | + * @param string $run1 |
|
| 1333 | + * @param string $run2 |
|
| 1322 | 1334 | */ |
| 1323 | 1335 | function profiler_diff_report($url_params, |
| 1324 | 1336 | $xhprof_data1, |