@@ -1,8 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Braintree; |
3 | 3 | |
4 | -use InvalidArgumentException; |
|
5 | - |
|
6 | 4 | /** |
7 | 5 | * Braintree UsBankAccountGateway module |
8 | 6 | * |
@@ -7,6 +7,9 @@ |
||
7 | 7 | private $_config; |
8 | 8 | private $_http; |
9 | 9 | |
10 | + /** |
|
11 | + * @param Gateway $gateway |
|
12 | + */ |
|
10 | 13 | public function __construct($gateway) |
11 | 14 | { |
12 | 15 | $this->_gateway = $gateway; |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * removes the header from a classname |
103 | 103 | * |
104 | 104 | * @param string $name ClassName |
105 | - * @return camelCased classname minus header |
|
105 | + * @return string classname minus header |
|
106 | 106 | */ |
107 | 107 | public static function cleanClassName($name) |
108 | 108 | { |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | * @param array $array associative array to implode |
292 | 292 | * @param string $separator (optional, defaults to =) |
293 | 293 | * @param string $glue (optional, defaults to ', ') |
294 | - * @return bool |
|
294 | + * @return string|false |
|
295 | 295 | */ |
296 | 296 | public static function implodeAssociativeArray($array, $separator = '=', $glue = ', ') |
297 | 297 | { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @access protected |
60 | 60 | * @static |
61 | - * @param object $writer XMLWriter object |
|
61 | + * @param XMLWriter $writer XMLWriter object |
|
62 | 62 | * @param array $aData contains attributes and values |
63 | 63 | * @return void |
64 | 64 | */ |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * converts datetime back to xml schema format |
127 | 127 | * @access protected |
128 | - * @param object $dateTime |
|
128 | + * @param DateTime $dateTime |
|
129 | 129 | * @return string XML schema formatted timestamp |
130 | 130 | */ |
131 | 131 | private static function _dateTimeToXmlTimestamp($dateTime) |
@@ -182,6 +182,9 @@ discard block |
||
182 | 182 | return false; |
183 | 183 | } |
184 | 184 | |
185 | + /** |
|
186 | + * @param string $info |
|
187 | + */ |
|
185 | 188 | function getModuleInfo($module, $info) { |
186 | 189 | $class = 'OSCOM_Braintree_' . $module; |
187 | 190 | |
@@ -368,6 +371,10 @@ discard block |
||
368 | 371 | return $result; |
369 | 372 | } |
370 | 373 | |
374 | + /** |
|
375 | + * @param string $link |
|
376 | + * @param string $type |
|
377 | + */ |
|
371 | 378 | function drawButton($title = null, $link = null, $type = null, $params = null, $force_css = false) { |
372 | 379 | $colours = array('success' => '#1cb841', |
373 | 380 | 'error' => '#ca3c3c', |
@@ -424,6 +431,9 @@ discard block |
||
424 | 431 | return $button; |
425 | 432 | } |
426 | 433 | |
434 | + /** |
|
435 | + * @param integer $length |
|
436 | + */ |
|
427 | 437 | function createRandomValue($length, $type = 'mixed') { |
428 | 438 | if ( ($type != 'mixed') && ($type != 'chars') && ($type != 'digits')) $type = 'mixed'; |
429 | 439 | |
@@ -508,6 +518,9 @@ discard block |
||
508 | 518 | } |
509 | 519 | } |
510 | 520 | |
521 | + /** |
|
522 | + * @param string $key |
|
523 | + */ |
|
511 | 524 | function deleteParameter($key) { |
512 | 525 | tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = '" . tep_db_input($key) . "'"); |
513 | 526 | } |
@@ -672,6 +685,9 @@ discard block |
||
672 | 685 | } |
673 | 686 | } |
674 | 687 | |
688 | + /** |
|
689 | + * @param string $filename |
|
690 | + */ |
|
675 | 691 | public function loadLanguageFile($filename, $lang = null) { |
676 | 692 | global $language; |
677 | 693 | |
@@ -713,6 +729,9 @@ discard block |
||
713 | 729 | } |
714 | 730 | } |
715 | 731 | |
732 | + /** |
|
733 | + * @param string $key |
|
734 | + */ |
|
716 | 735 | function getDef($key, $values = null) { |
717 | 736 | $def = isset($this->_definitions[$key]) ? $this->_definitions[$key] : $key; |
718 | 737 |
@@ -103,6 +103,9 @@ discard block |
||
103 | 103 | return session_start(); |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $variable |
|
108 | + */ |
|
106 | 109 | function tep_session_register($variable) { |
107 | 110 | if (PHP_VERSION < 4.3) { |
108 | 111 | return session_register($variable); |
@@ -117,6 +120,9 @@ discard block |
||
117 | 120 | return false; |
118 | 121 | } |
119 | 122 | |
123 | + /** |
|
124 | + * @param string $variable |
|
125 | + */ |
|
120 | 126 | function tep_session_is_registered($variable) { |
121 | 127 | if (PHP_VERSION < 4.3) { |
122 | 128 | return session_is_registered($variable); |
@@ -125,6 +131,9 @@ discard block |
||
125 | 131 | } |
126 | 132 | } |
127 | 133 | |
134 | + /** |
|
135 | + * @param string $variable |
|
136 | + */ |
|
128 | 137 | function tep_session_unregister($variable) { |
129 | 138 | if (PHP_VERSION < 4.3) { |
130 | 139 | return session_unregister($variable); |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return MODULE_SECURITY_CHECK_EXTENDED_ADMIN_BACKUP_DIRECTORY_LISTING_HTTP_200; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param null|string $url |
|
37 | + */ |
|
35 | 38 | function getHttpRequest($url) { |
36 | 39 | global $HTTP_SERVER_VARS; |
37 | 40 |
@@ -66,6 +66,9 @@ |
||
66 | 66 | return MODULE_SECURITY_CHECK_EXTENDED_ADMIN_BACKUP_FILE_HTTP_200; |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @param null|string $url |
|
71 | + */ |
|
69 | 72 | function getHttpRequest($url) { |
70 | 73 | global $HTTP_SERVER_VARS; |
71 | 74 |
@@ -82,6 +82,7 @@ discard block |
||
82 | 82 | * it. This can then be given as the first |
83 | 83 | * argument of the the functions |
84 | 84 | * add_html_image() or add_attachment(). |
85 | + * @param string $filename |
|
85 | 86 | */ |
86 | 87 | |
87 | 88 | function get_file($filename) { |
@@ -153,6 +154,7 @@ discard block |
||
153 | 154 | * Adds a html part to the mail. |
154 | 155 | * Also replaces image names with |
155 | 156 | * content-id's. |
157 | + * @param string $text |
|
156 | 158 | */ |
157 | 159 | |
158 | 160 | function add_html($html, $text = NULL, $images_dir = NULL) { |
@@ -165,6 +167,7 @@ discard block |
||
165 | 167 | /** |
166 | 168 | * Adds an image to the list of embedded |
167 | 169 | * images. |
170 | + * @param string $file |
|
168 | 171 | */ |
169 | 172 | |
170 | 173 | function add_html_image($file, $name = '', $c_type='application/octet-stream') { |
@@ -239,6 +242,9 @@ discard block |
||
239 | 242 | |
240 | 243 | /* HPDL PHP3 */ |
241 | 244 | // function &add_alternative_part(&$obj) { |
245 | + /** |
|
246 | + * @param null|mime $obj |
|
247 | + */ |
|
242 | 248 | function add_alternative_part(&$obj) { |
243 | 249 | $params['content_type'] = 'multipart/alternative'; |
244 | 250 |
@@ -70,6 +70,9 @@ |
||
70 | 70 | $this->set_language($lng); |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param string $language |
|
75 | + */ |
|
73 | 76 | function set_language($language) { |
74 | 77 | if ( (tep_not_null($language)) && (isset($this->catalog_languages[$language])) ) { |
75 | 78 | $this->language = $this->catalog_languages[$language]; |