@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | self::$instance->notices = new MonsterInsights_Notice_Admin(); |
228 | 228 | self::$instance->license_actions = new MonsterInsights_License_Actions(); |
229 | 229 | self::$instance->reporting = new MonsterInsights_Reporting(); |
230 | - self::$instance->api_auth = new MonsterInsights_API_Auth(); |
|
230 | + self::$instance->api_auth = new MonsterInsights_API_Auth(); |
|
231 | 231 | if ( defined( 'DOING_CRON' ) && DOING_CRON ) { |
232 | 232 | self::$instance->require_updater(); |
233 | 233 | } else { |
@@ -351,19 +351,19 @@ discard block |
||
351 | 351 | } |
352 | 352 | |
353 | 353 | if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_DIR' ) ) { |
354 | - define( 'MONSTERINSIGHTS_PLUGIN_DIR', plugin_dir_path( $this->file ) ); |
|
354 | + define( 'MONSTERINSIGHTS_PLUGIN_DIR', plugin_dir_path( $this->file ) ); |
|
355 | 355 | } |
356 | 356 | |
357 | 357 | if ( ! defined( 'GAWP_PATH' ) ) { |
358 | - define( 'GAWP_PATH', MONSTERINSIGHTS_PLUGIN_DIR ); |
|
358 | + define( 'GAWP_PATH', MONSTERINSIGHTS_PLUGIN_DIR ); |
|
359 | 359 | } |
360 | 360 | |
361 | 361 | if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_URL' ) ) { |
362 | - define( 'MONSTERINSIGHTS_PLUGIN_URL', plugin_dir_url( $this->file ) ); |
|
362 | + define( 'MONSTERINSIGHTS_PLUGIN_URL', plugin_dir_url( $this->file ) ); |
|
363 | 363 | } |
364 | 364 | |
365 | 365 | if ( ! defined( 'GAWP_URL' ) ) { |
366 | - define( 'GAWP_URL', MONSTERINSIGHTS_PLUGIN_URL ); |
|
366 | + define( 'GAWP_URL', MONSTERINSIGHTS_PLUGIN_URL ); |
|
367 | 367 | } |
368 | 368 | } |
369 | 369 | |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | } |
384 | 384 | |
385 | 385 | // Traditional WordPress plugin locale filter. |
386 | - $mi_locale = apply_filters( 'plugin_locale', $mi_locale, 'google-analytics-for-wordpress' ); |
|
386 | + $mi_locale = apply_filters( 'plugin_locale', $mi_locale, 'google-analytics-for-wordpress' ); |
|
387 | 387 | $mi_mofile = sprintf( '%1$s-%2$s.mo', 'google-analytics-for-wordpress', $mi_locale ); |
388 | 388 | |
389 | 389 | // Look for wp-content/languages/google-analytics-for-wordpress/google-analytics-for-wordpress-{lang}_{country}.mo |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | public function monsterinsights_wp_notice() { |
441 | 441 | $url = admin_url( 'plugins.php' ); |
442 | 442 | // Check for MS dashboard |
443 | - if( is_network_admin() ) { |
|
443 | + if ( is_network_admin() ) { |
|
444 | 444 | $url = network_admin_url( 'plugins.php' ); |
445 | 445 | } |
446 | 446 | ?> |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | public function monsterinsights_pro_notice() { |
462 | 462 | $url = admin_url( 'plugins.php' ); |
463 | 463 | // Check for MS dashboard |
464 | - if( is_network_admin() ) { |
|
464 | + if ( is_network_admin() ) { |
|
465 | 465 | $url = network_admin_url( 'plugins.php' ); |
466 | 466 | } |
467 | 467 | ?> |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/options.php'; |
488 | 488 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/helpers.php'; |
489 | 489 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/deprecated.php'; |
490 | - $monsterinsights_settings = monsterinsights_get_options(); |
|
490 | + $monsterinsights_settings = monsterinsights_get_options(); |
|
491 | 491 | } |
492 | 492 | |
493 | 493 | |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | * |
502 | 502 | * @return void |
503 | 503 | */ |
504 | - public function load_licensing(){ |
|
504 | + public function load_licensing() { |
|
505 | 505 | if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) { |
506 | 506 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/license.php'; |
507 | 507 | self::$instance->license = new MonsterInsights_License(); |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | $instance->api_auth->delete_auth(); |
673 | 673 | |
674 | 674 | // Delete network data |
675 | - $instance->reporting->delete_aggregate_data('network'); |
|
675 | + $instance->reporting->delete_aggregate_data( 'network' ); |
|
676 | 676 | |
677 | 677 | // Delete network license |
678 | 678 | $instance->license->delete_network_license(); |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | $instance->api_auth->delete_auth(); |
687 | 687 | |
688 | 688 | // Delete data |
689 | - $instance->reporting->delete_aggregate_data('site'); |
|
689 | + $instance->reporting->delete_aggregate_data( 'site' ); |
|
690 | 690 | |
691 | 691 | // Delete license |
692 | 692 | $instance->license->delete_site_license(); |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | $instance->api_auth->delete_auth(); |
699 | 699 | |
700 | 700 | // Delete data |
701 | - $instance->reporting->delete_aggregate_data('site'); |
|
701 | + $instance->reporting->delete_aggregate_data( 'site' ); |
|
702 | 702 | |
703 | 703 | // Delete license |
704 | 704 | $instance->license->delete_site_license(); |
@@ -793,7 +793,7 @@ discard block |
||
793 | 793 | * |
794 | 794 | * @return void |
795 | 795 | */ |
796 | -function monsterinsights_lite_call_install_and_upgrade(){ |
|
796 | +function monsterinsights_lite_call_install_and_upgrade() { |
|
797 | 797 | add_action( 'wp_loaded', 'monsterinsights_lite_install_and_upgrade' ); |
798 | 798 | } |
799 | 799 |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | * |
502 | 502 | * @return void |
503 | 503 | */ |
504 | - public function load_licensing(){ |
|
504 | + public function load_licensing() { |
|
505 | 505 | if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) { |
506 | 506 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/license.php'; |
507 | 507 | self::$instance->license = new MonsterInsights_License(); |
@@ -793,7 +793,7 @@ discard block |
||
793 | 793 | * |
794 | 794 | * @return void |
795 | 795 | */ |
796 | -function monsterinsights_lite_call_install_and_upgrade(){ |
|
796 | +function monsterinsights_lite_call_install_and_upgrade() { |
|
797 | 797 | add_action( 'wp_loaded', 'monsterinsights_lite_install_and_upgrade' ); |
798 | 798 | } |
799 | 799 |