Completed
Push — master ( 77e87d...17f8d0 )
by Harald
04:52
created
catalog/admin/ext/modules/payment/sofortueberweisung/install.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
 
17 17
   define('OSC_CATALOG_SESSION_ID', 'osCsid');
18 18
 
19
+  /**
20
+   * @param integer $length
21
+   */
19 22
   function tep_create_random_value($length, $type = 'mixed') {
20 23
     if ( ($type != 'mixed') && ($type != 'chars') && ($type != 'digits')) return false;
21 24
 
Please login to merge, or discard this patch.
catalog/admin/includes/classes/logger.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
45 45
       return '<span class="smallText">Parse Time: ' . $this->timer_total . 's</span>';
46 46
     }
47 47
 
48
+    /**
49
+     * @param string $type
50
+     */
48 51
     function write($message, $type) {
49 52
       error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT) . ' [' . $type . '] ' . $message . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
50 53
     }
Please login to merge, or discard this patch.
catalog/admin/includes/classes/phplot.php 1 patch
Doc Comments   +78 added lines patch added patch discarded remove patch
@@ -301,6 +301,9 @@  discard block
 block discarded – undo
301 301
 		}
302 302
 	}
303 303
 
304
+	/**
305
+	 * @param string $which_input_file
306
+	 */
304 307
 	function SetInputFile($which_input_file) { 
305 308
 		//$this->SetFileFormat($which_frmt);
306 309
 		$size = GetImageSize($which_input_file);
@@ -343,6 +346,9 @@  discard block
 block discarded – undo
343 346
 
344 347
 	}
345 348
 
349
+	/**
350
+	 * @param string $which_output_file
351
+	 */
346 352
 	function SetOutputFile($which_output_file) { 
347 353
 		$this->output_file = $which_output_file;
348 354
 		return true;
@@ -719,11 +725,18 @@  discard block
 block discarded – undo
719 725
 			$this->ndx_plot_bg_color);
720 726
 	}
721 727
 
728
+	/**
729
+	 * @param integer[] $which_color
730
+	 */
722 731
 	function SetBackgroundColor($which_color) {
723 732
 		$this->bg_color= $which_color;
724 733
 		$this->ndx_bg_color= $this->SetIndexColor($which_color);
725 734
 		return true;
726 735
 	}
736
+
737
+	/**
738
+	 * @param integer[] $which_color
739
+	 */
727 740
 	function SetPlotBgColor($which_color) {
728 741
 		$this->plot_bg_color= $which_color;
729 742
 		$this->ndx_plot_bg_color= $this->SetIndexColor($which_color);
@@ -735,36 +748,54 @@  discard block
 block discarded – undo
735 748
 		return true;
736 749
 	}
737 750
 
751
+	/**
752
+	 * @param integer[] $which_color
753
+	 */
738 754
 	function SetTitleColor($which_color) {
739 755
 		$this->title_color= $which_color;
740 756
 		$this->ndx_title_color= $this->SetIndexColor($which_color);
741 757
 		return true;
742 758
 	}
743 759
 
760
+	/**
761
+	 * @param string $which_color
762
+	 */
744 763
 	function SetTickColor ($which_color) {
745 764
 		$this->tick_color= $which_color;
746 765
 		$this->ndx_tick_color= $this->SetIndexColor($which_color);
747 766
 		return true;
748 767
 	}
749 768
 
769
+	/**
770
+	 * @param string $which_color
771
+	 */
750 772
 	function SetLabelColor ($which_color) {
751 773
 		$this->label_color= $which_color;
752 774
 		$this->ndx_label_color= $this->SetIndexColor($which_color);
753 775
 		return true;
754 776
 	}
755 777
 
778
+	/**
779
+	 * @param string $which_color
780
+	 */
756 781
 	function SetTextColor ($which_color) {
757 782
 		$this->text_color= $which_color;
758 783
 		$this->ndx_text_color= $this->SetIndexColor($which_color);
759 784
 		return true;
760 785
 	}
761 786
 
787
+	/**
788
+	 * @param integer[] $which_color
789
+	 */
762 790
 	function SetLightGridColor ($which_color) {
763 791
 		$this->light_grid_color= $which_color;
764 792
 		$this->ndx_light_grid_color= $this->SetIndexColor($which_color);
765 793
 		return true;
766 794
 	}
767 795
 
796
+	/**
797
+	 * @param string $which_color
798
+	 */
768 799
 	function SetGridColor ($which_color) {
769 800
 		$this->grid_color = $which_color;
770 801
 		$this->ndx_grid_color= $this->SetIndexColor($which_color);
@@ -997,6 +1028,12 @@  discard block
 block discarded – undo
997 1028
 		return true;
998 1029
 	}
999 1030
 
1031
+	/**
1032
+	 * @param string $x1
1033
+	 * @param string $y1
1034
+	 * @param string $x2
1035
+	 * @param string $y2
1036
+	 */
1000 1037
 	function SetPlotAreaPixels($x1,$y1,$x2,$y2) {
1001 1038
 		//Like in GD 0,0 is upper left
1002 1039
 		if (!$this->x_tot_margin) {
@@ -1017,6 +1054,12 @@  discard block
 block discarded – undo
1017 1054
 
1018 1055
 	}
1019 1056
 
1057
+	/**
1058
+	 * @param string $xmin
1059
+	 * @param string $ymin
1060
+	 * @param string $xmax
1061
+	 * @param string $ymax
1062
+	 */
1020 1063
 	function SetPlotAreaWorld($xmin,$ymin,$xmax,$ymax) {
1021 1064
 		if (($xmin == "")  && ($xmax == "")) {
1022 1065
 			//For automatic setting of data we need $this->max_x
@@ -1081,6 +1124,9 @@  discard block
 block discarded – undo
1081 1124
 		die;
1082 1125
 	}
1083 1126
 
1127
+	/**
1128
+	 * @param string $error_message
1129
+	 */
1084 1130
 	function DrawError($error_message) {
1085 1131
 	// prints the error message inline into
1086 1132
 	// the generated image
@@ -1208,6 +1254,9 @@  discard block
 block discarded – undo
1208 1254
 		return true;
1209 1255
 	}
1210 1256
 
1257
+	/**
1258
+	 * @param integer $which_ps
1259
+	 */
1211 1260
 	function SetPointSize($which_ps) {
1212 1261
 		//in pixels
1213 1262
 		SetType($which_ps,'integer');
@@ -1238,6 +1287,9 @@  discard block
 block discarded – undo
1238 1287
 	}
1239 1288
 
1240 1289
 //////////////COLORS
1290
+	/**
1291
+	 * @param string $which_color_array
1292
+	 */
1241 1293
 	function SetRGBArray ($which_color_array) { 
1242 1294
 		if ( is_array($which_color_array) ) { 
1243 1295
 			//User Defined Array
@@ -1333,6 +1385,10 @@  discard block
 block discarded – undo
1333 1385
 		return $ret_val;
1334 1386
 	}
1335 1387
 
1388
+	/**
1389
+	 * @param string[] $which_data
1390
+	 * @param string[] $which_border
1391
+	 */
1336 1392
 	function SetDataColors($which_data,$which_border) {
1337 1393
 		//Set the data to be displayed in a particular color
1338 1394
 		if (!$which_data) {
@@ -1833,6 +1889,9 @@  discard block
 block discarded – undo
1833 1889
 
1834 1890
 	}
1835 1891
 
1892
+	/**
1893
+	 * @param double $xpos
1894
+	 */
1836 1895
 	function DrawXDataLabel($xlab,$xpos) {
1837 1896
 		//xpos comes in in PIXELS not in world coordinates.
1838 1897
 		//Draw an x data label centered at xlab
@@ -2083,6 +2142,9 @@  discard block
 block discarded – undo
2083 2142
 
2084 2143
 	}  //function DrawThinBarLines
2085 2144
 
2145
+	/**
2146
+	 * @param string $error_bar_type
2147
+	 */
2086 2148
 	function DrawYErrorBar($x_world,$y_world,$error_height,$error_bar_type,$color) {
2087 2149
 		$x1 = $this->xtr($x_world);
2088 2150
 		$y1 = $this->ytr($y_world);
@@ -2105,6 +2167,9 @@  discard block
 block discarded – undo
2105 2167
 		return true;
2106 2168
 	}
2107 2169
 
2170
+	/**
2171
+	 * @param string $dot_type
2172
+	 */
2108 2173
 	function DrawDot($x_world,$y_world,$dot_type,$color) {
2109 2174
 		$half_point = $this->point_size / 2;
2110 2175
 		$x1 = $this->xtr($x_world) - $half_point;
@@ -2344,6 +2409,14 @@  discard block
 block discarded – undo
2344 2409
 		return false;
2345 2410
 	} //function DrawLineSeries
2346 2411
 
2412
+	/**
2413
+	 * @param double $x1pix
2414
+	 * @param double $y1pix
2415
+	 * @param double $x2pix
2416
+	 * @param double $y2pix
2417
+	 * @param integer $dash_length
2418
+	 * @param integer $dash_space
2419
+	 */
2347 2420
 	function DrawDashedLine($x1pix,$y1pix,$x2pix,$y2pix,$dash_length,$dash_space,$color) {
2348 2421
 		//Code based on work by Ariel Garza and James Pine
2349 2422
 		//I've decided to have this be in pixels only as a replacement for ImageLine
@@ -2434,6 +2507,11 @@  discard block
 block discarded – undo
2434 2507
 		}
2435 2508
 	} //function DrawBars
2436 2509
 
2510
+	/**
2511
+	 * @param string $which_x1
2512
+	 * @param string $which_y1
2513
+	 * @param string $which_boxtype
2514
+	 */
2437 2515
 	function DrawLegend($which_x1,$which_y1,$which_boxtype) {
2438 2516
 		//Base code submitted by Marlin Viss
2439 2517
 		$max_legend_length=0;
Please login to merge, or discard this patch.
catalog/admin/includes/classes/rss.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -53,6 +53,10 @@  discard block
 block discarded – undo
53 53
     // -------------------------------------------------------------------
54 54
     // Parse RSS file and returns associative array.
55 55
     // -------------------------------------------------------------------
56
+
57
+    /**
58
+     * @param string $rss_url
59
+     */
56 60
     function Get ($rss_url) {
57 61
         // If CACHE ENABLED
58 62
         if ($this->cache_dir != '') {
@@ -114,6 +118,10 @@  discard block
 block discarded – undo
114 118
     // -------------------------------------------------------------------
115 119
     // Replace HTML entities &something; by real characters
116 120
     // -------------------------------------------------------------------
121
+
122
+    /**
123
+     * @param string $string
124
+     */
117 125
     function unhtmlentities ($string) {
118 126
         // Get HTML entities table
119 127
         $trans_tbl = get_html_translation_table (HTML_ENTITIES, ENT_QUOTES);
Please login to merge, or discard this patch.
catalog/admin/includes/classes/upload.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -108,10 +108,16 @@  discard block
 block discarded – undo
108 108
       $this->file = $file;
109 109
     }
110 110
 
111
+    /**
112
+     * @param string $destination
113
+     */
111 114
     function set_destination($destination) {
112 115
       $this->destination = $destination;
113 116
     }
114 117
 
118
+    /**
119
+     * @param string $permissions
120
+     */
115 121
     function set_permissions($permissions) {
116 122
       $this->permissions = octdec($permissions);
117 123
     }
@@ -124,6 +130,9 @@  discard block
 block discarded – undo
124 130
       $this->tmp_filename = $filename;
125 131
     }
126 132
 
133
+    /**
134
+     * @param string $extensions
135
+     */
127 136
     function set_extensions($extensions) {
128 137
       if (tep_not_null($extensions)) {
129 138
         if (is_array($extensions)) {
@@ -160,6 +169,9 @@  discard block
 block discarded – undo
160 169
       }
161 170
     }
162 171
 
172
+    /**
173
+     * @param string $location
174
+     */
163 175
     function set_output_messages($location) {
164 176
       switch ($location) {
165 177
         case 'session':
Please login to merge, or discard this patch.
catalog/admin/includes/functions/database.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@  discard block
 block discarded – undo
32 32
     return mysqli_close($$link);
33 33
   }
34 34
 
35
+  /**
36
+   * @param integer $errno
37
+   * @param string $error
38
+   */
35 39
   function tep_db_error($query, $errno, $error) {
36 40
     global $logger;
37 41
 
@@ -42,6 +46,9 @@  discard block
 block discarded – undo
42 46
     die('<font color="#000000"><strong>' . $errno . ' - ' . $error . '<br /><br />' . $query . '<br /><br /><small><font color="#ff0000">[TEP STOP]</font></small><br /><br /></strong></font>');
43 47
   }
44 48
 
49
+  /**
50
+   * @param string $query
51
+   */
45 52
   function tep_db_query($query, $link = 'db_link') {
46 53
     global $$link, $logger;
47 54
 
Please login to merge, or discard this patch.
catalog/admin/includes/functions/general.php 1 patch
Doc Comments   +47 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
 
25 25
 ////
26 26
 // Redirect to another page or site
27
+  /**
28
+   * @param null|string $url
29
+   */
27 30
   function tep_redirect($url) {
28 31
     global $logger;
29 32
 
@@ -165,6 +168,9 @@  discard block
 block discarded – undo
165 168
 
166 169
   }
167 170
 
171
+  /**
172
+   * @param string $raw_datetime
173
+   */
168 174
   function tep_datetime_short($raw_datetime) {
169 175
     if ( ($raw_datetime == '0000-00-00 00:00:00') || ($raw_datetime == '') ) return false;
170 176
 
@@ -275,6 +281,9 @@  discard block
 block discarded – undo
275 281
     return $image;
276 282
   }
277 283
 
284
+  /**
285
+   * @param integer $len
286
+   */
278 287
   function tep_break_string($string, $len, $break_char = '-') {
279 288
     $l = 0;
280 289
     $output = '';
@@ -332,6 +341,9 @@  discard block
 block discarded – undo
332 341
     }
333 342
   }
334 343
 
344
+  /**
345
+   * @param string $component
346
+   */
335 347
   function tep_browser_detect($component) {
336 348
     global $HTTP_USER_AGENT;
337 349
 
@@ -377,6 +389,11 @@  discard block
 block discarded – undo
377 389
     return $geo_zone_name;
378 390
   }
379 391
 
392
+  /**
393
+   * @param boolean $html
394
+   * @param string $boln
395
+   * @param string $eoln
396
+   */
380 397
   function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {
381 398
     $address_format_query = tep_db_query("select address_format as format from " . TABLE_ADDRESS_FORMAT . " where address_format_id = '" . (int)$address_format_id . "'");
382 399
     $address_format = tep_db_fetch_array($address_format_query);
@@ -474,6 +491,9 @@  discard block
 block discarded – undo
474 491
     return $state_prov_code;
475 492
   }
476 493
 
494
+  /**
495
+   * @param string $params
496
+   */
477 497
   function tep_get_uprid($prid, $params) {
478 498
     $uprid = $prid;
479 499
     if ( (is_array($params)) && (!strstr($prid, '{')) ) {
@@ -571,6 +591,9 @@  discard block
 block discarded – undo
571 591
 ////
572 592
 // Wrapper for class_exists() function
573 593
 // This function is not available in all PHP versions so we test it before using it.
594
+  /**
595
+   * @param string $class_name
596
+   */
574 597
   function tep_class_exists($class_name) {
575 598
     if (function_exists('class_exists')) {
576 599
       return class_exists($class_name);
@@ -730,6 +753,9 @@  discard block
 block discarded – undo
730 753
 
731 754
 ////
732 755
 // Sets the status of a banner
756
+  /**
757
+   * @param integer $status
758
+   */
733 759
   function tep_set_banner_status($banners_id, $status) {
734 760
     if ($status == '1') {
735 761
       return tep_db_query("update " . TABLE_BANNERS . " set status = '1', expires_impressions = NULL, expires_date = NULL, date_status_change = NULL where banners_id = '" . $banners_id . "'");
@@ -766,6 +792,9 @@  discard block
 block discarded – undo
766 792
 
767 793
 ////
768 794
 // Sets the status of a product on special
795
+  /**
796
+   * @param integer $status
797
+   */
769 798
   function tep_set_specials_status($specials_id, $status) {
770 799
     if ($status == '1') {
771 800
       return tep_db_query("update " . TABLE_SPECIALS . " set status = '1', expires_date = NULL, date_status_change = NULL where specials_id = '" . (int)$specials_id . "'");
@@ -1014,6 +1043,9 @@  discard block
 block discarded – undo
1014 1043
     tep_db_query("delete from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$order_id . "'");
1015 1044
   }
1016 1045
 
1046
+  /**
1047
+   * @param string $cache_block
1048
+   */
1017 1049
   function tep_reset_cache_block($cache_block) {
1018 1050
     global $cache_blocks;
1019 1051
 
@@ -1157,6 +1189,11 @@  discard block
 block discarded – undo
1157 1189
     return $value;
1158 1190
   }
1159 1191
 
1192
+  /**
1193
+   * @param string $to_name
1194
+   * @param string $email_subject
1195
+   * @param string $email_text
1196
+   */
1160 1197
   function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) {
1161 1198
     if (SEND_EMAILS != 'true') return false;
1162 1199
 
@@ -1209,6 +1246,9 @@  discard block
 block discarded – undo
1209 1246
 
1210 1247
 ////
1211 1248
 // Wrapper function for round() for php3 compatibility
1249
+  /**
1250
+   * @return double
1251
+   */
1212 1252
   function tep_round($value, $precision) {
1213 1253
     return round($value, $precision);
1214 1254
   }
@@ -1325,6 +1365,10 @@  discard block
 block discarded – undo
1325 1365
 
1326 1366
 ////
1327 1367
 // Return a random value
1368
+  /**
1369
+   * @param integer $min
1370
+   * @param integer $max
1371
+   */
1328 1372
   function tep_rand($min = null, $max = null) {
1329 1373
     static $seeded;
1330 1374
 
@@ -1340,6 +1384,9 @@  discard block
 block discarded – undo
1340 1384
   }
1341 1385
 
1342 1386
 // nl2br() prior PHP 4.2.0 did not convert linefeeds on all OSs (it only converted \n)
1387
+  /**
1388
+   * @param string[] $from
1389
+   */
1343 1390
   function tep_convert_linefeeds($from, $to, $string) {
1344 1391
       return str_replace($from, $to, $string);
1345 1392
   }
Please login to merge, or discard this patch.
catalog/admin/includes/functions/html_graphs.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -231,6 +231,10 @@  discard block
 block discarded – undo
231 231
 
232 232
 ////
233 233
 // prints out the actual data for the double horizontal chart
234
+  /**
235
+   * @param integer $dvalues
236
+   * @param integer $dbars
237
+   */
234 238
   function double_horizontal_graph($names, $values, $bars, $vals, $dvalues, $dbars) {
235 239
     $double_horizontal_graph_string = '';
236 240
     for($i = 0, $n = sizeof($values); $i < $n; $i++) {
@@ -291,6 +295,10 @@  discard block
 block discarded – undo
291 295
 
292 296
 ////
293 297
 // prints out the actual data for the double vertical chart
298
+  /**
299
+   * @param integer $dvalues
300
+   * @param integer $dbars
301
+   */
294 302
   function double_vertical_graph($names, $values, $bars, $vals, $dvalues, $dbars) {
295 303
     $double_vertical_graph_string = '  <tr>' . "\n";
296 304
     for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
Please login to merge, or discard this patch.
catalog/admin/includes/functions/html_output.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@  discard block
 block discarded – undo
88 88
 
89 89
 ////
90 90
 // The HTML image wrapper function
91
+  /**
92
+   * @param string $src
93
+   */
91 94
   function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
92 95
     $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';
93 96
 
@@ -176,6 +179,9 @@  discard block
 block discarded – undo
176 179
 
177 180
 ////
178 181
 // Output a form
182
+  /**
183
+   * @param string $name
184
+   */
179 185
   function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '') {
180 186
     $form = '<form name="' . tep_output_string($name) . '" action="';
181 187
     if (tep_not_null($parameters)) {
@@ -237,6 +243,9 @@  discard block
 block discarded – undo
237 243
 
238 244
 ////
239 245
 // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field()
246
+  /**
247
+   * @param string $type
248
+   */
240 249
   function tep_draw_selection_field($name, $type, $value = '', $checked = false, $compare = '') {
241 250
 
242 251
     $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';
@@ -267,6 +276,12 @@  discard block
 block discarded – undo
267 276
 ////
268 277
 // Output a form textarea field
269 278
 // The $wrap parameter is no longer used in the core xhtml template
279
+  /**
280
+   * @param string $name
281
+   * @param boolean $wrap
282
+   * @param integer $width
283
+   * @param integer $height
284
+   */
270 285
   function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
271 286
 
272 287
     $field = '<textarea name="' . tep_output_string($name) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';
@@ -292,6 +307,9 @@  discard block
 block discarded – undo
292 307
 
293 308
 ////
294 309
 // Output a form hidden field
310
+  /**
311
+   * @param string $name
312
+   */
295 313
   function tep_draw_hidden_field($name, $value = '', $parameters = '') {
296 314
 
297 315
     $field = '<input type="hidden" name="' . tep_output_string($name) . '"';
@@ -327,6 +345,9 @@  discard block
 block discarded – undo
327 345
 
328 346
 ////
329 347
 // Output a form pull down menu
348
+  /**
349
+   * @param string $name
350
+   */
330 351
   function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {
331 352
 
332 353
     $field = '<select name="' . tep_output_string($name) . '"';
@@ -360,6 +381,12 @@  discard block
 block discarded – undo
360 381
 
361 382
 ////
362 383
 // Output a jQuery UI Button
384
+  /**
385
+   * @param string $title
386
+   * @param string $icon
387
+   * @param string $link
388
+   * @param string $priority
389
+   */
363 390
   function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null) {
364 391
     static $button_counter = 1;
365 392
 
Please login to merge, or discard this patch.