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-import.php

    r5453 r6287  
    2323            "import_plugin:{$plugin_slug}",
    2424            array(
    25                 array_merge( array( 'plugin' => $plugin_slug ), $plugin_data )
     25                array_merge( array( 'plugin' => $plugin_slug ), $plugin_data ),
    2626            )
    2727        );
     
    3535        $changed_tags = isset( $plugin_data['tags_touched'] ) ? $plugin_data['tags_touched'] : array( 'trunk' );
    3636
    37         $revision = isset( $plugin_data['revisions'] ) ? max( (array)$plugin_data['revisions'] ) : false;
     37        $revision = isset( $plugin_data['revisions'] ) ? max( (array) $plugin_data['revisions'] ) : false;
    3838
    3939        try {
    40             $importer = new CLI\Import;
     40            $importer = new CLI\Import();
    4141            $importer->import_from_svn( $plugin_slug, $changed_tags, $revision );
    42         } catch( Exception $e ) {
     42        } catch ( Exception $e ) {
    4343            fwrite( STDERR, "[{$plugin_slug}] Plugin Import Failed: " . $e->getMessage() . "\n" );
    4444        }
Note: See TracChangeset for help on using the changeset viewer.