@@ -282,16 +282,16 @@ discard block |
||
| 282 | 282 | |
| 283 | 283 | |
| 284 | 284 | |
| 285 | - /** |
|
| 286 | - * Takes care of double-checking that we're not in maintenance mode, and then |
|
| 287 | - * initializing this addon's necessary initial data. This is called by default on new activations |
|
| 288 | - * and reactivations |
|
| 289 | - * |
|
| 290 | - * @param boolean $verify_schema whether to verify the database's schema for this addon, or just its data. |
|
| 291 | - * This is a resource-intensive job so we prefer to only do it when necessary |
|
| 292 | - * @return void |
|
| 293 | - * @throws \EE_Error |
|
| 294 | - */ |
|
| 285 | + /** |
|
| 286 | + * Takes care of double-checking that we're not in maintenance mode, and then |
|
| 287 | + * initializing this addon's necessary initial data. This is called by default on new activations |
|
| 288 | + * and reactivations |
|
| 289 | + * |
|
| 290 | + * @param boolean $verify_schema whether to verify the database's schema for this addon, or just its data. |
|
| 291 | + * This is a resource-intensive job so we prefer to only do it when necessary |
|
| 292 | + * @return void |
|
| 293 | + * @throws \EE_Error |
|
| 294 | + */ |
|
| 295 | 295 | public function initialize_db_if_no_migrations_required( $verify_schema = true ) { |
| 296 | 296 | if( $verify_schema === '' ) { |
| 297 | 297 | //wp core bug imo: if no args are passed to `do_action('some_hook_name')` besides the hook's name |
@@ -307,11 +307,11 @@ discard block |
||
| 307 | 307 | $this->initialize_default_data(); |
| 308 | 308 | //@todo: this will probably need to be adjusted in 4.4 as the array changed formats I believe |
| 309 | 309 | EE_Data_Migration_Manager::instance()->update_current_database_state_to( |
| 310 | - array( |
|
| 311 | - 'slug' => $this->name(), |
|
| 312 | - 'version' => $this->version() |
|
| 313 | - ) |
|
| 314 | - ); |
|
| 310 | + array( |
|
| 311 | + 'slug' => $this->name(), |
|
| 312 | + 'version' => $this->version() |
|
| 313 | + ) |
|
| 314 | + ); |
|
| 315 | 315 | /* make sure core's data is a-ok |
| 316 | 316 | * (at the time of writing, we especially want to verify all the caps are present |
| 317 | 317 | * because payment method type capabilities are added dynamically, and it's |
@@ -355,11 +355,11 @@ discard block |
||
| 355 | 355 | } |
| 356 | 356 | //if not DMS was found that should be ok. This addon just doesn't require any database changes |
| 357 | 357 | EE_Data_Migration_Manager::instance()->update_current_database_state_to( |
| 358 | - array( |
|
| 359 | - 'slug' => $this->name(), |
|
| 360 | - 'version' => $this->version() |
|
| 361 | - ) |
|
| 362 | - ); |
|
| 358 | + array( |
|
| 359 | + 'slug' => $this->name(), |
|
| 360 | + 'version' => $this->version() |
|
| 361 | + ) |
|
| 362 | + ); |
|
| 363 | 363 | } |
| 364 | 364 | |
| 365 | 365 | |
@@ -401,8 +401,8 @@ discard block |
||
| 401 | 401 | EE_Maintenance_Mode::instance()->set_maintenance_mode_if_db_old(); |
| 402 | 402 | //also it's possible there is new default data that needs to be added |
| 403 | 403 | add_action( |
| 404 | - 'AHEE__EE_System__perform_activations_upgrades_and_migrations', array( $this, 'initialize_db_if_no_migrations_required' ) |
|
| 405 | - ); |
|
| 404 | + 'AHEE__EE_System__perform_activations_upgrades_and_migrations', array( $this, 'initialize_db_if_no_migrations_required' ) |
|
| 405 | + ); |
|
| 406 | 406 | } |
| 407 | 407 | |
| 408 | 408 | |
@@ -624,9 +624,9 @@ discard block |
||
| 624 | 624 | |
| 625 | 625 | |
| 626 | 626 | /** |
| 627 | - * sets hooks used in the admin |
|
| 628 | - * |
|
| 629 | - * @return void |
|
| 627 | + * sets hooks used in the admin |
|
| 628 | + * |
|
| 629 | + * @return void |
|
| 630 | 630 | */ |
| 631 | 631 | public function admin_init(){ |
| 632 | 632 | // is admin and not in M-Mode ? |
@@ -737,16 +737,16 @@ discard block |
||
| 737 | 737 | |
| 738 | 738 | |
| 739 | 739 | |
| 740 | - /** |
|
| 741 | - * a safe space for addons to add additional logic like setting hooks |
|
| 742 | - * that will run immediately after addon registration |
|
| 743 | - * making this a great place for code that needs to be "omnipresent" |
|
| 744 | - * |
|
| 745 | - * @since 4.9.26 |
|
| 746 | - */ |
|
| 740 | + /** |
|
| 741 | + * a safe space for addons to add additional logic like setting hooks |
|
| 742 | + * that will run immediately after addon registration |
|
| 743 | + * making this a great place for code that needs to be "omnipresent" |
|
| 744 | + * |
|
| 745 | + * @since 4.9.26 |
|
| 746 | + */ |
|
| 747 | 747 | public function after_registration() |
| 748 | - { |
|
| 749 | - // cricket chirp... cricket chirp... |
|
| 748 | + { |
|
| 749 | + // cricket chirp... cricket chirp... |
|
| 750 | 750 | } |
| 751 | 751 | |
| 752 | 752 | |