@@ -103,7 +103,7 @@ |
||
103 | 103 | * |
104 | 104 | * @param string $content The current message. |
105 | 105 | * |
106 | - * @return array The new message. |
|
106 | + * @return string The new message. |
|
107 | 107 | */ |
108 | 108 | public static function jitm_woocommerce_services_msg( $content ) { |
109 | 109 | if ( ! function_exists( 'wc_get_base_location' ) ) { |
@@ -100,6 +100,10 @@ discard block |
||
100 | 100 | return $ret; |
101 | 101 | } |
102 | 102 | |
103 | +/** |
|
104 | + * @param string $prefix |
|
105 | + * @param string $sep |
|
106 | + */ |
|
103 | 107 | function _http_build_query( $data, $prefix = null, $sep = null, $key = '', $urlencode = true ) { |
104 | 108 | $ret = array(); |
105 | 109 | |
@@ -139,6 +143,9 @@ discard block |
||
139 | 143 | return _http_build_query( $data, null, '&', '', false ); |
140 | 144 | } |
141 | 145 | |
146 | +/** |
|
147 | + * @param string $callback |
|
148 | + */ |
|
142 | 149 | function map_deep( $value, $callback ) { |
143 | 150 | if ( is_array( $value ) ) { |
144 | 151 | foreach ( $value as $index => $item ) { |
@@ -143,7 +143,7 @@ |
||
143 | 143 | /** |
144 | 144 | * |
145 | 145 | * Return Whether boolean cached threats exist or null if the state is unknown. |
146 | - * * @return boolean or null |
|
146 | + * * @return null|boolean or null |
|
147 | 147 | */ |
148 | 148 | public function has_threats() { |
149 | 149 | $scan_state = get_transient( 'jetpack_scan_state' ); |