@@ -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 | } |
@@ -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; |
@@ -100,8 +100,7 @@ |
||
| 100 | 100 | string $php_ext, |
| 101 | 101 | string $table_prefix, |
| 102 | 102 | string $table_ppde_transactions |
| 103 | - ) |
|
| 104 | - { |
|
| 103 | + ) { |
|
| 105 | 104 | $this->auth = $auth; |
| 106 | 105 | $this->config = $config; |
| 107 | 106 | $this->container = $container; |
@@ -70,8 +70,7 @@ |
||
| 70 | 70 | user $user, |
| 71 | 71 | string $phpbb_root_path, |
| 72 | 72 | string $php_ext |
| 73 | - ) |
|
| 74 | - { |
|
| 73 | + ) { |
|
| 75 | 74 | $this->container = $container; |
| 76 | 75 | $this->language = $language; |
| 77 | 76 | $this->log = $log; |
@@ -52,8 +52,7 @@ |
||
| 52 | 52 | main_display_stats $ppde_controller_display_stats, |
| 53 | 53 | template $template, |
| 54 | 54 | string $php_ext |
| 55 | - ) |
|
| 56 | - { |
|
| 55 | + ) { |
|
| 57 | 56 | $this->config = $config; |
| 58 | 57 | $this->controller_helper = $controller_helper; |
| 59 | 58 | $this->language = $language; |
@@ -34,8 +34,7 @@ |
||
| 34 | 34 | \phpbb\config\config $config, |
| 35 | 35 | $phpbb_root_path, |
| 36 | 36 | $php_ext |
| 37 | - ) |
|
| 38 | - { |
|
| 37 | + ) { |
|
| 39 | 38 | $this->auth = $auth; |
| 40 | 39 | $this->config = $config; |
| 41 | 40 | $this->phpbb_root_path = $phpbb_root_path; |
@@ -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 | ]); |