@@ -37,8 +37,7 @@ |
||
37 | 37 | language $language, |
38 | 38 | currency $ppde_actions_currency, |
39 | 39 | template $template |
40 | - ) |
|
41 | - { |
|
40 | + ) { |
|
42 | 41 | $this->config = $config; |
43 | 42 | $this->language = $language; |
44 | 43 | $this->ppde_actions_currency = $ppde_actions_currency; |
@@ -64,8 +64,7 @@ |
||
64 | 64 | filesystem_interface $filesystem, |
65 | 65 | path_helper $path_helper, |
66 | 66 | main_controller $ppde_controller_main |
67 | - ) |
|
68 | - { |
|
67 | + ) { |
|
69 | 68 | $this->config = $config; |
70 | 69 | $this->filesystem = $filesystem; |
71 | 70 | $this->path_helper = $path_helper; |
@@ -63,8 +63,7 @@ |
||
63 | 63 | request $request, |
64 | 64 | template $template, |
65 | 65 | user $user |
66 | - ) |
|
67 | - { |
|
66 | + ) { |
|
68 | 67 | $this->config = $config; |
69 | 68 | $this->container = $container; |
70 | 69 | $this->language = $language; |
@@ -56,8 +56,7 @@ |
||
56 | 56 | request $request, |
57 | 57 | template $template, |
58 | 58 | user $user |
59 | - ) |
|
60 | - { |
|
59 | + ) { |
|
61 | 60 | $this->config = $config; |
62 | 61 | $this->language = $language; |
63 | 62 | $this->log = $log; |
@@ -84,8 +84,7 @@ |
||
84 | 84 | $adm_relative_path, |
85 | 85 | $phpbb_root_path, |
86 | 86 | $php_ext |
87 | - ) |
|
88 | - { |
|
87 | + ) { |
|
89 | 88 | $this->auth = $auth; |
90 | 89 | $this->config = $config; |
91 | 90 | $this->language = $language; |
@@ -56,8 +56,7 @@ |
||
56 | 56 | request $request, |
57 | 57 | template $template, |
58 | 58 | user $user |
59 | - ) |
|
60 | - { |
|
59 | + ) { |
|
61 | 60 | $this->config = $config; |
62 | 61 | $this->language = $language; |
63 | 62 | $this->log = $log; |
@@ -40,16 +40,16 @@ |
||
40 | 40 | * |
41 | 41 | */ |
42 | 42 | private static $paypal_vars_table = [ |
43 | - ['name' => 'confirmed', 'default' => false], // Used to check if the payment is confirmed |
|
44 | - ['name' => 'exchange_rate', 'default' => ''], // Exchange rate used if a currency conversion occurred |
|
45 | - ['name' => 'mc_currency', 'default' => ''], // Currency |
|
46 | - ['name' => 'mc_gross', 'default' => 0.00], // Amt received (before fees) |
|
47 | - ['name' => 'mc_fee', 'default' => 0.00], // Amt of fees |
|
48 | - ['name' => 'payment_status', 'default' => ''], // Payment status. e.g.: 'Completed' |
|
43 | + ['name' => 'confirmed', 'default' => false], // Used to check if the payment is confirmed |
|
44 | + ['name' => 'exchange_rate', 'default' => ''], // Exchange rate used if a currency conversion occurred |
|
45 | + ['name' => 'mc_currency', 'default' => ''], // Currency |
|
46 | + ['name' => 'mc_gross', 'default' => 0.00], // Amt received (before fees) |
|
47 | + ['name' => 'mc_fee', 'default' => 0.00], // Amt of fees |
|
48 | + ['name' => 'payment_status', 'default' => ''], // Payment status. e.g.: 'Completed' |
|
49 | 49 | ['name' => 'settle_amount', 'default' => 0.00], // Amt received after currency conversion (before fees) |
50 | 50 | ['name' => 'settle_currency', 'default' => ''], // Currency of 'settle_amount' |
51 | - ['name' => 'test_ipn', 'default' => false], // Used when transaction come from Sandbox platform |
|
52 | - ['name' => 'txn_type', 'default' => ''], // Transaction type - Should be: 'web_accept' |
|
51 | + ['name' => 'test_ipn', 'default' => false], // Used when transaction come from Sandbox platform |
|
52 | + ['name' => 'txn_type', 'default' => ''], // Transaction type - Should be: 'web_accept' |
|
53 | 53 | [// Primary merchant e-mail address |
54 | 54 | 'name' => 'business', |
55 | 55 | 'default' => '', |
@@ -29,8 +29,7 @@ |
||
29 | 29 | \phpbb\cache\driver\driver_interface $cache, |
30 | 30 | \phpbb\db\driver\driver_interface $db, |
31 | 31 | $ppde_currency_table |
32 | - ) |
|
33 | - { |
|
32 | + ) { |
|
34 | 33 | $this->cache = $cache; |
35 | 34 | $this->db = $db; |
36 | 35 | $this->ppde_currency_table = $ppde_currency_table; |
@@ -41,8 +41,7 @@ |
||
41 | 41 | config $config, |
42 | 42 | language $language, |
43 | 43 | user $user |
44 | - ) |
|
45 | - { |
|
44 | + ) { |
|
46 | 45 | $this->actions_core = $actions_core; |
47 | 46 | $this->actions_currency = $actions_currency; |
48 | 47 | $this->config = $config; |
@@ -73,14 +73,14 @@ |
||
73 | 73 | private function populate_template_vars(): array |
74 | 74 | { |
75 | 75 | return [ |
76 | - ['var' => '{USER_ID}', 'value' => $this->user->data['user_id']], |
|
77 | - ['var' => '{USERNAME}', 'value' => $this->user->data['username']], |
|
78 | - ['var' => '{SITE_NAME}', 'value' => $this->config['sitename']], |
|
79 | - ['var' => '{SITE_DESC}', 'value' => $this->config['site_desc']], |
|
80 | - ['var' => '{BOARD_CONTACT}', 'value' => $this->config['board_contact']], |
|
81 | - ['var' => '{BOARD_EMAIL}', 'value' => $this->config['board_email']], |
|
82 | - ['var' => '{BOARD_SIG}', 'value' => $this->config['board_email_sig']], |
|
83 | - ['var' => '{DONATION_GOAL}', 'value' => $this->actions_currency->format_currency((float) $this->config['ppde_goal'])], |
|
76 | + ['var' => '{USER_ID}', 'value' => $this->user->data['user_id']], |
|
77 | + ['var' => '{USERNAME}', 'value' => $this->user->data['username']], |
|
78 | + ['var' => '{SITE_NAME}', 'value' => $this->config['sitename']], |
|
79 | + ['var' => '{SITE_DESC}', 'value' => $this->config['site_desc']], |
|
80 | + ['var' => '{BOARD_CONTACT}', 'value' => $this->config['board_contact']], |
|
81 | + ['var' => '{BOARD_EMAIL}', 'value' => $this->config['board_email']], |
|
82 | + ['var' => '{BOARD_SIG}', 'value' => $this->config['board_email_sig']], |
|
83 | + ['var' => '{DONATION_GOAL}', 'value' => $this->actions_currency->format_currency((float) $this->config['ppde_goal'])], |
|
84 | 84 | ['var' => '{DONATION_RAISED}', 'value' => $this->actions_currency->format_currency((float) $this->config['ppde_raised'])], |
85 | 85 | ]; |
86 | 86 | } |