Skip to content

Commit b15e24d

Browse files
committed
Fix more alignment issues
1 parent 198d3f9 commit b15e24d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

inc/admin/profile/namespace.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function render_token_row( WP_User $user, Access_Token $token ) {
6161
$client = $token->get_client();
6262

6363
$creation_time = $token->get_creation_time();
64-
$details = [
64+
$details = [
6565
sprintf(
6666
/* translators: %1$s: formatted date, %2$s: formatted time */
6767
esc_html__( 'Authorized %1$s at %2$s', 'oauth2' ),
@@ -77,15 +77,15 @@ function render_token_row( WP_User $user, Access_Token $token ) {
7777
* @param Access_Token $token Token being displayed.
7878
* @param WP_User $user User whose profile is being rendered.
7979
*/
80-
$details = apply_filters( 'oauth2.admin.profile.render_token_row.details', $details, $token, $user );
80+
$details = apply_filters( 'oauth2.admin.profile.render_token_row.details', $details, $token, $user );
8181

8282
// Build actions.
8383
$button_title = sprintf(
8484
/* translators: %s: app name */
8585
__( 'Revoke access for "%s"', 'oauth2' ),
8686
$client->get_name()
8787
);
88-
$actions = [
88+
$actions = [
8989
sprintf(
9090
'<button class="button" name="oauth2_revoke" title="%s" value="%s">%s</button>',
9191
$button_title,

inc/endpoints/class-token.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ public function register_routes() {
2121
'type' => 'string',
2222
'validate_callback' => [ $this, 'validate_grant_type' ],
2323
],
24-
'client_id' => [
24+
'client_id' => [
2525
'required' => true,
2626
'type' => 'string',
2727
'validate_callback' => 'rest_validate_request_arg',
2828
],
29-
'code' => [
29+
'code' => [
3030
'required' => true,
3131
'type' => 'string',
3232
'validate_callback' => 'rest_validate_request_arg',

inc/tokens/class-access-token.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function revoke() {
6262
* @return static|null Token if ID is found, null otherwise.
6363
*/
6464
public static function get_by_id( $id ) {
65-
$key = static::META_PREFIX . $id;
65+
$key = static::META_PREFIX . $id;
6666
$args = [
6767
'number' => 1,
6868
'count_total' => false,
@@ -76,13 +76,13 @@ public static function get_by_id( $id ) {
7676
],
7777
],
7878
];
79-
$query = new WP_User_Query( $args );
79+
$query = new WP_User_Query( $args );
8080
$results = $query->get_results();
8181
if ( empty( $results ) ) {
8282
return null;
8383
}
8484

85-
$user = $results[0];
85+
$user = $results[0];
8686
$value = get_user_meta( $user->ID, wp_slash( $key ), false );
8787
if ( empty( $value ) ) {
8888
return null;
@@ -97,7 +97,7 @@ public static function get_by_id( $id ) {
9797
* @return static[] List of tokens.
9898
*/
9999
public static function get_for_user( WP_User $user ) {
100-
$meta = get_user_meta( $user->ID );
100+
$meta = get_user_meta( $user->ID );
101101
$tokens = [];
102102
foreach ( $meta as $key => $values ) {
103103
if ( strpos( $key, static::META_PREFIX ) !== 0 ) {
@@ -127,7 +127,7 @@ public static function create( Client $client, WP_User $user ) {
127127
);
128128
}
129129

130-
$data = [
130+
$data = [
131131
'client' => $client->get_id(),
132132
'created' => time(),
133133
];

0 commit comments

Comments
 (0)