| @@ -98,9 +98,9 @@ | ||
| 98 | 98 | * @param int|int[]|null $user_ids The user ID(s). |
| 99 | 99 | * @param string $type The type of the activity. |
| 100 | 100 | */ |
| 101 | 101 | public static function handle_blocked_request( $activity, $user_ids, $type ) { |
| 102 | - if ( ! \in_array( \strtolower( $type ), array( 'quoterequest', 'quote_request' ), true ) ) { | |
| 102 | + if ( ! in_array( strtolower( $type ), array( 'quoterequest', 'quote_request' ), true ) ) { | |
| 103 | 103 | return; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | // Extract the user ID (quote requests are always for a single user). |
| @@ -217,9 +217,9 @@ | ||
| 217 | 217 | |
| 218 | 218 | $activity_object['instrument'] = object_to_uri( $activity_object['instrument'] ); |
| 219 | 219 | |
| 220 | 220 | $post_meta = \get_post_meta( $post_id, '_activitypub_quoted_by', false ); |
| 221 | - if ( \in_array( $activity_object['instrument'], $post_meta, true ) ) { | |
| 221 | + if ( in_array( $activity_object['instrument'], $post_meta, true ) ) { | |
| 222 | 222 | global $wpdb; |
| 223 | 223 | |
| 224 | 224 | // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching |
| 225 | 225 | $meta_id = $wpdb->get_var( |
| @@ -234,9 +234,9 @@ | ||
| 234 | 234 | $meta_id = \add_post_meta( $post_id, '_activitypub_quoted_by', $activity_object['instrument'] ); |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | // Only send minimal data. |
| 238 | - $activity_object = \array_intersect_key( | |
| 238 | + $activity_object = array_intersect_key( | |
| 239 | 239 | $activity_object, |
| 240 | 240 | array( |
| 241 | 241 | 'id' => 1, |
| 242 | 242 | 'type' => 1, |
| @@ -286,9 +286,9 @@ | ||
| 286 | 286 | |
| 287 | 287 | $activity_object['instrument'] = object_to_uri( $activity_object['instrument'] ); |
| 288 | 288 | |
| 289 | 289 | // Only send minimal data. |
| 290 | - $activity_object = \array_intersect_key( | |
| 290 | + $activity_object = array_intersect_key( | |
| 291 | 291 | $activity_object, |
| 292 | 292 | array( |
| 293 | 293 | 'id' => 1, |
| 294 | 294 | 'type' => 1, |