Making WordPress.org


Ignore:
Timestamp:
02/26/2018 06:38:19 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Post Types: Apply coding standards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/inc/rest-api.php

    r6268 r6764  
    7272    if ( get_option( 'show_avatars' ) ) {
    7373        $avatar_properties = array();
    74         $avatar_sizes = rest_get_avatar_sizes();
     74        $avatar_sizes      = rest_get_avatar_sizes();
    7575
    7676        foreach ( $avatar_sizes as $size ) {
     
    127127 * @return void
    128128 */
    129 function register_fav_sessions_email(){
     129function register_fav_sessions_email() {
    130130    register_rest_route(
    131131        'wc-post-types/v1',     // REST namespace + API version
     
    136136            'args'     => array(
    137137                'email-address' => array(
    138                     'required' => true,
     138                    'required'          => true,
    139139                    'validate_callback' => function( $value, $request, $param ) {
    140140                        return is_email( $value );
     
    146146
    147147                'session-list' => array(
    148                     'required' => true,
     148                    'required'          => true,
    149149                    'validate_callback' => function( $value, $request, $param ) {
    150150                        $session_ids = explode( ',', $value );
     
    162162                    },
    163163                ),
    164             )
     164            ),
    165165        )
    166166    );
Note: See TracChangeset for help on using the changeset viewer.