@@ -253,6 +253,8 @@ |
||
253 | 253 | * And we'll magically convert it to a list. This has the added benefit |
254 | 254 | * of including itemprops for the recipe schema. |
255 | 255 | * |
256 | + * @param string $content |
|
257 | + * @param string $type |
|
256 | 258 | * @return string content formatted as a list item |
257 | 259 | */ |
258 | 260 | static function output_list_content( $content, $type ) { |
@@ -102,9 +102,9 @@ |
||
102 | 102 | * Parameters are the same as preg_replace, with an added optional search param for improved performance |
103 | 103 | * |
104 | 104 | * @param String $pattern |
105 | - * @param String $replacement |
|
106 | 105 | * @param String $content |
107 | 106 | * @param String $search |
107 | + * @param string $callback |
|
108 | 108 | * @return String $content |
109 | 109 | */ |
110 | 110 | function jetpack_preg_replace_callback_outside_tags( $pattern, $callback, $content, $search = null ) { |
@@ -7,6 +7,9 @@ discard block |
||
7 | 7 | public $id; |
8 | 8 | public $items_with_ids; |
9 | 9 | |
10 | + /** |
|
11 | + * @param string $id |
|
12 | + */ |
|
10 | 13 | public function __construct( $id, $items_with_ids ) { |
11 | 14 | $this->id = $id; |
12 | 15 | $this->items_with_ids = $items_with_ids; |
@@ -35,6 +38,9 @@ discard block |
||
35 | 38 | public $id; |
36 | 39 | private $row_iterator; |
37 | 40 | |
41 | + /** |
|
42 | + * @param string $id |
|
43 | + */ |
|
38 | 44 | function __construct( $id ) { |
39 | 45 | $this->id = str_replace( '-', '_', $id ); // necessary to ensure we don't have ID collisions in the SQL |
40 | 46 | $this->row_iterator = 0; |
@@ -130,6 +136,9 @@ discard block |
||
130 | 136 | } |
131 | 137 | } |
132 | 138 | |
139 | + /** |
|
140 | + * @param string $type |
|
141 | + */ |
|
133 | 142 | function add_skipped_id( $object_id, $type ) { |
134 | 143 | $option_name = 'jetpack_skipped_sync_' . $type . '_ids'; |
135 | 144 | $blacklist = get_option( $option_name, array() ); |
@@ -139,6 +148,9 @@ discard block |
||
139 | 148 | } |
140 | 149 | } |
141 | 150 | |
151 | + /** |
|
152 | + * @param string $type |
|
153 | + */ |
|
142 | 154 | function remove_skipped_id( $object_id, $type ) { |
143 | 155 | $option_name = 'jetpack_skipped_sync_' . $type . '_ids'; |
144 | 156 | $blacklist = get_option( $option_name, array() ); |
@@ -415,6 +427,9 @@ discard block |
||
415 | 427 | return get_transient( $this->get_checkout_transient_name() ); |
416 | 428 | } |
417 | 429 | |
430 | + /** |
|
431 | + * @param string $checkout_id |
|
432 | + */ |
|
418 | 433 | private function set_checkout_id( $checkout_id ) { |
419 | 434 | return set_transient( $this->get_checkout_transient_name(), $checkout_id, 5 * 60 ); // 5 minute timeout |
420 | 435 | } |