Completed
Pull Request — master (#452)
by Harald
04:39 queued 20s
created
catalog/includes/functions/general.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
 
80 80
 ////
81 81
 // Break a word in a string if it is longer than a specified length ($len)
82
+  /**
83
+   * @param integer $len
84
+   */
82 85
   function tep_break_string($string, $len, $break_char = '-') {
83 86
     $l = 0;
84 87
     $output = '';
@@ -246,6 +249,9 @@  discard block
 block discarded – undo
246 249
 
247 250
 ////
248 251
 // Wrapper function for round()
252
+  /**
253
+   * @return double
254
+   */
249 255
   function tep_round($number, $precision) {
250 256
     if (strpos($number, '.') && (strlen(substr($number, strpos($number, '.')+1)) > $precision)) {
251 257
       $number = substr($number, 0, strpos($number, '.') + 1 + $precision + 1);
@@ -425,6 +431,11 @@  discard block
 block discarded – undo
425 431
 ////
426 432
 // Return a formatted address
427 433
 // TABLES: address_format
434
+  /**
435
+   * @param boolean $html
436
+   * @param string $boln
437
+   * @param string $eoln
438
+   */
428 439
   function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {
429 440
     $OSCOM_Db = Registry::get('Db');
430 441
 
@@ -918,6 +929,9 @@  discard block
 block discarded – undo
918 929
 
919 930
 ////
920 931
 // Return a product ID with attributes
932
+  /**
933
+   * @param string $params
934
+   */
921 935
   function tep_get_uprid($prid, $params) {
922 936
     if (is_numeric($prid)) {
923 937
       $uprid = (int)$prid;
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/Mail.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@  discard block
 block discarded – undo
25 25
               $content_transfer_encoding = '7bit',
26 26
               $charset = 'utf-8';
27 27
 
28
+    /**
29
+     * @param string $subject
30
+     */
28 31
     public function __construct($to_email_address = null, $to = null, $from_email_address = null, $from = null, $subject = null)
29 32
     {
30 33
         if (!empty($to_email_address)) {
@@ -95,6 +98,9 @@  discard block
 block discarded – undo
95 98
         $this->setBodyPlain($plain);
96 99
     }
97 100
 
101
+    /**
102
+     * @param string $body
103
+     */
98 104
     public function setBodyPlain($body)
99 105
     {
100 106
         $this->body_plain = $body;
@@ -117,6 +123,9 @@  discard block
 block discarded – undo
117 123
         $this->charset = $charset;
118 124
     }
119 125
 
126
+    /**
127
+     * @param string $key
128
+     */
120 129
     public function addHeader($key, $value)
121 130
     {
122 131
         if ((strpos($key, "\n") !== false) || (strpos($key, "\r") !== false)) {
@@ -371,6 +380,9 @@  discard block
 block discarded – undo
371 380
         ini_restore('sendmail_from');
372 381
     }
373 382
 
383
+    /**
384
+     * @param string $file
385
+     */
374 386
     protected function get_mime_type($file)
375 387
     {
376 388
         $ext = substr($file, strrpos($file, '.') + 1);
@@ -394,6 +406,9 @@  discard block
 block discarded – undo
394 406
         }
395 407
     }
396 408
 
409
+    /**
410
+     * @param string $boundary
411
+     */
397 412
     protected function build_attachment($attachment, $boundary)
398 413
     {
399 414
         return '--' . $boundary . "\n" .
@@ -403,6 +418,9 @@  discard block
 block discarded – undo
403 418
                 $attachment['data'] . "\n\n";
404 419
     }
405 420
 
421
+    /**
422
+     * @param string $boundary
423
+     */
406 424
     protected function build_image($image, $boundary)
407 425
     {
408 426
         return '--' . $boundary . "\n" .
Please login to merge, or discard this patch.
catalog/includes/functions/banner.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@  discard block
 block discarded – undo
16 16
 
17 17
 ////
18 18
 // Sets the status of a banner
19
+  /**
20
+   * @param integer $status
21
+   */
19 22
   function tep_set_banner_status($banners_id, $status) {
20 23
     $OSCOM_Db = Registry::get('Db');
21 24
 
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
 
107 110
 ////
108 111
 // Check to see if a banner exists
112
+  /**
113
+   * @param string $action
114
+   */
109 115
   function tep_banner_exists($action, $identifier) {
110 116
     $OSCOM_Db = Registry::get('Db');
111 117
 
Please login to merge, or discard this patch.