@@ -6,16 +6,16 @@ discard block |
||
| 6 | 6 | <?php if (!is_admin()) : ?> |
| 7 | 7 | <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text"> |
| 8 | 8 | <?php echo apply_filters( |
| 9 | - 'FHEE__registration_page_attendee_information__attendee_information_pg', |
|
| 10 | - sprintf( |
|
| 11 | - esc_html__( |
|
| 12 | - 'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.', |
|
| 13 | - 'event_espresso' |
|
| 14 | - ), |
|
| 15 | - '<br />', |
|
| 16 | - '<span class="asterisk">*</span>' |
|
| 17 | - ) |
|
| 18 | - ); ?> |
|
| 9 | + 'FHEE__registration_page_attendee_information__attendee_information_pg', |
|
| 10 | + sprintf( |
|
| 11 | + esc_html__( |
|
| 12 | + 'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.', |
|
| 13 | + 'event_espresso' |
|
| 14 | + ), |
|
| 15 | + '<br />', |
|
| 16 | + '<span class="asterisk">*</span>' |
|
| 17 | + ) |
|
| 18 | + ); ?> |
|
| 19 | 19 | </p> |
| 20 | 20 | <?php endif; ?> |
| 21 | 21 | |
@@ -25,8 +25,8 @@ discard block |
||
| 25 | 25 | $prev_ticket = 0; |
| 26 | 26 | |
| 27 | 27 | if (count($registrations) > 0) { |
| 28 | - $ticketID = key($template_args['ticket_count']); |
|
| 29 | - ?> |
|
| 28 | + $ticketID = key($template_args['ticket_count']); |
|
| 29 | + ?> |
|
| 30 | 30 | |
| 31 | 31 | <div id="spco-attendee-panel-dv-<?php echo $ticketID; ?>" |
| 32 | 32 | class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo $ticketID; ?>"> |
@@ -41,54 +41,54 @@ discard block |
||
| 41 | 41 | <th scope="col" width="" class="jst-left"><?php esc_html_e('Name and Description', 'event_espresso'); ?></th> |
| 42 | 42 | <th scope="col" width="7.5%" class="jst-rght"> |
| 43 | 43 | <?php esc_html_e( |
| 44 | - 'Qty', |
|
| 45 | - 'event_espresso' |
|
| 46 | - ); ?></th> |
|
| 44 | + 'Qty', |
|
| 45 | + 'event_espresso' |
|
| 46 | + ); ?></th> |
|
| 47 | 47 | <th scope="col" width="17.5%" class="jst-rght"> |
| 48 | 48 | <?php esc_html_e( |
| 49 | - 'Price', |
|
| 50 | - 'event_espresso' |
|
| 51 | - ); ?></th> |
|
| 49 | + 'Price', |
|
| 50 | + 'event_espresso' |
|
| 51 | + ); ?></th> |
|
| 52 | 52 | <th scope="col" width="17.5%" class="jst-rght"> |
| 53 | 53 | <?php esc_html_e( |
| 54 | - 'Total', |
|
| 55 | - 'event_espresso' |
|
| 56 | - ); ?></th> |
|
| 54 | + 'Total', |
|
| 55 | + 'event_espresso' |
|
| 56 | + ); ?></th> |
|
| 57 | 57 | </tr> |
| 58 | 58 | </thead> |
| 59 | 59 | <tbody> |
| 60 | 60 | <?php |
| 61 | - // Store previous values to avoid duplicated rows. |
|
| 62 | - $prev_ticket = 0; |
|
| 63 | - // Display all tickets inside. |
|
| 64 | - foreach ($registrations as $registration) { |
|
| 65 | - if ($registration instanceof EE_Registration) { |
|
| 66 | - if ($registration->ticket()->ID() !== $prev_ticket) { |
|
| 67 | - echo $ticket_line_item[ $registration->ticket()->ID() ]; |
|
| 68 | - } |
|
| 61 | + // Store previous values to avoid duplicated rows. |
|
| 62 | + $prev_ticket = 0; |
|
| 63 | + // Display all tickets inside. |
|
| 64 | + foreach ($registrations as $registration) { |
|
| 65 | + if ($registration instanceof EE_Registration) { |
|
| 66 | + if ($registration->ticket()->ID() !== $prev_ticket) { |
|
| 67 | + echo $ticket_line_item[ $registration->ticket()->ID() ]; |
|
| 68 | + } |
|
| 69 | 69 | |
| 70 | - $prev_ticket = $registration->ticket()->ID(); |
|
| 71 | - } |
|
| 72 | - } |
|
| 73 | - ?> |
|
| 70 | + $prev_ticket = $registration->ticket()->ID(); |
|
| 71 | + } |
|
| 72 | + } |
|
| 73 | + ?> |
|
| 74 | 74 | </tbody> |
| 75 | 75 | </table> |
| 76 | 76 | </div> |
| 77 | 77 | |
| 78 | 78 | <?php |
| 79 | - // Display the forms below the table. |
|
| 80 | - foreach ($registrations as $registration) { |
|
| 81 | - if ($registration instanceof EE_Registration) { |
|
| 82 | - // Attendee Questions. |
|
| 83 | - $reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link()); |
|
| 84 | - echo ${$reg_form}; |
|
| 85 | - ?> |
|
| 79 | + // Display the forms below the table. |
|
| 80 | + foreach ($registrations as $registration) { |
|
| 81 | + if ($registration instanceof EE_Registration) { |
|
| 82 | + // Attendee Questions. |
|
| 83 | + $reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link()); |
|
| 84 | + echo ${$reg_form}; |
|
| 85 | + ?> |
|
| 86 | 86 | </div> |
| 87 | 87 | <?php |
| 88 | - } // if ( $registration instanceof EE_Registration ) |
|
| 89 | - } // end foreach ( $registrations as $registration ) |
|
| 88 | + } // if ( $registration instanceof EE_Registration ) |
|
| 89 | + } // end foreach ( $registrations as $registration ) |
|
| 90 | 90 | |
| 91 | - echo $default_hidden_inputs; |
|
| 91 | + echo $default_hidden_inputs; |
|
| 92 | 92 | } // end if ( count( $registrations ) > 0 ) |
| 93 | 93 | |
| 94 | 94 | ?> |
@@ -38,103 +38,103 @@ |
||
| 38 | 38 | * @since 4.0 |
| 39 | 39 | */ |
| 40 | 40 | if (function_exists('espresso_version')) { |
| 41 | - if (! function_exists('espresso_duplicate_plugin_error')) { |
|
| 42 | - /** |
|
| 43 | - * espresso_duplicate_plugin_error |
|
| 44 | - * displays if more than one version of EE is activated at the same time |
|
| 45 | - */ |
|
| 46 | - function espresso_duplicate_plugin_error() |
|
| 47 | - { |
|
| 48 | - ?> |
|
| 41 | + if (! function_exists('espresso_duplicate_plugin_error')) { |
|
| 42 | + /** |
|
| 43 | + * espresso_duplicate_plugin_error |
|
| 44 | + * displays if more than one version of EE is activated at the same time |
|
| 45 | + */ |
|
| 46 | + function espresso_duplicate_plugin_error() |
|
| 47 | + { |
|
| 48 | + ?> |
|
| 49 | 49 | <div class="error"> |
| 50 | 50 | <p> |
| 51 | 51 | <?php |
| 52 | - echo esc_html__( |
|
| 53 | - 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
| 54 | - 'event_espresso' |
|
| 55 | - ); ?> |
|
| 52 | + echo esc_html__( |
|
| 53 | + 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
| 54 | + 'event_espresso' |
|
| 55 | + ); ?> |
|
| 56 | 56 | </p> |
| 57 | 57 | </div> |
| 58 | 58 | <?php |
| 59 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
| 60 | - } |
|
| 61 | - } |
|
| 62 | - add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
| 59 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
| 60 | + } |
|
| 61 | + } |
|
| 62 | + add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
| 63 | 63 | } else { |
| 64 | - define('EE_MIN_PHP_VER_REQUIRED', '5.4.0'); |
|
| 65 | - if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
| 66 | - /** |
|
| 67 | - * espresso_minimum_php_version_error |
|
| 68 | - * |
|
| 69 | - * @return void |
|
| 70 | - */ |
|
| 71 | - function espresso_minimum_php_version_error() |
|
| 72 | - { |
|
| 73 | - ?> |
|
| 64 | + define('EE_MIN_PHP_VER_REQUIRED', '5.4.0'); |
|
| 65 | + if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
| 66 | + /** |
|
| 67 | + * espresso_minimum_php_version_error |
|
| 68 | + * |
|
| 69 | + * @return void |
|
| 70 | + */ |
|
| 71 | + function espresso_minimum_php_version_error() |
|
| 72 | + { |
|
| 73 | + ?> |
|
| 74 | 74 | <div class="error"> |
| 75 | 75 | <p> |
| 76 | 76 | <?php |
| 77 | - printf( |
|
| 78 | - esc_html__( |
|
| 79 | - 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
| 80 | - 'event_espresso' |
|
| 81 | - ), |
|
| 82 | - EE_MIN_PHP_VER_REQUIRED, |
|
| 83 | - PHP_VERSION, |
|
| 84 | - '<br/>', |
|
| 85 | - '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
| 86 | - ); |
|
| 87 | - ?> |
|
| 77 | + printf( |
|
| 78 | + esc_html__( |
|
| 79 | + 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
| 80 | + 'event_espresso' |
|
| 81 | + ), |
|
| 82 | + EE_MIN_PHP_VER_REQUIRED, |
|
| 83 | + PHP_VERSION, |
|
| 84 | + '<br/>', |
|
| 85 | + '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
| 86 | + ); |
|
| 87 | + ?> |
|
| 88 | 88 | </p> |
| 89 | 89 | </div> |
| 90 | 90 | <?php |
| 91 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
| 92 | - } |
|
| 91 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | - add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
| 95 | - } else { |
|
| 96 | - define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
| 97 | - /** |
|
| 98 | - * espresso_version |
|
| 99 | - * Returns the plugin version |
|
| 100 | - * |
|
| 101 | - * @return string |
|
| 102 | - */ |
|
| 103 | - function espresso_version() |
|
| 104 | - { |
|
| 105 | - return apply_filters('FHEE__espresso__espresso_version', '4.10.3.rc.029'); |
|
| 106 | - } |
|
| 94 | + add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
| 95 | + } else { |
|
| 96 | + define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
| 97 | + /** |
|
| 98 | + * espresso_version |
|
| 99 | + * Returns the plugin version |
|
| 100 | + * |
|
| 101 | + * @return string |
|
| 102 | + */ |
|
| 103 | + function espresso_version() |
|
| 104 | + { |
|
| 105 | + return apply_filters('FHEE__espresso__espresso_version', '4.10.3.rc.029'); |
|
| 106 | + } |
|
| 107 | 107 | |
| 108 | - /** |
|
| 109 | - * espresso_plugin_activation |
|
| 110 | - * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
| 111 | - */ |
|
| 112 | - function espresso_plugin_activation() |
|
| 113 | - { |
|
| 114 | - update_option('ee_espresso_activation', true); |
|
| 115 | - } |
|
| 108 | + /** |
|
| 109 | + * espresso_plugin_activation |
|
| 110 | + * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
| 111 | + */ |
|
| 112 | + function espresso_plugin_activation() |
|
| 113 | + { |
|
| 114 | + update_option('ee_espresso_activation', true); |
|
| 115 | + } |
|
| 116 | 116 | |
| 117 | - register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
| 117 | + register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
| 118 | 118 | |
| 119 | - require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
| 120 | - bootstrap_espresso(); |
|
| 121 | - } |
|
| 119 | + require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
| 120 | + bootstrap_espresso(); |
|
| 121 | + } |
|
| 122 | 122 | } |
| 123 | 123 | if (! function_exists('espresso_deactivate_plugin')) { |
| 124 | - /** |
|
| 125 | - * deactivate_plugin |
|
| 126 | - * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
| 127 | - * |
|
| 128 | - * @access public |
|
| 129 | - * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
| 130 | - * @return void |
|
| 131 | - */ |
|
| 132 | - function espresso_deactivate_plugin($plugin_basename = '') |
|
| 133 | - { |
|
| 134 | - if (! function_exists('deactivate_plugins')) { |
|
| 135 | - require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
| 136 | - } |
|
| 137 | - unset($_GET['activate'], $_REQUEST['activate']); |
|
| 138 | - deactivate_plugins($plugin_basename); |
|
| 139 | - } |
|
| 124 | + /** |
|
| 125 | + * deactivate_plugin |
|
| 126 | + * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
| 127 | + * |
|
| 128 | + * @access public |
|
| 129 | + * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
| 130 | + * @return void |
|
| 131 | + */ |
|
| 132 | + function espresso_deactivate_plugin($plugin_basename = '') |
|
| 133 | + { |
|
| 134 | + if (! function_exists('deactivate_plugins')) { |
|
| 135 | + require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
| 136 | + } |
|
| 137 | + unset($_GET['activate'], $_REQUEST['activate']); |
|
| 138 | + deactivate_plugins($plugin_basename); |
|
| 139 | + } |
|
| 140 | 140 | } |
@@ -16,314 +16,314 @@ |
||
| 16 | 16 | class StatsGatherer |
| 17 | 17 | { |
| 18 | 18 | |
| 19 | - // const COUNT_ALL_EVENTS = 'event'; |
|
| 20 | - // const COUNT_ACTIVE_EVENTS = 'active_event'; |
|
| 21 | - // const COUNT_DATETIMES = 'datetime'; |
|
| 22 | - // const COUNT_TICKETS = 'ticket'; |
|
| 23 | - // const COUNT_DATETIMES_SOLD = 'datetime_sold'; |
|
| 24 | - // const COUNT_TICKETS_FREE = 'free_ticket'; |
|
| 25 | - // const COUNT_TICKETS_PAID = 'paid_ticket'; |
|
| 26 | - // const COUNT_TICKETS_SOLD = 'ticket_sold'; |
|
| 27 | - // const COUNT_REGISTRATIONS_APPROVED = 'registrations_approved'; |
|
| 28 | - // const COUNT_REGISTRATIONS_NOT_APPROVED = 'registrations_not_approved'; |
|
| 29 | - // const COUNT_REGISTRATIONS_PENDING = 'registrations_pending'; |
|
| 30 | - // const COUNT_REGISTRATIONS_INCOMPLETE = 'registrations_incomplete'; |
|
| 31 | - // const COUNT_REGISTRATIONS_ALL = 'registrations_all'; |
|
| 32 | - // const COUNT_REGISTRATIONS_CANCELLED = 'registrations_cancelled'; |
|
| 33 | - // const COUNT_REGISTRATIONS_DECLINED = 'registrations_declined'; |
|
| 34 | - // const SUM_TRANSACTIONS_COMPLETE_TOTAL = 'transactions_complete_total_sum'; |
|
| 35 | - // const SUM_TRANSACTIONS_ALL_PAID = 'transactions_all_paid'; |
|
| 36 | - const INFO_SITE_CURRENCY = 'site_currency'; |
|
| 19 | + // const COUNT_ALL_EVENTS = 'event'; |
|
| 20 | + // const COUNT_ACTIVE_EVENTS = 'active_event'; |
|
| 21 | + // const COUNT_DATETIMES = 'datetime'; |
|
| 22 | + // const COUNT_TICKETS = 'ticket'; |
|
| 23 | + // const COUNT_DATETIMES_SOLD = 'datetime_sold'; |
|
| 24 | + // const COUNT_TICKETS_FREE = 'free_ticket'; |
|
| 25 | + // const COUNT_TICKETS_PAID = 'paid_ticket'; |
|
| 26 | + // const COUNT_TICKETS_SOLD = 'ticket_sold'; |
|
| 27 | + // const COUNT_REGISTRATIONS_APPROVED = 'registrations_approved'; |
|
| 28 | + // const COUNT_REGISTRATIONS_NOT_APPROVED = 'registrations_not_approved'; |
|
| 29 | + // const COUNT_REGISTRATIONS_PENDING = 'registrations_pending'; |
|
| 30 | + // const COUNT_REGISTRATIONS_INCOMPLETE = 'registrations_incomplete'; |
|
| 31 | + // const COUNT_REGISTRATIONS_ALL = 'registrations_all'; |
|
| 32 | + // const COUNT_REGISTRATIONS_CANCELLED = 'registrations_cancelled'; |
|
| 33 | + // const COUNT_REGISTRATIONS_DECLINED = 'registrations_declined'; |
|
| 34 | + // const SUM_TRANSACTIONS_COMPLETE_TOTAL = 'transactions_complete_total_sum'; |
|
| 35 | + // const SUM_TRANSACTIONS_ALL_PAID = 'transactions_all_paid'; |
|
| 36 | + const INFO_SITE_CURRENCY = 'site_currency'; |
|
| 37 | 37 | |
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * @var EEM_Payment_Method |
|
| 41 | - */ |
|
| 42 | - private $payment_method_model; |
|
| 39 | + /** |
|
| 40 | + * @var EEM_Payment_Method |
|
| 41 | + */ |
|
| 42 | + private $payment_method_model; |
|
| 43 | 43 | |
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * @var EEM_Event |
|
| 47 | - */ |
|
| 48 | - private $event_model; |
|
| 45 | + /** |
|
| 46 | + * @var EEM_Event |
|
| 47 | + */ |
|
| 48 | + private $event_model; |
|
| 49 | 49 | |
| 50 | - /** |
|
| 51 | - * @var EEM_Datetime |
|
| 52 | - */ |
|
| 53 | - private $datetime_model; |
|
| 50 | + /** |
|
| 51 | + * @var EEM_Datetime |
|
| 52 | + */ |
|
| 53 | + private $datetime_model; |
|
| 54 | 54 | |
| 55 | 55 | |
| 56 | - /** |
|
| 57 | - * @var EEM_Ticket |
|
| 58 | - */ |
|
| 59 | - private $ticket_model; |
|
| 56 | + /** |
|
| 57 | + * @var EEM_Ticket |
|
| 58 | + */ |
|
| 59 | + private $ticket_model; |
|
| 60 | 60 | |
| 61 | 61 | |
| 62 | - /** |
|
| 63 | - * @var EEM_Registration |
|
| 64 | - */ |
|
| 65 | - private $registration_model; |
|
| 62 | + /** |
|
| 63 | + * @var EEM_Registration |
|
| 64 | + */ |
|
| 65 | + private $registration_model; |
|
| 66 | 66 | |
| 67 | 67 | |
| 68 | - /** |
|
| 69 | - * @var EEM_Transaction |
|
| 70 | - */ |
|
| 71 | - private $transaction_model; |
|
| 68 | + /** |
|
| 69 | + * @var EEM_Transaction |
|
| 70 | + */ |
|
| 71 | + private $transaction_model; |
|
| 72 | 72 | |
| 73 | 73 | |
| 74 | - /** |
|
| 75 | - * @var EE_Config |
|
| 76 | - */ |
|
| 77 | - private $config; |
|
| 74 | + /** |
|
| 75 | + * @var EE_Config |
|
| 76 | + */ |
|
| 77 | + private $config; |
|
| 78 | 78 | |
| 79 | 79 | |
| 80 | - /** |
|
| 81 | - * StatsGatherer constructor. |
|
| 82 | - * |
|
| 83 | - * @param EEM_Payment_Method $payment_method_model |
|
| 84 | - * @param EEM_Event $event_model |
|
| 85 | - * @param EEM_Datetime $datetime_model |
|
| 86 | - * @param EEM_Ticket $ticket_model |
|
| 87 | - * @param EEM_Registration $registration_model |
|
| 88 | - * @param EEM_Transaction $transaction_model |
|
| 89 | - * @param EE_Config $config |
|
| 90 | - */ |
|
| 91 | - public function __construct( |
|
| 92 | - EEM_Payment_Method $payment_method_model, |
|
| 93 | - EEM_Event $event_model, |
|
| 94 | - EEM_Datetime $datetime_model, |
|
| 95 | - EEM_Ticket $ticket_model, |
|
| 96 | - EEM_Registration $registration_model, |
|
| 97 | - EEM_Transaction $transaction_model, |
|
| 98 | - EE_Config $config |
|
| 99 | - ) { |
|
| 100 | - $this->payment_method_model = $payment_method_model; |
|
| 101 | - $this->event_model = $event_model; |
|
| 102 | - $this->datetime_model = $datetime_model; |
|
| 103 | - $this->ticket_model = $ticket_model; |
|
| 104 | - $this->registration_model = $registration_model; |
|
| 105 | - $this->transaction_model = $transaction_model; |
|
| 106 | - $this->config = $config; |
|
| 107 | - } |
|
| 80 | + /** |
|
| 81 | + * StatsGatherer constructor. |
|
| 82 | + * |
|
| 83 | + * @param EEM_Payment_Method $payment_method_model |
|
| 84 | + * @param EEM_Event $event_model |
|
| 85 | + * @param EEM_Datetime $datetime_model |
|
| 86 | + * @param EEM_Ticket $ticket_model |
|
| 87 | + * @param EEM_Registration $registration_model |
|
| 88 | + * @param EEM_Transaction $transaction_model |
|
| 89 | + * @param EE_Config $config |
|
| 90 | + */ |
|
| 91 | + public function __construct( |
|
| 92 | + EEM_Payment_Method $payment_method_model, |
|
| 93 | + EEM_Event $event_model, |
|
| 94 | + EEM_Datetime $datetime_model, |
|
| 95 | + EEM_Ticket $ticket_model, |
|
| 96 | + EEM_Registration $registration_model, |
|
| 97 | + EEM_Transaction $transaction_model, |
|
| 98 | + EE_Config $config |
|
| 99 | + ) { |
|
| 100 | + $this->payment_method_model = $payment_method_model; |
|
| 101 | + $this->event_model = $event_model; |
|
| 102 | + $this->datetime_model = $datetime_model; |
|
| 103 | + $this->ticket_model = $ticket_model; |
|
| 104 | + $this->registration_model = $registration_model; |
|
| 105 | + $this->transaction_model = $transaction_model; |
|
| 106 | + $this->config = $config; |
|
| 107 | + } |
|
| 108 | 108 | |
| 109 | 109 | |
| 110 | - /** |
|
| 111 | - * Return the stats array for PUE UXIP stats. |
|
| 112 | - * |
|
| 113 | - * @return array |
|
| 114 | - */ |
|
| 115 | - public function stats() |
|
| 116 | - { |
|
| 117 | - global $wp_version; |
|
| 118 | - // $stats = $this->paymentMethodStats(); |
|
| 119 | - // a-ok so let's setup our stats. |
|
| 120 | - $stats = array( |
|
| 121 | - 'is_multisite' => is_multisite() && is_main_site(), |
|
| 122 | - 'active_theme' => $this->getActiveThemeStat(), |
|
| 123 | - // 'ee4_all_events_count' => $this->getCountFor(self::COUNT_ALL_EVENTS), |
|
| 124 | - // 'ee4_active_events_count' => $this->getCountFor(self::COUNT_ACTIVE_EVENTS), |
|
| 125 | - // 'all_dtts_count' => $this->getCountFor(self::COUNT_DATETIMES), |
|
| 126 | - // 'dtt_sold' => $this->getCountFor(self::COUNT_DATETIMES_SOLD), |
|
| 127 | - // 'all_tkt_count' => $this->getCountFor(self::COUNT_TICKETS), |
|
| 128 | - // 'free_tkt_count' => $this->getCountFor(self::COUNT_TICKETS_FREE), |
|
| 129 | - // 'ptaid_tkt_count' => $this->getCountFor(self::COUNT_TICKETS_PAID), |
|
| 130 | - // 'tkt_sold' => $this->getCountFor(self::COUNT_TICKETS_SOLD), |
|
| 131 | - // 'approve_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_APPROVED), |
|
| 132 | - // 'pending_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_PENDING), |
|
| 133 | - // 'not_approved_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_NOT_APPROVED), |
|
| 134 | - // 'incomplete_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_INCOMPLETE), |
|
| 135 | - // 'cancelled_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_CANCELLED), |
|
| 136 | - // 'declined_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_DECLINED), |
|
| 137 | - // 'all_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_ALL), |
|
| 138 | - // 'completed_transaction_total_sum' => $this->getCountFor(self::SUM_TRANSACTIONS_COMPLETE_TOTAL), |
|
| 139 | - // 'all_transaction_paid_sum' => $this->getCountFor(self::SUM_TRANSACTIONS_ALL_PAID), |
|
| 140 | - self::INFO_SITE_CURRENCY => $this->config->currency instanceof EE_Currency_Config |
|
| 141 | - ? $this->config->currency->code |
|
| 142 | - : 'unknown', |
|
| 143 | - 'phpversion' => implode( |
|
| 144 | - '.', |
|
| 145 | - array(PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION) |
|
| 146 | - ), |
|
| 147 | - 'wpversion' => $wp_version, |
|
| 148 | - 'active_addons' => $this->getActiveAddons(), |
|
| 149 | - ); |
|
| 150 | - // remove any values that equal null. This ensures any stats that weren't retrieved successfully are excluded. |
|
| 151 | - return array_filter($stats, function ($value) { |
|
| 152 | - return $value !== null; |
|
| 153 | - }); |
|
| 154 | - } |
|
| 110 | + /** |
|
| 111 | + * Return the stats array for PUE UXIP stats. |
|
| 112 | + * |
|
| 113 | + * @return array |
|
| 114 | + */ |
|
| 115 | + public function stats() |
|
| 116 | + { |
|
| 117 | + global $wp_version; |
|
| 118 | + // $stats = $this->paymentMethodStats(); |
|
| 119 | + // a-ok so let's setup our stats. |
|
| 120 | + $stats = array( |
|
| 121 | + 'is_multisite' => is_multisite() && is_main_site(), |
|
| 122 | + 'active_theme' => $this->getActiveThemeStat(), |
|
| 123 | + // 'ee4_all_events_count' => $this->getCountFor(self::COUNT_ALL_EVENTS), |
|
| 124 | + // 'ee4_active_events_count' => $this->getCountFor(self::COUNT_ACTIVE_EVENTS), |
|
| 125 | + // 'all_dtts_count' => $this->getCountFor(self::COUNT_DATETIMES), |
|
| 126 | + // 'dtt_sold' => $this->getCountFor(self::COUNT_DATETIMES_SOLD), |
|
| 127 | + // 'all_tkt_count' => $this->getCountFor(self::COUNT_TICKETS), |
|
| 128 | + // 'free_tkt_count' => $this->getCountFor(self::COUNT_TICKETS_FREE), |
|
| 129 | + // 'ptaid_tkt_count' => $this->getCountFor(self::COUNT_TICKETS_PAID), |
|
| 130 | + // 'tkt_sold' => $this->getCountFor(self::COUNT_TICKETS_SOLD), |
|
| 131 | + // 'approve_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_APPROVED), |
|
| 132 | + // 'pending_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_PENDING), |
|
| 133 | + // 'not_approved_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_NOT_APPROVED), |
|
| 134 | + // 'incomplete_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_INCOMPLETE), |
|
| 135 | + // 'cancelled_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_CANCELLED), |
|
| 136 | + // 'declined_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_DECLINED), |
|
| 137 | + // 'all_registration_count' => $this->getCountFor(self::COUNT_REGISTRATIONS_ALL), |
|
| 138 | + // 'completed_transaction_total_sum' => $this->getCountFor(self::SUM_TRANSACTIONS_COMPLETE_TOTAL), |
|
| 139 | + // 'all_transaction_paid_sum' => $this->getCountFor(self::SUM_TRANSACTIONS_ALL_PAID), |
|
| 140 | + self::INFO_SITE_CURRENCY => $this->config->currency instanceof EE_Currency_Config |
|
| 141 | + ? $this->config->currency->code |
|
| 142 | + : 'unknown', |
|
| 143 | + 'phpversion' => implode( |
|
| 144 | + '.', |
|
| 145 | + array(PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION) |
|
| 146 | + ), |
|
| 147 | + 'wpversion' => $wp_version, |
|
| 148 | + 'active_addons' => $this->getActiveAddons(), |
|
| 149 | + ); |
|
| 150 | + // remove any values that equal null. This ensures any stats that weren't retrieved successfully are excluded. |
|
| 151 | + return array_filter($stats, function ($value) { |
|
| 152 | + return $value !== null; |
|
| 153 | + }); |
|
| 154 | + } |
|
| 155 | 155 | |
| 156 | - /** |
|
| 157 | - * @param string $which enum (@see constants prefixed with COUNT) |
|
| 158 | - * @return int|null |
|
| 159 | - */ |
|
| 160 | - private function getCountFor($which) |
|
| 161 | - { |
|
| 162 | - try { |
|
| 163 | - switch ($which) { |
|
| 164 | - case self::COUNT_ALL_EVENTS: |
|
| 165 | - $count = $this->event_model->count(); |
|
| 166 | - break; |
|
| 167 | - case self::COUNT_TICKETS: |
|
| 168 | - $count = $this->ticket_model->count(); |
|
| 169 | - break; |
|
| 170 | - case self::COUNT_DATETIMES: |
|
| 171 | - $count = $this->datetime_model->count(); |
|
| 172 | - break; |
|
| 173 | - case self::COUNT_ACTIVE_EVENTS: |
|
| 174 | - $count = $this->event_model->get_active_events(array(), true); |
|
| 175 | - break; |
|
| 176 | - case self::COUNT_DATETIMES_SOLD: |
|
| 177 | - $count = $this->datetime_model->sum(array(), 'DTT_sold'); |
|
| 178 | - break; |
|
| 179 | - case self::COUNT_TICKETS_FREE: |
|
| 180 | - $count = $this->ticket_model->count(array( |
|
| 181 | - array( |
|
| 182 | - 'TKT_price' => 0, |
|
| 183 | - ), |
|
| 184 | - )); |
|
| 185 | - break; |
|
| 186 | - case self::COUNT_TICKETS_PAID: |
|
| 187 | - $count = $this->ticket_model->count(array( |
|
| 188 | - array( |
|
| 189 | - 'TKT_price' => array('>', 0), |
|
| 190 | - ), |
|
| 191 | - )); |
|
| 192 | - break; |
|
| 193 | - case self::COUNT_TICKETS_SOLD: |
|
| 194 | - $count = $this->ticket_model->sum(array(), 'TKT_sold'); |
|
| 195 | - break; |
|
| 196 | - case self::COUNT_REGISTRATIONS_ALL: |
|
| 197 | - $count = $this->registration_model->count(); |
|
| 198 | - break; |
|
| 199 | - case self::COUNT_REGISTRATIONS_CANCELLED: |
|
| 200 | - $count = $this->registration_model->count( |
|
| 201 | - array( |
|
| 202 | - array( |
|
| 203 | - 'STS_ID' => EEM_Registration::status_id_cancelled, |
|
| 204 | - ), |
|
| 205 | - ) |
|
| 206 | - ); |
|
| 207 | - break; |
|
| 208 | - case self::COUNT_REGISTRATIONS_INCOMPLETE: |
|
| 209 | - $count = $this->registration_model->count( |
|
| 210 | - array( |
|
| 211 | - array( |
|
| 212 | - 'STS_ID' => EEM_Registration::status_id_incomplete, |
|
| 213 | - ), |
|
| 214 | - ) |
|
| 215 | - ); |
|
| 216 | - break; |
|
| 217 | - case self::COUNT_REGISTRATIONS_NOT_APPROVED: |
|
| 218 | - $count = $this->registration_model->count( |
|
| 219 | - array( |
|
| 220 | - array( |
|
| 221 | - 'STS_ID' => EEM_Registration::status_id_not_approved, |
|
| 222 | - ), |
|
| 223 | - ) |
|
| 224 | - ); |
|
| 225 | - break; |
|
| 226 | - case self::COUNT_REGISTRATIONS_DECLINED: |
|
| 227 | - $count = $this->registration_model->count( |
|
| 228 | - array( |
|
| 229 | - array( |
|
| 230 | - 'STS_ID' => EEM_Registration::status_id_declined, |
|
| 231 | - ), |
|
| 232 | - ) |
|
| 233 | - ); |
|
| 234 | - break; |
|
| 235 | - case self::COUNT_REGISTRATIONS_PENDING: |
|
| 236 | - $count = $this->registration_model->count( |
|
| 237 | - array( |
|
| 238 | - array( |
|
| 239 | - 'STS_ID' => EEM_Registration::status_id_pending_payment, |
|
| 240 | - ), |
|
| 241 | - ) |
|
| 242 | - ); |
|
| 243 | - break; |
|
| 244 | - case self::COUNT_REGISTRATIONS_APPROVED: |
|
| 245 | - $count = $this->registration_model->count( |
|
| 246 | - array( |
|
| 247 | - array( |
|
| 248 | - 'STS_ID' => EEM_Registration::status_id_approved, |
|
| 249 | - ), |
|
| 250 | - ) |
|
| 251 | - ); |
|
| 252 | - break; |
|
| 253 | - case self::SUM_TRANSACTIONS_COMPLETE_TOTAL: |
|
| 254 | - $count = $this->transaction_model->sum( |
|
| 255 | - array( |
|
| 256 | - array( |
|
| 257 | - 'STS_ID' => EEM_Transaction::complete_status_code, |
|
| 258 | - ), |
|
| 259 | - ), |
|
| 260 | - 'TXN_total' |
|
| 261 | - ); |
|
| 262 | - break; |
|
| 263 | - case self::SUM_TRANSACTIONS_ALL_PAID: |
|
| 264 | - $count = $this->transaction_model->sum( |
|
| 265 | - array(), |
|
| 266 | - 'TXN_paid' |
|
| 267 | - ); |
|
| 268 | - break; |
|
| 269 | - default: |
|
| 270 | - $count = null; |
|
| 271 | - break; |
|
| 272 | - } |
|
| 273 | - } catch (Exception $e) { |
|
| 274 | - $count = null; |
|
| 275 | - } |
|
| 276 | - return $count; |
|
| 277 | - } |
|
| 156 | + /** |
|
| 157 | + * @param string $which enum (@see constants prefixed with COUNT) |
|
| 158 | + * @return int|null |
|
| 159 | + */ |
|
| 160 | + private function getCountFor($which) |
|
| 161 | + { |
|
| 162 | + try { |
|
| 163 | + switch ($which) { |
|
| 164 | + case self::COUNT_ALL_EVENTS: |
|
| 165 | + $count = $this->event_model->count(); |
|
| 166 | + break; |
|
| 167 | + case self::COUNT_TICKETS: |
|
| 168 | + $count = $this->ticket_model->count(); |
|
| 169 | + break; |
|
| 170 | + case self::COUNT_DATETIMES: |
|
| 171 | + $count = $this->datetime_model->count(); |
|
| 172 | + break; |
|
| 173 | + case self::COUNT_ACTIVE_EVENTS: |
|
| 174 | + $count = $this->event_model->get_active_events(array(), true); |
|
| 175 | + break; |
|
| 176 | + case self::COUNT_DATETIMES_SOLD: |
|
| 177 | + $count = $this->datetime_model->sum(array(), 'DTT_sold'); |
|
| 178 | + break; |
|
| 179 | + case self::COUNT_TICKETS_FREE: |
|
| 180 | + $count = $this->ticket_model->count(array( |
|
| 181 | + array( |
|
| 182 | + 'TKT_price' => 0, |
|
| 183 | + ), |
|
| 184 | + )); |
|
| 185 | + break; |
|
| 186 | + case self::COUNT_TICKETS_PAID: |
|
| 187 | + $count = $this->ticket_model->count(array( |
|
| 188 | + array( |
|
| 189 | + 'TKT_price' => array('>', 0), |
|
| 190 | + ), |
|
| 191 | + )); |
|
| 192 | + break; |
|
| 193 | + case self::COUNT_TICKETS_SOLD: |
|
| 194 | + $count = $this->ticket_model->sum(array(), 'TKT_sold'); |
|
| 195 | + break; |
|
| 196 | + case self::COUNT_REGISTRATIONS_ALL: |
|
| 197 | + $count = $this->registration_model->count(); |
|
| 198 | + break; |
|
| 199 | + case self::COUNT_REGISTRATIONS_CANCELLED: |
|
| 200 | + $count = $this->registration_model->count( |
|
| 201 | + array( |
|
| 202 | + array( |
|
| 203 | + 'STS_ID' => EEM_Registration::status_id_cancelled, |
|
| 204 | + ), |
|
| 205 | + ) |
|
| 206 | + ); |
|
| 207 | + break; |
|
| 208 | + case self::COUNT_REGISTRATIONS_INCOMPLETE: |
|
| 209 | + $count = $this->registration_model->count( |
|
| 210 | + array( |
|
| 211 | + array( |
|
| 212 | + 'STS_ID' => EEM_Registration::status_id_incomplete, |
|
| 213 | + ), |
|
| 214 | + ) |
|
| 215 | + ); |
|
| 216 | + break; |
|
| 217 | + case self::COUNT_REGISTRATIONS_NOT_APPROVED: |
|
| 218 | + $count = $this->registration_model->count( |
|
| 219 | + array( |
|
| 220 | + array( |
|
| 221 | + 'STS_ID' => EEM_Registration::status_id_not_approved, |
|
| 222 | + ), |
|
| 223 | + ) |
|
| 224 | + ); |
|
| 225 | + break; |
|
| 226 | + case self::COUNT_REGISTRATIONS_DECLINED: |
|
| 227 | + $count = $this->registration_model->count( |
|
| 228 | + array( |
|
| 229 | + array( |
|
| 230 | + 'STS_ID' => EEM_Registration::status_id_declined, |
|
| 231 | + ), |
|
| 232 | + ) |
|
| 233 | + ); |
|
| 234 | + break; |
|
| 235 | + case self::COUNT_REGISTRATIONS_PENDING: |
|
| 236 | + $count = $this->registration_model->count( |
|
| 237 | + array( |
|
| 238 | + array( |
|
| 239 | + 'STS_ID' => EEM_Registration::status_id_pending_payment, |
|
| 240 | + ), |
|
| 241 | + ) |
|
| 242 | + ); |
|
| 243 | + break; |
|
| 244 | + case self::COUNT_REGISTRATIONS_APPROVED: |
|
| 245 | + $count = $this->registration_model->count( |
|
| 246 | + array( |
|
| 247 | + array( |
|
| 248 | + 'STS_ID' => EEM_Registration::status_id_approved, |
|
| 249 | + ), |
|
| 250 | + ) |
|
| 251 | + ); |
|
| 252 | + break; |
|
| 253 | + case self::SUM_TRANSACTIONS_COMPLETE_TOTAL: |
|
| 254 | + $count = $this->transaction_model->sum( |
|
| 255 | + array( |
|
| 256 | + array( |
|
| 257 | + 'STS_ID' => EEM_Transaction::complete_status_code, |
|
| 258 | + ), |
|
| 259 | + ), |
|
| 260 | + 'TXN_total' |
|
| 261 | + ); |
|
| 262 | + break; |
|
| 263 | + case self::SUM_TRANSACTIONS_ALL_PAID: |
|
| 264 | + $count = $this->transaction_model->sum( |
|
| 265 | + array(), |
|
| 266 | + 'TXN_paid' |
|
| 267 | + ); |
|
| 268 | + break; |
|
| 269 | + default: |
|
| 270 | + $count = null; |
|
| 271 | + break; |
|
| 272 | + } |
|
| 273 | + } catch (Exception $e) { |
|
| 274 | + $count = null; |
|
| 275 | + } |
|
| 276 | + return $count; |
|
| 277 | + } |
|
| 278 | 278 | |
| 279 | - /** |
|
| 280 | - * Return the active theme. |
|
| 281 | - * |
|
| 282 | - * @return false|string |
|
| 283 | - */ |
|
| 284 | - private function getActiveThemeStat() |
|
| 285 | - { |
|
| 286 | - $theme = wp_get_theme(); |
|
| 287 | - return $theme->get('Name'); |
|
| 288 | - } |
|
| 279 | + /** |
|
| 280 | + * Return the active theme. |
|
| 281 | + * |
|
| 282 | + * @return false|string |
|
| 283 | + */ |
|
| 284 | + private function getActiveThemeStat() |
|
| 285 | + { |
|
| 286 | + $theme = wp_get_theme(); |
|
| 287 | + return $theme->get('Name'); |
|
| 288 | + } |
|
| 289 | 289 | |
| 290 | - /** |
|
| 291 | - * @return array |
|
| 292 | - */ |
|
| 293 | - private function paymentMethodStats() |
|
| 294 | - { |
|
| 295 | - $payment_method_stats = array(); |
|
| 296 | - try { |
|
| 297 | - $active_payment_methods = $this->payment_method_model->get_all_active( |
|
| 298 | - null, |
|
| 299 | - array('group_by' => 'PMD_type') |
|
| 300 | - ); |
|
| 301 | - if ($active_payment_methods) { |
|
| 302 | - foreach ($active_payment_methods as $payment_method) { |
|
| 303 | - $payment_method_stats[ $payment_method->name() . '_active_payment_method' ] = 1; |
|
| 304 | - } |
|
| 305 | - } |
|
| 306 | - } catch (Exception $e) { |
|
| 307 | - // do nothing just prevents fatals. |
|
| 308 | - } |
|
| 309 | - return $payment_method_stats; |
|
| 310 | - } |
|
| 290 | + /** |
|
| 291 | + * @return array |
|
| 292 | + */ |
|
| 293 | + private function paymentMethodStats() |
|
| 294 | + { |
|
| 295 | + $payment_method_stats = array(); |
|
| 296 | + try { |
|
| 297 | + $active_payment_methods = $this->payment_method_model->get_all_active( |
|
| 298 | + null, |
|
| 299 | + array('group_by' => 'PMD_type') |
|
| 300 | + ); |
|
| 301 | + if ($active_payment_methods) { |
|
| 302 | + foreach ($active_payment_methods as $payment_method) { |
|
| 303 | + $payment_method_stats[ $payment_method->name() . '_active_payment_method' ] = 1; |
|
| 304 | + } |
|
| 305 | + } |
|
| 306 | + } catch (Exception $e) { |
|
| 307 | + // do nothing just prevents fatals. |
|
| 308 | + } |
|
| 309 | + return $payment_method_stats; |
|
| 310 | + } |
|
| 311 | 311 | |
| 312 | 312 | |
| 313 | - /** |
|
| 314 | - * Return a list of active EE add-ons and their versions. |
|
| 315 | - * |
|
| 316 | - * @return string |
|
| 317 | - */ |
|
| 318 | - private function getActiveAddons() |
|
| 319 | - { |
|
| 320 | - $activeAddons = []; |
|
| 321 | - $addOns = EE_Registry::instance()->addons; |
|
| 322 | - if (! empty($addOns)) { |
|
| 323 | - foreach ($addOns as $addon) { |
|
| 324 | - $activeAddons[] = $addon->name() . '@' . $addon->version(); |
|
| 325 | - } |
|
| 326 | - } |
|
| 327 | - return implode(',', $activeAddons); |
|
| 328 | - } |
|
| 313 | + /** |
|
| 314 | + * Return a list of active EE add-ons and their versions. |
|
| 315 | + * |
|
| 316 | + * @return string |
|
| 317 | + */ |
|
| 318 | + private function getActiveAddons() |
|
| 319 | + { |
|
| 320 | + $activeAddons = []; |
|
| 321 | + $addOns = EE_Registry::instance()->addons; |
|
| 322 | + if (! empty($addOns)) { |
|
| 323 | + foreach ($addOns as $addon) { |
|
| 324 | + $activeAddons[] = $addon->name() . '@' . $addon->version(); |
|
| 325 | + } |
|
| 326 | + } |
|
| 327 | + return implode(',', $activeAddons); |
|
| 328 | + } |
|
| 329 | 329 | } |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | 'active_addons' => $this->getActiveAddons(), |
| 149 | 149 | ); |
| 150 | 150 | // remove any values that equal null. This ensures any stats that weren't retrieved successfully are excluded. |
| 151 | - return array_filter($stats, function ($value) { |
|
| 151 | + return array_filter($stats, function($value) { |
|
| 152 | 152 | return $value !== null; |
| 153 | 153 | }); |
| 154 | 154 | } |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | ); |
| 301 | 301 | if ($active_payment_methods) { |
| 302 | 302 | foreach ($active_payment_methods as $payment_method) { |
| 303 | - $payment_method_stats[ $payment_method->name() . '_active_payment_method' ] = 1; |
|
| 303 | + $payment_method_stats[$payment_method->name().'_active_payment_method'] = 1; |
|
| 304 | 304 | } |
| 305 | 305 | } |
| 306 | 306 | } catch (Exception $e) { |
@@ -319,9 +319,9 @@ discard block |
||
| 319 | 319 | { |
| 320 | 320 | $activeAddons = []; |
| 321 | 321 | $addOns = EE_Registry::instance()->addons; |
| 322 | - if (! empty($addOns)) { |
|
| 322 | + if ( ! empty($addOns)) { |
|
| 323 | 323 | foreach ($addOns as $addon) { |
| 324 | - $activeAddons[] = $addon->name() . '@' . $addon->version(); |
|
| 324 | + $activeAddons[] = $addon->name().'@'.$addon->version(); |
|
| 325 | 325 | } |
| 326 | 326 | } |
| 327 | 327 | return implode(',', $activeAddons); |