@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * Add a callback for WooCommerce product rendering in infinite scroll. |
| 67 | 67 | * |
| 68 | 68 | * @param array $callbacks Array of render callpacks for IS. |
| 69 | - * @return array |
|
| 69 | + * @return string[] |
|
| 70 | 70 | */ |
| 71 | 71 | function jetpack_woocommerce_infinite_scroll_render_callback( $callbacks ) { |
| 72 | 72 | $callbacks[] = 'jetpack_woocommerce_infinite_scroll_render'; |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | * |
| 225 | 225 | * @param string $table Table name to validate. |
| 226 | 226 | * |
| 227 | - * @return mixed|string |
|
| 227 | + * @return string |
|
| 228 | 228 | * @throws Exception Throw an exception on validation failure. |
| 229 | 229 | */ |
| 230 | 230 | private function validate_table_name( $table ) { |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | * @param int|null $range_to The end of the range. |
| 483 | 483 | * @param int|null $limit How many values to return. |
| 484 | 484 | * |
| 485 | - * @return array|object|void |
|
| 485 | + * @return boolean |
|
| 486 | 486 | * @throws Exception Throws an exception if validation fails on the internal function calls. |
| 487 | 487 | */ |
| 488 | 488 | public function get_range_edges( $range_from = null, $range_to = null, $limit = null ) { |
@@ -64,8 +64,8 @@ |
||
| 64 | 64 | * Get a single Meta Result. |
| 65 | 65 | * |
| 66 | 66 | * @param string $object_type post, comment, term, user. |
| 67 | - * @param null $id Object ID. |
|
| 68 | - * @param null $meta_key Meta Key. |
|
| 67 | + * @param integer $id Object ID. |
|
| 68 | + * @param string $meta_key Meta Key. |
|
| 69 | 69 | * |
| 70 | 70 | * @return mixed|null |
| 71 | 71 | */ |
@@ -22,6 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Scan every PHP in the root |
| 25 | + * @param string $root |
|
| 25 | 26 | */ |
| 26 | 27 | public function scan( $root, $exclude = array() ) { |
| 27 | 28 | if ( is_dir( $root ) ) { |
@@ -33,6 +34,9 @@ discard block |
||
| 33 | 34 | } |
| 34 | 35 | } |
| 35 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $root |
|
| 39 | + */ |
|
| 36 | 40 | public function scan_dir( $root, $exclude = array() ) { |
| 37 | 41 | |
| 38 | 42 | if ( is_null( $exclude ) || ! is_array( $exclude ) ) { |