@@ -170,6 +170,9 @@ |
||
| 170 | 170 | $listener->get_full_sync_queue()->reset(); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | + /** |
|
| 174 | + * @param integer $default |
|
| 175 | + */ |
|
| 173 | 176 | private function get_status_option( $option, $default = null ) { |
| 174 | 177 | $prefix = self::STATUS_OPTION_PREFIX; |
| 175 | 178 | |
@@ -119,6 +119,9 @@ discard block |
||
| 119 | 119 | return $default; |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | + /** |
|
| 123 | + * @param string $name |
|
| 124 | + */ |
|
| 122 | 125 | private static function update_grouped_option( $group, $name, $value ) { |
| 123 | 126 | $options = get_option( self::$grouped_options[ $group ] ); |
| 124 | 127 | if ( ! is_array( $options ) ) { |
@@ -217,6 +220,9 @@ discard block |
||
| 217 | 220 | return $result; |
| 218 | 221 | } |
| 219 | 222 | |
| 223 | + /** |
|
| 224 | + * @param string $name |
|
| 225 | + */ |
|
| 220 | 226 | private static function get_grouped_option( $group, $name, $default ) { |
| 221 | 227 | $options = get_option( self::$grouped_options[ $group ] ); |
| 222 | 228 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |