Completed
Pull Request — master (#407)
by Harald
05:05
created
admin/includes/modules/security_check/extended/admin_backup_file.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@
 block discarded – undo
68 68
       return MODULE_SECURITY_CHECK_EXTENDED_ADMIN_BACKUP_FILE_HTTP_200;
69 69
     }
70 70
 
71
+    /**
72
+     * @param string $url
73
+     */
71 74
     function getHttpRequest($url) {
72 75
 
73 76
       $server = parse_url($url);
Please login to merge, or discard this patch.
admin/includes/modules/security_check/extended/ext_directory_listing.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
       return MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200;
33 33
     }
34 34
 
35
+    /**
36
+     * @param string $url
37
+     */
35 38
     function getHttpRequest($url) {
36 39
       $server = parse_url($url);
37 40
 
Please login to merge, or discard this patch.
catalog/includes/classes/category_tree.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@  discard block
 block discarded – undo
54 54
       }
55 55
     }
56 56
 
57
+    /**
58
+     * @param integer $parent_id
59
+     */
57 60
     protected function _buildBranch($parent_id, $level = 0) {
58 61
       $result = ((($level === 0) && ($this->parent_group_apply_to_root === true)) || ($level > 0)) ? $this->parent_group_start_string : null;
59 62
 
@@ -278,6 +281,10 @@  discard block
 block discarded – undo
278 281
       $this->parent_end_string = $parent_end_string;
279 282
     }
280 283
 
284
+    /**
285
+     * @param string $parent_group_start_string
286
+     * @param string $parent_group_end_string
287
+     */
281 288
     function setParentGroupString($parent_group_start_string, $parent_group_end_string, $apply_to_root = false) {
282 289
       $this->parent_group_start_string = $parent_group_start_string;
283 290
       $this->parent_group_end_string = $parent_group_end_string;
@@ -301,6 +308,9 @@  discard block
 block discarded – undo
301 308
       }
302 309
     }
303 310
 
311
+    /**
312
+     * @param string $spacer_string
313
+     */
304 314
     function setSpacerString($spacer_string, $spacer_multiplier = 2) {
305 315
       $this->spacer_string = $spacer_string;
306 316
       $this->spacer_multiplier = $spacer_multiplier;
Please login to merge, or discard this patch.
catalog/includes/classes/passwordhash.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -84,6 +84,9 @@  discard block
 block discarded – undo
84 84
 		return $output;
85 85
 	}
86 86
 
87
+	/**
88
+	 * @param integer $count
89
+	 */
87 90
 	function encode64($input, $count)
88 91
 	{
89 92
 		$output = '';
@@ -107,6 +110,9 @@  discard block
 block discarded – undo
107 110
 		return $output;
108 111
 	}
109 112
 
113
+	/**
114
+	 * @param string $input
115
+	 */
110 116
 	function gensalt_private($input)
111 117
 	{
112 118
 		$output = '$P$';
@@ -155,6 +161,9 @@  discard block
 block discarded – undo
155 161
 		return $output;
156 162
 	}
157 163
 
164
+	/**
165
+	 * @param string $input
166
+	 */
158 167
 	function gensalt_extended($input)
159 168
 	{
160 169
 		$count_log2 = min($this->iteration_count_log2 + 8, 24);
@@ -173,6 +182,9 @@  discard block
 block discarded – undo
173 182
 		return $output;
174 183
 	}
175 184
 
185
+	/**
186
+	 * @param string $input
187
+	 */
176 188
 	function gensalt_blowfish($input)
177 189
 	{
178 190
 		# This one needs to use a different order of characters and a
Please login to merge, or discard this patch.
catalog/includes/functions/general.php 1 patch
Doc Comments   +32 added lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@  discard block
 block discarded – undo
78 78
 
79 79
 ////
80 80
 // Break a word in a string if it is longer than a specified length ($len)
81
+  /**
82
+   * @param integer $len
83
+   */
81 84
   function tep_break_string($string, $len, $break_char = '-') {
82 85
     $l = 0;
83 86
     $output = '';
@@ -201,6 +204,9 @@  discard block
 block discarded – undo
201 204
 
202 205
 ////
203 206
 // Returns the clients browser
207
+  /**
208
+   * @param string $component
209
+   */
204 210
   function tep_browser_detect($component) {
205 211
     return stristr($_SERVER['HTTP_USER_AGENT'], $component);
206 212
   }
@@ -251,6 +257,9 @@  discard block
 block discarded – undo
251 257
 
252 258
 ////
253 259
 // Wrapper function for round()
260
+  /**
261
+   * @return double
262
+   */
254 263
   function tep_round($number, $precision) {
255 264
     if (strpos($number, '.') && (strlen(substr($number, strpos($number, '.')+1)) > $precision)) {
256 265
       $number = substr($number, 0, strpos($number, '.') + 1 + $precision + 1);
@@ -430,6 +439,11 @@  discard block
 block discarded – undo
430 439
 ////
431 440
 // Return a formatted address
432 441
 // TABLES: address_format
442
+  /**
443
+   * @param boolean $html
444
+   * @param string $boln
445
+   * @param string $eoln
446
+   */
433 447
   function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {
434 448
     $OSCOM_Db = Registry::get('Db');
435 449
 
@@ -958,6 +972,9 @@  discard block
 block discarded – undo
958 972
 
959 973
 ////
960 974
 // Return a product ID with attributes
975
+  /**
976
+   * @param string $params
977
+   */
961 978
   function tep_get_uprid($prid, $params) {
962 979
     if (is_numeric($prid)) {
963 980
       $uprid = (int)$prid;
@@ -1039,6 +1056,11 @@  discard block
 block discarded – undo
1039 1056
 // $from_email_adress The eMail address of the sender,
1040 1057
 //                    e.g. [email protected]
1041 1058
 
1059
+  /**
1060
+   * @param string $to_name
1061
+   * @param string $email_subject
1062
+   * @param string $email_text
1063
+   */
1042 1064
   function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) {
1043 1065
     if (SEND_EMAILS != 'true') return false;
1044 1066
 
@@ -1098,6 +1120,9 @@  discard block
 block discarded – undo
1098 1120
     return tep_count_modules(MODULE_SHIPPING_INSTALLED);
1099 1121
   }
1100 1122
 
1123
+  /**
1124
+   * @param integer $length
1125
+   */
1101 1126
   function tep_create_random_value($length, $type = 'mixed') {
1102 1127
     if ( ($type != 'mixed') && ($type != 'chars') && ($type != 'digits')) $type = 'mixed';
1103 1128
 
@@ -1253,6 +1278,10 @@  discard block
 block discarded – undo
1253 1278
 
1254 1279
 ////
1255 1280
 // Return a random value
1281
+  /**
1282
+   * @param integer $min
1283
+   * @param integer $max
1284
+   */
1256 1285
   function tep_rand($min = null, $max = null) {
1257 1286
 
1258 1287
     if (isset($min) && isset($max)) {
@@ -1372,6 +1401,9 @@  discard block
 block discarded – undo
1372 1401
   }
1373 1402
 
1374 1403
 // Convert linefeeds
1404
+  /**
1405
+   * @param string[] $from
1406
+   */
1375 1407
   function tep_convert_linefeeds($from, $to, $string) {
1376 1408
       return str_replace($from, $to, $string);
1377 1409
   }
Please login to merge, or discard this patch.
catalog/includes/modules/content/index/cm_i_new_products.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
   Released under the GNU General Public License
11 11
 */
12 12
 
13
-  use OSC\OM\OSCOM;
14 13
   use OSC\OM\Registry;
15 14
 
16 15
   class cm_i_new_products {
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/FileSystem.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -71,6 +71,9 @@
 block discarded – undo
71 71
         return $result;
72 72
     }
73 73
 
74
+    /**
75
+     * @param string $pathname
76
+     */
74 77
     public static function displayPath($pathname)
75 78
     {
76 79
         return str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $pathname);
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/HTML.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -103,6 +103,10 @@  discard block
 block discarded – undo
103 103
         return $image;
104 104
     }
105 105
 
106
+    /**
107
+     * @param string $name
108
+     * @param string $action
109
+     */
106 110
     public static function form($name, $action, $method = 'post', $parameters = '', array $flags = [])
107 111
     {
108 112
         if (!isset($flags['tokenize']) || !is_bool($flags['tokenize'])) {
@@ -175,6 +179,9 @@  discard block
 block discarded – undo
175 179
         return static::inputField($name, null, $parameters, 'file', false);
176 180
     }
177 181
 
182
+    /**
183
+     * @param string $type
184
+     */
178 185
     protected static function selectionField($name, $type, $value = '', $checked = false, $parameters = '')
179 186
     {
180 187
         $selection = '<input type="' . static::output($type) . '" name="' . static::output($name) . '"';
@@ -196,6 +203,9 @@  discard block
 block discarded – undo
196 203
         return $selection;
197 204
     }
198 205
 
206
+    /**
207
+     * @param string $name
208
+     */
199 209
     public static function checkboxField($name, $value = '', $checked = false, $parameters = '')
200 210
     {
201 211
         return static::selectionField($name, 'checkbox', $value, $checked, $parameters);
@@ -206,6 +216,11 @@  discard block
 block discarded – undo
206 216
         return static::selectionField($name, 'radio', $value, $checked, $parameters);
207 217
     }
208 218
 
219
+    /**
220
+     * @param string $name
221
+     * @param integer $width
222
+     * @param integer $height
223
+     */
209 224
     public static function textareaField($name, $width, $height, $text = '', $parameters = '', $reinsert_value = true, $class = 'form-control')
210 225
     {
211 226
         $field = '<textarea name="' . static::output($name) . '" cols="' . static::output($width) . '" rows="' . static::output($height) . '"';
@@ -325,6 +340,12 @@  discard block
 block discarded – undo
325 340
         return $field;
326 341
     }
327 342
 
343
+    /**
344
+     * @param string $title
345
+     * @param string $icon
346
+     * @param string $link
347
+     * @param string $priority
348
+     */
328 349
     public static function button($title = null, $icon = null, $link = null, $priority = null, $params = null, $class = null)
329 350
     {
330 351
         $types = ['submit', 'button', 'reset'];
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/Language.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
         }
52 52
     }
53 53
 
54
+    /**
55
+     * @param string $filename
56
+     */
54 57
     public function loadDefinitionsFromFile($filename, $scope = 'global')
55 58
     {
56 59
         $defs = [];
Please login to merge, or discard this patch.