@@ -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 | ]); |
@@ -188,7 +188,7 @@ |
||
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | // Build pattern and keywords... |
| 191 | - $keywords = array_map(function ($keyword) { |
|
| 191 | + $keywords = array_map(function($keyword) { |
|
| 192 | 192 | return $this->db->sql_like_expression($this->db->get_any_char() . $keyword . $this->db->get_any_char()); |
| 193 | 193 | }, $keywords); |
| 194 | 194 | |
@@ -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 | } |