Completed
Push — master ( 3e819d...a2e281 )
by Harald
06:07 queued 02:52
created
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/modules/action_recorder/ar_tell_a_friend.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 */
12 12
 
13 13
   use OSC\OM\HTTP;
14
-  use OSC\OM\OSCOM;	
14
+  use OSC\OM\OSCOM;
15 15
   use OSC\OM\Registry;
16 16
 
17 17
   class ar_tell_a_friend {
Please login to merge, or discard this patch.
catalog/includes/modules/action_recorder/ar_admin_login.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 */
12 12
 
13 13
   use OSC\OM\HTTP;
14
-  use OSC\OM\OSCOM;	
14
+  use OSC\OM\OSCOM;
15 15
   use OSC\OM\Registry;
16 16
 
17 17
   class ar_tell_a_friend {
Please login to merge, or discard this patch.
catalog/includes/modules/action_recorder/ar_contact_us.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 */
12 12
 
13 13
   use OSC\OM\HTTP;
14
-  use OSC\OM\OSCOM;	
14
+  use OSC\OM\OSCOM;
15 15
   use OSC\OM\Registry;
16 16
 
17 17
   class ar_tell_a_friend {
Please login to merge, or discard this patch.
catalog/includes/modules/action_recorder/ar_reset_password.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 */
12 12
 
13 13
   use OSC\OM\HTTP;
14
-  use OSC\OM\OSCOM;	
14
+  use OSC\OM\OSCOM;
15 15
   use OSC\OM\Registry;
16 16
 
17 17
   class ar_tell_a_friend {
Please login to merge, or discard this patch.
catalog/admin/includes/modules/dashboard/d_partner_news.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 */
12 12
 
13 13
   use OSC\OM\Cache;
14
-  use OSC\OM\FileSystem;
15 14
   use OSC\OM\HTTP;
16 15
   use OSC\OM\OSCOM;
17 16
   use OSC\OM\Registry;
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/HTML.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -90,6 +90,10 @@  discard block
 block discarded – undo
90 90
         return $image;
91 91
     }
92 92
 
93
+    /**
94
+     * @param string $name
95
+     * @param string $action
96
+     */
93 97
     public static function form($name, $action, $method = 'post', $parameters = '', array $flags = [])
94 98
     {
95 99
         if (!isset($flags['tokenize']) || !is_bool($flags['tokenize'])) {
@@ -162,6 +166,9 @@  discard block
 block discarded – undo
162 166
         return static::inputField($name, null, $parameters, 'file', false);
163 167
     }
164 168
 
169
+    /**
170
+     * @param string $type
171
+     */
165 172
     protected static function selectionField($name, $type, $value = '', $checked = false, $parameters = '')
166 173
     {
167 174
         $selection = '<input type="' . static::output($type) . '" name="' . static::output($name) . '"';
@@ -183,6 +190,9 @@  discard block
 block discarded – undo
183 190
         return $selection;
184 191
     }
185 192
 
193
+    /**
194
+     * @param string $name
195
+     */
186 196
     public static function checkboxField($name, $value = '', $checked = false, $parameters = '')
187 197
     {
188 198
         return static::selectionField($name, 'checkbox', $value, $checked, $parameters);
@@ -193,6 +203,11 @@  discard block
 block discarded – undo
193 203
         return static::selectionField($name, 'radio', $value, $checked, $parameters);
194 204
     }
195 205
 
206
+    /**
207
+     * @param string $name
208
+     * @param integer $width
209
+     * @param integer $height
210
+     */
196 211
     public static function textareaField($name, $width, $height, $text = '', $parameters = '', $reinsert_value = true, $class = 'form-control')
197 212
     {
198 213
         $field = '<textarea name="' . static::output($name) . '" cols="' . static::output($width) . '" rows="' . static::output($height) . '"';
@@ -312,6 +327,10 @@  discard block
 block discarded – undo
312 327
         return $field;
313 328
     }
314 329
 
330
+    /**
331
+     * @param string $icon
332
+     * @param string $link
333
+     */
315 334
     public static function button($title = null, $icon = null, $link = null, $params = null, $class = null)
316 335
     {
317 336
         $types = ['submit', 'button', 'reset'];
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.
catalog/includes/classes/osc_template.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -74,6 +74,10 @@
 block discarded – undo
74 74
       return $this->_code;
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $block
79
+     * @param string $group
80
+     */
77 81
     function addBlock($block, $group) {
78 82
       $this->_blocks[$group][] = $block;
79 83
     }
Please login to merge, or discard this patch.