Skip to content

Commit e848821

Browse files
committed
[CLEAN] Array formatting
1 parent 190bf86 commit e848821

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

public/include/pages/api/getpoolinfo.inc.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99

1010
// Output JSON format
1111
$data = array(
12-
// coin info
13-
'currency' => $config['currency'],
14-
'coinname' => $config['gettingstarted']['coinname'],
15-
// coin algorithm info
16-
'cointarget' => $config['cointarget'],
17-
'coindiffchangetarget' => $config['coindiffchangetarget'],
18-
'algorithm' => $config['algorithm'],
19-
// stratum
20-
'stratumport' => $config['gettingstarted']['stratumport'],
21-
// payments
22-
'payout_system' => $config['payout_system'],
23-
'confirmations' => $config['confirmations'],
24-
'min_ap_threshold' => $config['ap_threshold']['min'],
25-
'max_ap_threshold' => $config['ap_threshold']['max'],
26-
'reward_type' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['type'] : $config['reward_type'],
27-
'reward' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['default'] : $config['reward'],
28-
// fees
29-
'txfee' => $config['txfee_manual'], // make it backwards compatible
30-
'txfee_manual' => $config['txfee_manual'],
31-
'txfee_auto' => $config['txfee_auto'],
32-
'fees' => $config['fees']
12+
// coin info
13+
'currency' => $config['currency'],
14+
'coinname' => $config['gettingstarted']['coinname'],
15+
// coin algorithm info
16+
'cointarget' => $config['cointarget'],
17+
'coindiffchangetarget' => $config['coindiffchangetarget'],
18+
'algorithm' => $config['algorithm'],
19+
// stratum
20+
'stratumport' => $config['gettingstarted']['stratumport'],
21+
// payments
22+
'payout_system' => $config['payout_system'],
23+
'confirmations' => $config['confirmations'],
24+
'min_ap_threshold' => $config['ap_threshold']['min'],
25+
'max_ap_threshold' => $config['ap_threshold']['max'],
26+
'reward_type' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['type'] : $config['reward_type'],
27+
'reward' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['default'] : $config['reward'],
28+
// fees
29+
'txfee' => $config['txfee_manual'], // make it backwards compatible
30+
'txfee_manual' => $config['txfee_manual'],
31+
'txfee_auto' => $config['txfee_auto'],
32+
'fees' => $config['fees']
3333
);
3434

3535
echo $api->get_json($data);

0 commit comments

Comments
 (0)