@@ -729,6 +729,7 @@ |
||
| 729 | 729 | * |
| 730 | 730 | * @param string $branch - Branch that's ready for update. |
| 731 | 731 | * @param string $section - What kind of branch we're updated (master, rc, pr). |
| 732 | + * @return string |
|
| 732 | 733 | */ |
| 733 | 734 | public static function update_action_url( $branch, $section ) { |
| 734 | 735 | $query = array( |
@@ -229,7 +229,7 @@ |
||
| 229 | 229 | * |
| 230 | 230 | * @param string $notify_moderator The value of the moderation_notify option OR if the comment is awaiting moderation. |
| 231 | 231 | * @param int $comment_id Comment ID. |
| 232 | - * @return boolean Returns false to shortcircuit the execution of wp_notify_moderator |
|
| 232 | + * @return string|false Returns false to shortcircuit the execution of wp_notify_moderator |
|
| 233 | 233 | */ |
| 234 | 234 | function jetpack_notify_moderator( $notify_moderator, $comment_id ) { |
| 235 | 235 | /* |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | /** |
| 169 | 169 | * Checks to see whether or not the root package is the one that required the autoloader. |
| 170 | 170 | * |
| 171 | - * @return bool |
|
| 171 | + * @return null|boolean |
|
| 172 | 172 | */ |
| 173 | 173 | private function isRequiredByRoot() { |
| 174 | 174 | $package = $this->composer->getPackage(); |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * @param array $post_types - other post types. |
| 194 | 194 | * |
| 195 | 195 | * @see hook 'rest_api_allowed_post_types' |
| 196 | - * @return array |
|
| 196 | + * @return string[] |
|
| 197 | 197 | */ |
| 198 | 198 | public function allow_rest_api_types( $post_types ) { |
| 199 | 199 | $post_types[] = self::$post_type_plan; |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | * (because it requires a plan upgrade or Stripe connection), and the |
| 255 | 255 | * button is a child of a Premium Content block. |
| 256 | 256 | * |
| 257 | - * @param WP_Block $block Recurring Payments block instance. |
|
| 257 | + * @param WP_Block|null $block Recurring Payments block instance. |
|
| 258 | 258 | * |
| 259 | 259 | * @return boolean |
| 260 | 260 | */ |
@@ -136,6 +136,10 @@ discard block |
||
| 136 | 136 | ); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | + /** |
|
| 140 | + * @param string $service_name |
|
| 141 | + * @param string $for |
|
| 142 | + */ |
|
| 139 | 143 | static function refresh_url( $service_name, $for ) { |
| 140 | 144 | return add_query_arg( |
| 141 | 145 | array( |
@@ -150,6 +154,10 @@ discard block |
||
| 150 | 154 | ); |
| 151 | 155 | } |
| 152 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $service_name |
|
| 159 | + * @param string $id |
|
| 160 | + */ |
|
| 153 | 161 | static function disconnect_url( $service_name, $id ) { |
| 154 | 162 | return add_query_arg( |
| 155 | 163 | array( |
@@ -281,7 +281,7 @@ |
||
| 281 | 281 | * @param string $password the password. |
| 282 | 282 | * @param array $test_data the current test data. |
| 283 | 283 | * |
| 284 | - * @return bool does the test pass? |
|
| 284 | + * @return integer does the test pass? |
|
| 285 | 285 | */ |
| 286 | 286 | protected function test_preg_match( $password, $test_data ) { |
| 287 | 287 | return preg_match( $test_data['pattern'], $password ); |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | /** |
| 166 | 166 | * Set the timestamp. |
| 167 | 167 | * |
| 168 | - * @param DateTime|string $timestamp Timestamp to set. |
|
| 168 | + * @param string $timestamp Timestamp to set. |
|
| 169 | 169 | * @returns $this |
| 170 | 170 | * @throws InvalidArgumentException If an argument is invalid. |
| 171 | 171 | */ |
@@ -89,6 +89,7 @@ |
||
| 89 | 89 | * |
| 90 | 90 | * @param string $haystack String to split. |
| 91 | 91 | * @param string[] ...$needles Strings to split on. Earliest match in $haystack wins. |
| 92 | + * @param string $needles |
|
| 92 | 93 | * @return string[] Two elements: The part before $needles and the part after, both trimmed. |
| 93 | 94 | */ |
| 94 | 95 | private function split( $haystack, ...$needles ) { |
@@ -43,6 +43,7 @@ |
||
| 43 | 43 | * @param String $action The action name. |
| 44 | 44 | * @param Integer|bool $user_id The user identifier. Defaults to `false`. |
| 45 | 45 | * @param Integer $exp Expiration time in seconds. |
| 46 | + * @return string|boolean |
|
| 46 | 47 | */ |
| 47 | 48 | public function generate( $action, $user_id = false, $exp = 600 ) { |
| 48 | 49 | if ( false === $user_id ) { |