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/class-plugin-i18n.php

    r5982 r6287  
    6464     *
    6565     * @access private
    66      *
    6766     */
    6867    private function __construct() {
     
    237236        $translation_set_id = $wpdb->get_var( $wpdb->prepare(
    238237            'SELECT id FROM ' . GLOTPRESS_TABLE_PREFIX . 'translation_sets WHERE project_id = %d AND locale = %s',
    239             $branch_id, $locale ) );
     238            $branch_id, $locale
     239        ) );
    240240
    241241        if ( empty( $translation_set_id ) ) {
     
    456456        $translation_sets = $this->cache_get( $post->post_name, $branch, $cache_suffix );
    457457        if ( false === $translation_sets ) {
    458             $api_url = esc_url_raw( 'https://translate.wordpress.org/api/projects/wp-plugins/' . $post->post_name . '/' . $branch, [ 'https' ] );
     458            $api_url  = esc_url_raw( 'https://translate.wordpress.org/api/projects/wp-plugins/' . $post->post_name . '/' . $branch, [ 'https' ] );
    459459            $response = wp_remote_get( $api_url );
    460460
     
    462462                $translation_sets = [];
    463463            } else {
    464                 $result = json_decode( wp_remote_retrieve_body( $response ) );
     464                $result           = json_decode( wp_remote_retrieve_body( $response ) );
    465465                $translation_sets = isset( $result->translation_sets ) ? $result->translation_sets : [];
    466466            }
Note: See TracChangeset for help on using the changeset viewer.