| @@ -180,11 +180,12 @@ | ||
| 180 | 180 | ->remove( 'reviews' ) |
| 181 | 181 | ->remove( 'cloud_activity' ) |
| 182 | 182 | ->remove( 'api_key' ) |
| 183 | 183 | ->remove( 'global_login' ) |
| 184 | + ->remove( 'total_download_counts' ) | |
| 184 | 185 | ->remove( 'templates_in_clouds' ); |
| 185 | 186 | |
| 186 | - if ( $this->utils( 'options' )->whoami() === 'global' ) { | |
| 187 | + if ( $this->utils( 'options' )->who_am_i() === 'global' ) { | |
| 187 | 188 | $this->utils( 'options' )->remove_global_login(); |
| 188 | 189 | } |
| 189 | 190 | |
| 190 | 191 | $global_user_id = $this->utils( 'options' )->is_global(); |
| @@ -200,9 +201,9 @@ | ||
| 200 | 201 | |
| 201 | 202 | return $global_user; |
| 202 | 203 | } |
| 203 | 204 | |
| 204 | - public static function is_signed() { | |
| 205 | + public static function is_signed(): array { | |
| 205 | 206 | $_response = [ |
| 206 | 207 | 'status' => 'success' |
| 207 | 208 | ]; |
| 208 | 209 | |
| @@ -220,9 +221,9 @@ | ||
| 220 | 221 | |
| 221 | 222 | return $_response; |
| 222 | 223 | } |
| 223 | 224 | |
| 224 | - public function user_meta( $meta = [] ) { | |
| 225 | + public function user_meta( $meta = [] ): array { | |
| 225 | 226 | $_meta = [ |
| 226 | 227 | 'link_account' => self::utils( 'options' )->link_account(), |
| 227 | 228 | 'unlink_account' => self::utils( 'options' )->unlink_account(), |
| 228 | 229 | 'is_globally_signed' => Login::is_globally_signed(), |
| @@ -235,12 +236,12 @@ | ||
| 235 | 236 | |
| 236 | 237 | return array_merge( $_meta, $meta ); |
| 237 | 238 | } |
| 238 | 239 | |
| 239 | - public static function is_globally_signed() { | |
| 240 | + public static function is_globally_signed(): bool { | |
| 240 | 241 | return rest_sanitize_boolean( ( new static )->utils( 'options' )->is_globally_signed() ); |
| 241 | 242 | } |
| 242 | 243 | |
| 243 | - public static function signed_as_global() { | |
| 244 | + public static function signed_as_global(): bool { | |
| 244 | 245 | return rest_sanitize_boolean( ( new static )->utils( 'options' )->signed_as_global() ); |
| 245 | 246 | } |
| 246 | 247 | } |