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

    r5488 r6287  
    1717     */
    1818    public static function queue( $plugin_slug, $plugin_data ) {
    19         $when_to_run = time() + 15 * MINUTE_IN_SECONDS;
     19        $when_to_run    = time() + 15 * MINUTE_IN_SECONDS;
    2020        $next_scheduled = Manager::get_scheduled_time( "import_plugin_i18n:{$plugin_slug}", 'last' );
    2121
    2222        // Update a scheduled event if it doesn't run in the next minute.
    2323        if ( $next_scheduled && $next_scheduled > time() + 1 * MINUTE_IN_SECONDS ) {
    24             $next_scheduled_events = Manager::get_scheduled_events( "import_plugin_i18n:{$plugin_slug}",$next_scheduled );
     24            $next_scheduled_events = Manager::get_scheduled_events( "import_plugin_i18n:{$plugin_slug}", $next_scheduled );
    2525            if ( $next_scheduled_events ) {
    2626                $next_scheduled_event = array_shift( $next_scheduled_events );
     
    5959            "import_plugin_i18n:{$plugin_slug}",
    6060            array(
    61                 array_merge( array( 'plugin' => $plugin_slug ), $plugin_data )
     61                array_merge( array( 'plugin' => $plugin_slug ), $plugin_data ),
    6262            )
    6363        );
     
    9999     *
    100100     * @param string $plugin_slug
    101      * @param array $i18n_processes
     101     * @param array  $i18n_processes
    102102     */
    103103    public static function process_i18n_for_plugin( $plugin_slug, $i18n_processes ) {
Note: See TracChangeset for help on using the changeset viewer.