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