Making WordPress.org


Ignore:
Timestamp:
12/19/2017 04:22:37 PM (7 years ago)
Author:
obenland
Message:

PLugins: Clean up formatting with phpcbf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-query-plugins.php

    r5484 r6287  
    11<?php
    22namespace WordPressdotorg\Plugin_Directory\API\Routes;
     3
    34use WordPressdotorg\Plugin_Directory\API\Base;
    45use WP_REST_Server;
     
    2122        'author_name',
    2223        'installed_plugins',
    23         'plugin_tags'
     24        'plugin_tags',
    2425    );
    2526
     
    4142
    4243        $response = array(
    43             'info' => array(
     44            'info'    => array(
    4445                'page'    => 0,
    4546                'pages'   => 0,
     
    6970
    7071        $response['info']['page']    = (int) $wp_query->get( 'paged' ) ?: 1;
    71         $response['info']['pages']   = (int) $wp_query->max_num_pages  ?: 0;
    72         $response['info']['results'] = (int) $wp_query->found_posts    ?: 0;
     72        $response['info']['pages']   = (int) $wp_query->max_num_pages ?: 0;
     73        $response['info']['results'] = (int) $wp_query->found_posts ?: 0;
    7374
    7475        foreach ( $wp_query->posts as $post ) {
Note: See TracChangeset for help on using the changeset viewer.