Plugin Directory

Changeset 3057445


Ignore:
Timestamp:
03/23/2024 05:03:51 PM (2 years ago)
Author:
stephend
Message:

Run phpcbf to standardise formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smart-app-banner/trunk/wsl-smart-app-banner.php

    r3057441 r3057445  
    435435    wp_nonce_field( plugin_basename( __FILE__ ), 'wsl-sab-nonce' );
    436436
    437     $custom_fields    = get_post_custom();
    438     if ( is_array($custom_fields) &&
     437    $custom_fields = get_post_custom();
     438    if ( is_array( $custom_fields ) &&
    439439    array_key_exists( '_wsl-app-id', $custom_fields ) &&
    440440    array_key_exists( '_wsl-app-id-ipad', $custom_fields ) &&
    441441    array_key_exists( '_wsl-affiliate-data', $custom_fields ) &&
    442442    array_key_exists( '_wsl-app-argument', $custom_fields )
    443      ) {
     443    ) {
    444444        $app_id_list      = $custom_fields['_wsl-app-id'];
    445445        $app_id_ipad_list = $custom_fields['_wsl-app-id-ipad'];
    446446        $affiliate_data   = $custom_fields['_wsl-affiliate-data'];
    447447        $app_argument     = $custom_fields['_wsl-app-argument'];
    448     }
    449     else {
    450         $app_id_list = array("");
    451         $app_id_ipad_list = array("");
    452         $affiliate_data = array("");
    453         $app_argument = array("");
     448    } else {
     449        $app_id_list      = array( '' );
     450        $app_id_ipad_list = array( '' );
     451        $affiliate_data   = array( '' );
     452        $app_argument     = array( '' );
    454453    }
    455454
Note: See TracChangeset for help on using the changeset viewer.