Making WordPress.org


Ignore:
Timestamp:
12/19/2017 04:22:37 PM (6 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/cli/i18n/class-readme-import.php

    r5485 r6287  
    4545
    4646        $readme_file = "{$svn_url}{$readme_file}";
    47         $readme = new Parser( $readme_file );
     47        $readme      = new Parser( $readme_file );
    4848
    4949        if ( ! class_exists( '\PO' ) ) {
     
    5151        }
    5252
    53         $pot = new PO;
     53        $pot = new PO();
    5454        $pot->set_header( 'MIME-Version', '1.0' );
    5555        $pot->set_header( 'Content-Type', 'text/plain; charset=UTF-8' );
     
    129129
    130130        $tmp_directory = Filesystem::temp_directory( $this->plugin . '-readme-' . $tag );
    131         $pot_file = "{$tmp_directory}/{$this->plugin}-readme.pot";
     131        $pot_file      = "{$tmp_directory}/{$this->plugin}-readme.pot";
    132132
    133133        $exported = $pot->export_to_file( $pot_file );
     
    148148     * Handles GlotPress "extracted comments" for translators to get context for each string translations.
    149149     *
    150      * @param array $array Empty or existing arrays of string and comments
     150     * @param array  $array Empty or existing arrays of string and comments
    151151     * @param string $key Unique key
    152152     * @param string $val Comment value
Note: See TracChangeset for help on using the changeset viewer.