Completed
Pull Request — master (#397)
by
unknown
04:15
created
catalog/admin/includes/classes/email.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -81,6 +81,7 @@  discard block
 block discarded – undo
81 81
  * it. This can then be given as the first
82 82
  * argument of the the functions
83 83
  * add_html_image() or add_attachment().
84
+ * @param string $filename
84 85
  */
85 86
 
86 87
     function get_file($filename) {
@@ -151,6 +152,7 @@  discard block
 block discarded – undo
151 152
  * Adds a html part to the mail.
152 153
  * Also replaces image names with
153 154
  * content-id's.
155
+ * @param string $text
154 156
  */
155 157
 
156 158
     function add_html($html, $text = NULL, $images_dir = NULL) {
@@ -163,6 +165,7 @@  discard block
 block discarded – undo
163 165
 /**
164 166
  * Adds an image to the list of embedded
165 167
  * images.
168
+ * @param string $file
166 169
  */
167 170
 
168 171
     function add_html_image($file, $name = '', $c_type='application/octet-stream') {
@@ -227,6 +230,7 @@  discard block
 block discarded – undo
227 230
 
228 231
 /**
229 232
  * Adds an alternative part to a mime_part object
233
+ * @param null|mime $obj
230 234
  */
231 235
 
232 236
     function add_alternative_part(&$obj) {
Please login to merge, or discard this patch.
catalog/admin/includes/classes/mime.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
  * @param $body   The body of the subpart, if any.
146 146
  * @param $params The parameters for the subpart, same
147 147
  *                as the $params argument for constructor.
148
- * @return A reference to the part you just added. It is
148
+ * @return mime reference to the part you just added. It is
149 149
  *         crucial if using multipart/* in your subparts that
150 150
  *         you use =& in your script when calling this function,
151 151
  *         otherwise you will not be able to add further subparts.
Please login to merge, or discard this patch.
catalog/admin/includes/classes/passwordhash.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -35,6 +35,10 @@  discard block
 block discarded – undo
35 35
 	var $portable_hashes;
36 36
 	var $random_state;
37 37
 
38
+	/**
39
+	 * @param integer $iteration_count_log2
40
+	 * @param boolean $portable_hashes
41
+	 */
38 42
 	function PasswordHash($iteration_count_log2, $portable_hashes)
39 43
 	{
40 44
 		$this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
@@ -84,6 +88,9 @@  discard block
 block discarded – undo
84 88
 		return $output;
85 89
 	}
86 90
 
91
+	/**
92
+	 * @param integer $count
93
+	 */
87 94
 	function encode64($input, $count)
88 95
 	{
89 96
 		$output = '';
@@ -107,6 +114,9 @@  discard block
 block discarded – undo
107 114
 		return $output;
108 115
 	}
109 116
 
117
+	/**
118
+	 * @param string $input
119
+	 */
110 120
 	function gensalt_private($input)
111 121
 	{
112 122
 		$output = '$P$';
@@ -155,6 +165,9 @@  discard block
 block discarded – undo
155 165
 		return $output;
156 166
 	}
157 167
 
168
+	/**
169
+	 * @param string $input
170
+	 */
158 171
 	function gensalt_extended($input)
159 172
 	{
160 173
 		$count_log2 = min($this->iteration_count_log2 + 8, 24);
@@ -173,6 +186,9 @@  discard block
 block discarded – undo
173 186
 		return $output;
174 187
 	}
175 188
 
189
+	/**
190
+	 * @param string $input
191
+	 */
176 192
 	function gensalt_blowfish($input)
177 193
 	{
178 194
 		# This one needs to use a different order of characters and a
Please login to merge, or discard this patch.
catalog/admin/includes/functions/password_funcs.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@  discard block
 block discarded – undo
13 13
 ////
14 14
 // This function validates a plain text password with a
15 15
 // salted or phpass password
16
+  /**
17
+   * @param string $plain
18
+   */
16 19
   function tep_validate_password($plain, $encrypted) {
17 20
     if (tep_not_null($plain) && tep_not_null($encrypted)) {
18 21
       if (tep_password_type($encrypted) == 'salt') {
@@ -52,6 +55,9 @@  discard block
 block discarded – undo
52 55
 ////
53 56
 // This function encrypts a phpass password from a plaintext
54 57
 // password.
58
+  /**
59
+   * @param string $plain
60
+   */
55 61
   function tep_encrypt_password($plain) {
56 62
     if (!class_exists('PasswordHash')) {
57 63
       include(DIR_WS_CLASSES . 'passwordhash.php');
Please login to merge, or discard this patch.
includes/modules/security_check/extended/admin_backup_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 null|string $url
37
+     */
35 38
     function getHttpRequest($url) {
36 39
       $server = parse_url($url);
37 40
 
Please login to merge, or discard this patch.
admin/includes/modules/security_check/extended/admin_backup_file.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 null|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/functions/banner.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 
15 15
 ////
16 16
 // Sets the status of a special product
17
+  /**
18
+   * @param integer $status
19
+   */
17 20
   function tep_set_specials_status($specials_id, $status) {
18 21
     $OSCOM_Db = Registry::get('Db');
19 22
 
Please login to merge, or discard this patch.
catalog/includes/modules/payment/braintree_cc/Braintree.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@
 block discarded – undo
68 68
         return $this->forKey("index" . $index);
69 69
     }
70 70
 
71
+    /**
72
+     * @param string $key
73
+     */
71 74
     public function forKey($key)
72 75
     {
73 76
         return isset($this->_nested[$key]) ? $this->_nested[$key] : null;
Please login to merge, or discard this patch.
catalog/includes/modules/payment/braintree_cc/Braintree/KeyValueNode.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -2,6 +2,9 @@
 block discarded – undo
2 2
 
3 3
 class Braintree_RangeNode
4 4
 {
5
+    /**
6
+     * @param string $name
7
+     */
5 8
     function __construct($name)
6 9
     {
7 10
         $this->name = $name;
Please login to merge, or discard this patch.