Making WordPress.org


Ignore:
Timestamp:
09/18/2017 07:53:25 PM (8 years ago)
Author:
coffee2code
Message:

Browse Happy API: Whitespace changes.

  • Changes leading spaces to tabs
  • Adds braces to single-line conditionals
  • Aligns associative array elements
  • Removes trailing spaces
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/index.php

    r82 r5934  
    1212}
    1313
    14 if ( empty( $_REQUEST['useragent'] ) )
     14if ( empty( $_REQUEST['useragent'] ) ) {
    1515    return;
     16}
    1617
    1718$user_agent = $_REQUEST['useragent'];
     
    2425}
    2526
    26 if ( $jsonp )
     27if ( $jsonp ) {
    2728    echo $jsonp.'('.json_encode($data).')';
    28 elseif ( defined( 'JSON_RESPONSE' ) )
     29} elseif ( defined( 'JSON_RESPONSE' ) ) {
    2930    echo json_encode( $data );
    30 else
     31} else {
    3132    echo serialize( $data );
     33}
    3234
    3335function bh_record_data( $ua, $data ) {
Note: See TracChangeset for help on using the changeset viewer.