Test Failed
Push — CI ( 02428e...3e0292 )
by Adam
55:43
created
modules/AOR_Reports/AOR_Report.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -322,6 +322,9 @@  discard block
 block discarded – undo
322 322
         return $rows;
323 323
     }
324 324
 
325
+    /**
326
+     * @param string $body
327
+     */
325 328
     private function getMultiGroupFrameHTML($header, $body) {
326 329
         $html = '<div class="multi-group-list" style="border: 1px solid black; padding: 10px;">
327 330
                     <h3>' . $header . '</h3>
@@ -330,6 +333,9 @@  discard block
 block discarded – undo
330 333
         return $html;
331 334
     }
332 335
 
336
+    /**
337
+     * @param string $html
338
+     */
333 339
     private function addDataIdValueToInnertext($html) {
334 340
         preg_match('/\sdata-id-value\s*=\s*"([^"]*)"/', $html, $match);
335 341
         $html = preg_replace('/(>)([^<]*)(<\/\w+>$)/', '$1$2' . $match[1] . '$3', $html);
@@ -920,6 +926,9 @@  discard block
 block discarded – undo
920 926
 
921 927
     }
922 928
 
929
+    /**
930
+     * @param string $query_where
931
+     */
923 932
     private function queryWhereRepair($query_where) {
924 933
 
925 934
         // remove empty parenthesis and fix query syntax
@@ -1030,6 +1039,9 @@  discard block
 block discarded – undo
1030 1039
     }
1031 1040
 
1032 1041
 
1042
+    /**
1043
+     * @param string $type
1044
+     */
1033 1045
     function build_report_query_join($name, $alias, $parentAlias, SugarBean $module, $type, $query = array(),SugarBean $rel_module = null ){
1034 1046
 
1035 1047
         if(!isset($query['join'][$alias])){
Please login to merge, or discard this patch.
modules/AOR_Reports/aor_utils.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@
 block discarded – undo
88 88
     return $params;
89 89
 }
90 90
 
91
+/**
92
+ * @param SugarBean $report
93
+ */
91 94
 function getConditionsAsParameters($report, $override = array())
92 95
 {
93 96
     if (empty($report)) {
Please login to merge, or discard this patch.
modules/AOR_Reports/views/view.edit.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -138,6 +138,10 @@
 block discarded – undo
138 138
         return $charts;
139 139
     }
140 140
 
141
+    /**
142
+     * @param string $modulePath
143
+     * @param string $field
144
+     */
141 145
     public function getDisplayForField($modulePath, $field, $reportModule){
142 146
         $modulePathDisplay = array();
143 147
         $currentBean = BeanFactory::getBean($reportModule);
Please login to merge, or discard this patch.
modules/AOS_PDF_Templates/formLetter.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@  discard block
 block discarded – undo
51 51
         return $templates;
52 52
     }
53 53
 
54
+	/**
55
+	 * @param string $module
56
+	 */
54 57
 	static function LVPopupHtml($module){
55 58
 		global $app_strings;
56 59
 
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
 		}
107 110
 	}
108 111
 	
112
+	/**
113
+	 * @param string $module
114
+	 */
109 115
 	static function DVPopupHtml($module){
110 116
 		global $app_strings;
111 117
 
Please login to merge, or discard this patch.
modules/AOS_PDF_Templates/PDF_Lib/classes/barcode.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -423,6 +423,7 @@  discard block
 block discarded – undo
423 423
 	
424 424
 	/**
425 425
 	 * Encode a string to be used for CODE 39 Extended mode.
426
+	 * @param string $code
426 427
 	 */
427 428
 	protected function encode_code39_ext($code) {
428 429
 		$encode = array(
@@ -618,6 +619,7 @@  discard block
 block discarded – undo
618 619
 	
619 620
 	/**
620 621
 	 * Calculate CODE 93 checksum (modulo 47).
622
+	 * @param string $code
621 623
 	 */
622 624
 	protected function checksum_code93($code) {
623 625
 		$chars = array(
@@ -778,6 +780,7 @@  discard block
 block discarded – undo
778 780
 	
779 781
 	/**
780 782
 	 * Convert binary barcode sequence to barcode array
783
+	 * @param string $seq
781 784
 	 */
782 785
 	protected function binseq_to_array($seq, $bararray) {
783 786
 		$len = strlen($seq);
@@ -1844,6 +1847,7 @@  discard block
 block discarded – undo
1844 1847
 	/**
1845 1848
 	 * Convert large integer number to hexadecimal representation.
1846 1849
 	 * (requires PHP bcmath extension) 
1850
+	 * @param string $number
1847 1851
 	 */
1848 1852
 	public function dec_to_hex($number) {
1849 1853
 		$i = 0;
@@ -1866,6 +1870,7 @@  discard block
 block discarded – undo
1866 1870
 	/**
1867 1871
 	 * Convert large hexadecimal number to decimal representation (string).
1868 1872
 	 * (requires PHP bcmath extension) 
1873
+	 * @param string $hex
1869 1874
 	 */
1870 1875
 	public function hex_to_dec($hex) {
1871 1876
 		$dec = 0;
@@ -1913,6 +1918,7 @@  discard block
 block discarded – undo
1913 1918
 	
1914 1919
 	/**
1915 1920
 	 * Reverse unsigned short value
1921
+	 * @param integer $num
1916 1922
 	 */
1917 1923
 	protected function imb_reverse_us($num) {
1918 1924
 		$rev = 0;
@@ -1926,6 +1932,8 @@  discard block
 block discarded – undo
1926 1932
 	
1927 1933
 	/**
1928 1934
 	 * generate Nof13 tables used for Intelligent Mail Barcode
1935
+	 * @param integer $n
1936
+	 * @param integer $size
1929 1937
 	 */
1930 1938
 	protected function imb_tables($n, $size) {
1931 1939
 		$table = array();
Please login to merge, or discard this patch.
modules/AOS_PDF_Templates/PDF_Lib/classes/bmp.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -142,11 +142,17 @@  discard block
 block discarded – undo
142 142
 		return $info;
143 143
 }
144 144
 
145
+/**
146
+ * @param string $s
147
+ */
145 148
 function _fourbytes2int_le($s) {
146 149
 	//Read a 4-byte integer from string
147 150
 	return (ord($s[3])<<24) + (ord($s[2])<<16) + (ord($s[1])<<8) + ord($s[0]);
148 151
 }
149 152
 
153
+/**
154
+ * @param string $s
155
+ */
150 156
 function _twobytes2int_le($s) {
151 157
 	//Read a 2-byte integer from string
152 158
 	return (ord(substr($s, 1, 1))<<8) + ord(substr($s, 0, 1));
@@ -155,6 +161,10 @@  discard block
 block discarded – undo
155 161
 
156 162
 # Decoder for RLE8 compression in windows bitmaps
157 163
 # see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_6x0u.asp
164
+/**
165
+ * @param string $str
166
+ * @param integer $width
167
+ */
158 168
 function rle8_decode ($str, $width){
159 169
     $lineWidth = $width + (3 - ($width-1) % 4);
160 170
     $out = '';
@@ -192,6 +202,10 @@  discard block
 block discarded – undo
192 202
 
193 203
 # Decoder for RLE4 compression in windows bitmaps
194 204
 # see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_6x0u.asp
205
+/**
206
+ * @param string $str
207
+ * @param integer $width
208
+ */
195 209
 function rle4_decode ($str, $width){
196 210
     $w = floor($width/2) + ($width % 2);
197 211
     $lineWidth = $w + (3 - ( ($width-1) / 2) % 4);    
Please login to merge, or discard this patch.
modules/AOS_PDF_Templates/PDF_Lib/classes/form.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -600,6 +600,9 @@  discard block
 block discarded – undo
600 600
 	}
601 601
 }
602 602
 
603
+/**
604
+ * @param string $js
605
+ */
603 606
 function SetFormChoiceJS( $name, $js ) {
604 607
 	$js = str_replace("\t",' ', trim($js) );
605 608
 	if ( isset($name) && isset($js) ) {
@@ -806,6 +809,9 @@  discard block
 block discarded – undo
806 809
 	}
807 810
 
808 811
 
812
+	/**
813
+	 * @param string $url
814
+	 */
809 815
 	function SetFormSubmit( $w, $h, $name, $value = 'Submit', $url, $title = '', $typ = 'html', $method = 'POST', $flags = array(), $background_col=false, $border_col=false, $noprint=false) {
810 816
 		if (!$name) { $name = 'Submit'; }
811 817
 		$this->SetFormButton( $w, $h, $name, $value, 'submit', $title, $flags, false, false, $background_col, $border_col, $noprint);
@@ -842,6 +848,9 @@  discard block
 block discarded – undo
842 848
 	}
843 849
 
844 850
 
851
+	/**
852
+	 * @param string $type
853
+	 */
845 854
 	function SetFormButton( $bb, $hh, $name, $value, $type, $title = '', $flags = array(), $checked=false, $disabled=false, $background_col=false, $border_col=false, $noprint=false ) {
846 855
 		$this->formn++;
847 856
 		if (!preg_match('/^[a-zA-Z0-9_:\-]+$/', $name)) {
Please login to merge, or discard this patch.
modules/AOS_PDF_Templates/PDF_Lib/classes/gif.php 1 patch
Doc Comments   +42 added lines patch added patch discarded remove patch
@@ -42,6 +42,10 @@  discard block
 block discarded – undo
42 42
 
43 43
 	///////////////////////////////////////////////////////////////////////////
44 44
 
45
+	/**
46
+	 * @param string $data
47
+	 * @param integer $datLen
48
+	 */
45 49
 	function deCompress($data, &$datLen)
46 50
 	{
47 51
 		$stLen  = strlen($data);
@@ -66,6 +70,10 @@  discard block
 block discarded – undo
66 70
 	}
67 71
 
68 72
 	///////////////////////////////////////////////////////////////////////////
73
+
74
+	/**
75
+	 * @param integer $dp
76
+	 */
69 77
 	function LZWCommandInit(&$data, &$dp)
70 78
 	{
71 79
 			$this->SetCodeSize = ord($data[0]);
@@ -94,6 +102,9 @@  discard block
 block discarded – undo
94 102
 			return 1;
95 103
 	}
96 104
 
105
+	/**
106
+	 * @return integer
107
+	 */
97 108
 	function LZWCommand(&$data, &$dp)
98 109
 	{
99 110
 		if($this->Fresh) {
@@ -179,6 +190,9 @@  discard block
 block discarded – undo
179 190
 
180 191
 	///////////////////////////////////////////////////////////////////////////
181 192
 
193
+	/**
194
+	 * @param integer $dp
195
+	 */
182 196
 	function GetCodeInit(&$data, &$dp)
183 197
 	{
184 198
 			$this->CurBit   = 0;
@@ -248,6 +262,10 @@  discard block
 block discarded – undo
248 262
 
249 263
 	///////////////////////////////////////////////////////////////////////////
250 264
 
265
+	/**
266
+	 * @param string $lpData
267
+	 * @param integer $num
268
+	 */
251 269
 	function load($lpData, $num)
252 270
 	{
253 271
 		$this->m_nColors  = 0;
@@ -343,6 +361,9 @@  discard block
 block discarded – undo
343 361
 
344 362
 	///////////////////////////////////////////////////////////////////////////
345 363
 
364
+	/**
365
+	 * @param integer $hdrLen
366
+	 */
346 367
 	function load($lpData, &$hdrLen)
347 368
 	{
348 369
 		$hdrLen = 0;
@@ -380,6 +401,9 @@  discard block
 block discarded – undo
380 401
 
381 402
 	///////////////////////////////////////////////////////////////////////////
382 403
 
404
+	/**
405
+	 * @param string $str
406
+	 */
383 407
 	function w2i($str)
384 408
 	{
385 409
 		return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8);
@@ -418,6 +442,10 @@  discard block
 block discarded – undo
418 442
 
419 443
 	///////////////////////////////////////////////////////////////////////////
420 444
 
445
+	/**
446
+	 * @param string $lpData
447
+	 * @param integer $hdrLen
448
+	 */
421 449
 	function load($lpData, &$hdrLen)
422 450
 	{
423 451
 		$hdrLen = 0;
@@ -451,6 +479,9 @@  discard block
 block discarded – undo
451 479
 
452 480
 	///////////////////////////////////////////////////////////////////////////
453 481
 
482
+	/**
483
+	 * @param string $str
484
+	 */
454 485
 	function w2i($str)
455 486
 	{
456 487
 		return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8);
@@ -488,6 +519,10 @@  discard block
 block discarded – undo
488 519
 
489 520
 	///////////////////////////////////////////////////////////////////////////
490 521
 
522
+	/**
523
+	 * @param string $data
524
+	 * @param integer $datLen
525
+	 */
491 526
 	function load($data, &$datLen)
492 527
 	{
493 528
 		$datLen = 0;
@@ -541,6 +576,10 @@  discard block
 block discarded – undo
541 576
 
542 577
 	///////////////////////////////////////////////////////////////////////////
543 578
 
579
+	/**
580
+	 * @param string $data
581
+	 * @param integer $extLen
582
+	 */
544 583
 	function skipExt(&$data, &$extLen)
545 584
 	{
546 585
 		$extLen = 0;
@@ -586,6 +625,9 @@  discard block
 block discarded – undo
586 625
 
587 626
 	///////////////////////////////////////////////////////////////////////////
588 627
 
628
+	/**
629
+	 * @param string $str
630
+	 */
589 631
 	function w2i($str)
590 632
 	{
591 633
 		return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8);
Please login to merge, or discard this patch.
modules/AOS_PDF_Templates/PDF_Lib/classes/svg.php 1 patch
Doc Comments   +30 added lines patch added patch discarded remove patch
@@ -1504,6 +1504,12 @@  discard block
 block discarded – undo
1504 1504
 
1505 1505
 	}
1506 1506
 
1507
+/**
1508
+ * @param string $ry
1509
+ * @param string $angle
1510
+ * @param string $largeArcFlag
1511
+ * @param string $sweepFlag
1512
+ */
1507 1513
 function Arcto($x1, $y1, $x2, $y2, $rx, $ry, $angle, $largeArcFlag, $sweepFlag) {
1508 1514
 
1509 1515
 	// mPDF 5.0.040
@@ -1618,6 +1624,12 @@  discard block
 block discarded – undo
1618 1624
 }
1619 1625
 
1620 1626
 
1627
+	/**
1628
+	 * @param double $ux
1629
+	 * @param double $uy
1630
+	 * @param double $vx
1631
+	 * @param double $vy
1632
+	 */
1621 1633
 	function CalcVectorAngle($ux, $uy, $vx, $vy) {
1622 1634
 		$ta = atan2($uy, $ux);
1623 1635
 		$tb = atan2($vy, $vx);
@@ -2513,6 +2525,9 @@  discard block
 block discarded – undo
2513 2525
 
2514 2526
 
2515 2527
 // mPDF 5.0.040
2528
+/**
2529
+ * @param integer[] $start
2530
+ */
2516 2531
 function calc_bezier_bbox($start, $c) {
2517 2532
 	$P0 = array($start[0],$start[1]);
2518 2533
 	$P1 = array($c[0],$c[1]);
@@ -2554,6 +2569,11 @@  discard block
 block discarded – undo
2554 2569
 }
2555 2570
 
2556 2571
 // mPDF 5.0.040
2572
+/**
2573
+ * @param double $cx
2574
+ * @param double $cy
2575
+ * @param double $cr
2576
+ */
2557 2577
 function _testIntersectCircle($cx, $cy, $cr) {
2558 2578
 	// Tests whether a circle fully encloses a rectangle 0,0,1,1
2559 2579
 	// to see if any further radial gradients need adding (SVG)
@@ -2574,6 +2594,16 @@  discard block
 block discarded – undo
2574 2594
 }
2575 2595
 
2576 2596
 // mPDF 5.0.040
2597
+/**
2598
+ * @param double $x1
2599
+ * @param double $y1
2600
+ * @param double $x2
2601
+ * @param double $y2
2602
+ * @param integer $x3
2603
+ * @param integer $y3
2604
+ * @param integer $x4
2605
+ * @param integer $y4
2606
+ */
2577 2607
 function _testIntersect($x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4) {
2578 2608
 	// Tests whether line (x1, y1) and (x2, y2) [a gradient axis (perpendicular)]
2579 2609
 	// intersects with a specific line segment (x3, y3) and (x4, y4)
Please login to merge, or discard this patch.