@@ -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' => '', |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | $lang = array_merge($lang, [ |
| 78 | 78 | 'PPDE_DONORS' => [ |
| 79 | - 1 => '%d donateur', // 1 |
|
| 79 | + 1 => '%d donateur', // 1 |
|
| 80 | 80 | 2 => '%d donateurs', // 2+ |
| 81 | 81 | ], |
| 82 | 82 | ]); |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | $lang = array_merge($lang, [ |
| 78 | 78 | 'PPDE_DONORS' => [ |
| 79 | - 1 => '%d donor', // 1 |
|
| 79 | + 1 => '%d donor', // 1 |
|
| 80 | 80 | 2 => '%d donors', // 2+ |
| 81 | 81 | ], |
| 82 | 82 | ]); |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | */ |
| 106 | 106 | private function add_predefined_lang_vars(): void |
| 107 | 107 | { |
| 108 | - array_walk($this->dp_vars, function (&$value) { |
|
| 108 | + array_walk($this->dp_vars, function(&$value) { |
|
| 109 | 109 | $value['name'] = $this->language->lang('PPDE_DP_' . trim($value['var'], '{}')); |
| 110 | 110 | }); |
| 111 | 111 | } |
@@ -212,7 +212,7 @@ |
||
| 212 | 212 | if (!empty($keywords)) |
| 213 | 213 | { |
| 214 | 214 | // Build pattern and keywords... |
| 215 | - $keywords = array_map(function ($keyword) { |
|
| 215 | + $keywords = array_map(function($keyword) { |
|
| 216 | 216 | return $this->db->sql_like_expression($this->db->get_any_char() . $keyword . $this->db->get_any_char()); |
| 217 | 217 | }, $keywords); |
| 218 | 218 | |
@@ -203,7 +203,7 @@ |
||
| 203 | 203 | public function dark1_unc_add_lang($event) |
| 204 | 204 | { |
| 205 | 205 | $add_ext_lang = $event['add_ext_lang']; |
| 206 | - $add_ext_lang['skouat/ppde'] = [ 'info_ucp_donation' ]; |
|
| 206 | + $add_ext_lang['skouat/ppde'] = ['info_ucp_donation']; |
|
| 207 | 207 | $event['add_ext_lang'] = $add_ext_lang; |
| 208 | 208 | } |
| 209 | 209 | } |