@@ -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; |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | */ |
| 81 | 81 | $lang = array_merge($lang, [ |
| 82 | 82 | 'PPDE_DONORS' => [ |
| 83 | - 1 => '%d donor', // 1 |
|
| 83 | + 1 => '%d donor', // 1 |
|
| 84 | 84 | 2 => '%d donors', // 2+ |
| 85 | 85 | ], |
| 86 | 86 | ]); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | */ |
| 81 | 81 | $lang = array_merge($lang, [ |
| 82 | 82 | 'PPDE_DONORS' => [ |
| 83 | - 1 => '%d donateur', // 1 |
|
| 83 | + 1 => '%d donateur', // 1 |
|
| 84 | 84 | 2 => '%d donateurs', // 2+ |
| 85 | 85 | ], |
| 86 | 86 | ]); |
@@ -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' => '', |
@@ -35,8 +35,7 @@ |
||
| 35 | 35 | locale_icu $locale, |
| 36 | 36 | \skouat\ppde\operators\currency $operator, |
| 37 | 37 | template $template |
| 38 | - ) |
|
| 39 | - { |
|
| 38 | + ) { |
|
| 40 | 39 | $this->entity = $entity; |
| 41 | 40 | $this->locale = $locale; |
| 42 | 41 | $this->operator = $operator; |
@@ -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; |
@@ -48,8 +48,7 @@ |
||
| 48 | 48 | $lang_key_suffix = '', |
| 49 | 49 | $table_name = '', |
| 50 | 50 | $table_schema = [] |
| 51 | - ) |
|
| 52 | - { |
|
| 51 | + ) { |
|
| 53 | 52 | $this->db = $db; |
| 54 | 53 | $this->language = $language; |
| 55 | 54 | $this->lang_key_prefix = $lang_key_prefix; |
@@ -58,8 +58,7 @@ |
||
| 58 | 58 | language $language, |
| 59 | 59 | user $user, |
| 60 | 60 | $table_name |
| 61 | - ) |
|
| 62 | - { |
|
| 61 | + ) { |
|
| 63 | 62 | $this->config = $config; |
| 64 | 63 | $this->donation_pages_table = $table_name; |
| 65 | 64 | $this->user = $user; |