From e8488215bc2fed1b33e331e24ed151a85500a27b Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 11 Apr 2014 09:01:32 +0200 Subject: [PATCH] [CLEAN] Array formatting --- public/include/pages/api/getpoolinfo.inc.php | 42 ++++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/public/include/pages/api/getpoolinfo.inc.php b/public/include/pages/api/getpoolinfo.inc.php index e9ab28b9..7d08ceb5 100644 --- a/public/include/pages/api/getpoolinfo.inc.php +++ b/public/include/pages/api/getpoolinfo.inc.php @@ -9,27 +9,27 @@ $user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUES // Output JSON format $data = array( - // coin info - 'currency' => $config['currency'], - 'coinname' => $config['gettingstarted']['coinname'], - // coin algorithm info - 'cointarget' => $config['cointarget'], - 'coindiffchangetarget' => $config['coindiffchangetarget'], - 'algorithm' => $config['algorithm'], - // stratum - 'stratumport' => $config['gettingstarted']['stratumport'], - // payments - 'payout_system' => $config['payout_system'], - 'confirmations' => $config['confirmations'], - 'min_ap_threshold' => $config['ap_threshold']['min'], - 'max_ap_threshold' => $config['ap_threshold']['max'], - 'reward_type' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['type'] : $config['reward_type'], - 'reward' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['default'] : $config['reward'], - // fees - 'txfee' => $config['txfee_manual'], // make it backwards compatible - 'txfee_manual' => $config['txfee_manual'], - 'txfee_auto' => $config['txfee_auto'], - 'fees' => $config['fees'] + // coin info + 'currency' => $config['currency'], + 'coinname' => $config['gettingstarted']['coinname'], + // coin algorithm info + 'cointarget' => $config['cointarget'], + 'coindiffchangetarget' => $config['coindiffchangetarget'], + 'algorithm' => $config['algorithm'], + // stratum + 'stratumport' => $config['gettingstarted']['stratumport'], + // payments + 'payout_system' => $config['payout_system'], + 'confirmations' => $config['confirmations'], + 'min_ap_threshold' => $config['ap_threshold']['min'], + 'max_ap_threshold' => $config['ap_threshold']['max'], + 'reward_type' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['type'] : $config['reward_type'], + 'reward' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['default'] : $config['reward'], + // fees + 'txfee' => $config['txfee_manual'], // make it backwards compatible + 'txfee_manual' => $config['txfee_manual'], + 'txfee_auto' => $config['txfee_auto'], + 'fees' => $config['fees'] ); echo $api->get_json($data);