Passed
Push — master ( 82fe3a...5c0e99 )
by Chris
03:23
created
assets/lib/pandora/class-am-notification.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
 		 * @since 1.0.0
95 95
 		 */
96 96
 		public function get_remote_notifications() {
97
-			$last_checked  = get_option( '_amn_' . $this->plugin . '_last_checked', strtotime( '-1 week' ) );
97
+			$last_checked = get_option( '_amn_' . $this->plugin . '_last_checked', strtotime( '-1 week' ) );
98 98
 
99 99
 			if ( $last_checked < strtotime( 'today midnight' ) ) {
100 100
 
101 101
 				$plugin_notifications = $this->get_plugin_notifications( 1 );
102 102
 
103 103
 				$notification_id = null;
104
-				if ( ! empty( $plugin_notifications) ) {
104
+				if ( ! empty( $plugin_notifications ) ) {
105 105
 					// Unset it from the array.
106 106
 					$notification    = $plugin_notifications[0];
107 107
 					$notification_id = get_post_meta( $notification->ID, 'notification_id', true );
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 			$plugins = get_plugins();
192 192
 
193 193
 			foreach ( $plugins as $slug => $plugin ) {
194
-				$this->plugin_list[ $slug ] = array(
194
+				$this->plugin_list[$slug] = array(
195 195
 					'slug'    => $slug,
196 196
 					'name'    => $plugin['Name'],
197 197
 					'version' => $plugin['Version'],
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 			$themes = wp_get_themes();
218 218
 
219 219
 			foreach ( $themes as $slug => $theme ) {
220
-				$this->theme_list[ $slug ] = array(
220
+				$this->theme_list[$slug] = array(
221 221
 					'slug'    => $slug,
222 222
 					'name'    => $theme->Name,
223 223
 					'version' => $theme->Version,
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 					}
294 294
 
295 295
 					if ( ! $continue ) {
296
-						unset( $plugin_notifications[ $key ] );
296
+						unset( $plugin_notifications[$key] );
297 297
 					}
298 298
 				}
299 299
 
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 					}
309 309
 
310 310
 					if ( ! $continue ) {
311
-						unset( $plugin_notifications[ $key ] );
311
+						unset( $plugin_notifications[$key] );
312 312
 					}
313 313
 				}
314 314
 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 				$continue = (string) wp_get_theme() == $theme;
318 318
 
319 319
 				if ( ! empty( $theme ) && ! $continue ) {
320
-					unset( $plugin_notifications[ $key ] );
320
+					unset( $plugin_notifications[$key] );
321 321
 				}
322 322
 
323 323
 				// Version validation.
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 					}
330 330
 
331 331
 					if ( ! $continue ) {
332
-						unset( $plugin_notifications[ $key ] );
332
+						unset( $plugin_notifications[$key] );
333 333
 					}
334 334
 				}
335 335
 
Please login to merge, or discard this patch.
assets/lib/pandora/class-am-deactivation-survey.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
 			$this->name   = $name;
50 50
 			$this->plugin = $plugin;
51 51
 
52
-			add_action( 'admin_print_scripts', array( $this, 'js'    ), 20 );
53
-			add_action( 'admin_print_scripts', array( $this, 'css'   )     );
54
-			add_action( 'admin_footer',        array( $this, 'modal' )     );
52
+			add_action( 'admin_print_scripts', array( $this, 'js' ), 20 );
53
+			add_action( 'admin_print_scripts', array( $this, 'css' ) );
54
+			add_action( 'admin_footer', array( $this, 'modal' ) );
55 55
 		}
56 56
 
57 57
 		/**
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 				<div class="am-deactivate-survey-wrap">
253 253
 					<form class="am-deactivate-survey" method="post">
254 254
 						<span class="am-deactivate-survey-title"><span class="dashicons dashicons-testimonial"></span><?php echo ' ' . esc_html__( 'Quick Feedback', 'google-analytics-for-wordpress' ); ?></span>
255
-						<span class="am-deactivate-survey-desc"><?php echo sprintf( esc_html__('If you have a moment, please share why you are deactivating %s:', 'google-analytics-for-wordpress' ), $this->name ); ?></span>
255
+						<span class="am-deactivate-survey-desc"><?php echo sprintf( esc_html__( 'If you have a moment, please share why you are deactivating %s:', 'google-analytics-for-wordpress' ), $this->name ); ?></span>
256 256
 						<div class="am-deactivate-survey-options">
257 257
 							<?php foreach ( $options as $id => $option ) : ?>
258 258
 							<div class="am-deactivate-survey-option">
@@ -267,8 +267,8 @@  discard block
 block discarded – undo
267 267
 							<?php endforeach; ?>
268 268
 						</div>
269 269
 						<div class="am-deactivate-survey-footer">
270
-							<button type="submit" class="am-deactivate-survey-submit button button-primary button-large"><?php echo sprintf( esc_html__('Submit %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' ); ?></button>
271
-							<a href="#" class="am-deactivate-survey-deactivate"><?php echo sprintf( esc_html__('Skip %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' ); ?></a>
270
+							<button type="submit" class="am-deactivate-survey-submit button button-primary button-large"><?php echo sprintf( esc_html__( 'Submit %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' ); ?></button>
271
+							<a href="#" class="am-deactivate-survey-deactivate"><?php echo sprintf( esc_html__( 'Skip %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' ); ?></a>
272 272
 						</div>
273 273
 					</form>
274 274
 				</div>
Please login to merge, or discard this patch.
lite/includes/admin/tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 }
6 6
 
7 7
 function monsterinsights_tools_url_builder() {
8
-	ob_start();?>
8
+	ob_start(); ?>
9 9
 	<div class="monsterinsights-upsell-under-box">
10 10
 		<h2><?php esc_html_e( "Want even more fine tuned control over your website analytics?", 'google-analytics-for-wordpress' ); ?></h2>
11 11
 		<p class="monsterinsights-upsell-lite-text"><?php esc_html_e( "By upgrading to MonsterInsights Pro, you can unlock the MonsterInsights URL builder that helps you better track your advertising and email marketing campaigns.", 'google-analytics-for-wordpress' ); ?></p>
Please login to merge, or discard this patch.
lite/includes/admin/tab-support.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
     ?>
25 25
     <div id="monsterinsights-settings-general">
26 26
         <?php 
27
-        // Output any notices now
28
-        do_action( 'monsterinsights_settings_support_tab_notice' );
29
-        ?>
27
+	// Output any notices now
28
+	do_action( 'monsterinsights_settings_support_tab_notice' );
29
+	?>
30 30
         <?php //Status page coming soon. ?>
31 31
         <!-- <hr /> -->
32 32
     </div>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly
13
-if ( ! defined( 'ABSPATH' ) ) exit;
13
+if ( ! defined( 'ABSPATH' ) ) {
14
+	exit;
15
+}
14 16
 
15 17
 /**
16 18
  * Callback for displaying the UI for support tab.
Please login to merge, or discard this patch.
lite/includes/admin/addons.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@  discard block
 block discarded – undo
25 25
 		// Events relies on universal tracking
26 26
 		$url = esc_url( wp_nonce_url( add_query_arg( array( 'monsterinsights-action' => 'switch_to_analyticsjs', 'return' => 'demographics' ) ), 'monsterinsights-switch-to-analyticsjs-nonce' ) );
27 27
 		$settings['demographics']['demographics']['type'] = 'notice';
28
-		$settings['demographics']['demographics']['desc'] = sprintf( esc_html__( 'Demographics and Interests tracking is only available on Universal Tracking (analytics.js). You\'re currently using deprecated ga.js tracking. We recommend switching to analytics.js, as it is significantly more accurate than ga.js, and allows for additional functionality (like the more accurate Javascript based events tracking we offer). Further Google Analytics has deprecated support for ga.js, and it may stop working at any time when Google decides to disable it from their server. To switch to using the newer Universal Analytics (analytics.js) %1$sclick here%2$s.', 'google-analytics-for-wordpress' ), '<a href="' . $url .'">', '</a>' );
28
+		$settings['demographics']['demographics']['desc'] = sprintf( esc_html__( 'Demographics and Interests tracking is only available on Universal Tracking (analytics.js). You\'re currently using deprecated ga.js tracking. We recommend switching to analytics.js, as it is significantly more accurate than ga.js, and allows for additional functionality (like the more accurate Javascript based events tracking we offer). Further Google Analytics has deprecated support for ga.js, and it may stop working at any time when Google decides to disable it from their server. To switch to using the newer Universal Analytics (analytics.js) %1$sclick here%2$s.', 'google-analytics-for-wordpress' ), '<a href="' . $url . '">', '</a>' );
29 29
 	}
30 30
 	if ( ! empty( $settings['links']['enhanced_link_attribution'] ) && $tracking_mode === 'ga' && ! monsterinsights_is_debug_mode() ) {
31 31
 		// This relies on universal tracking
32 32
 		$url = esc_url( wp_nonce_url( add_query_arg( array( 'monsterinsights-action' => 'switch_to_analyticsjs', 'return' => 'demographics' ) ), 'monsterinsights-switch-to-analyticsjs-nonce' ) );
33 33
 		$settings['links']['enhanced_link_attribution']['type'] = 'notice';
34
-		$settings['links']['enhanced_link_attribution']['desc'] = sprintf( esc_html__( 'Enhanced Link Attribution tracking is only available on Universal Tracking (analytics.js). You\'re currently using deprecated ga.js tracking. We recommend switching to analytics.js, as it is significantly more accurate than ga.js, and allows for additional functionality (like the more accurate Javascript based events tracking we offer). Further Google Analytics has deprecated support for ga.js, and it may stop working at any time when Google decides to disable it from their server. To switch to using the newer Universal Analytics (analytics.js) %1$sclick here%2$s.', 'google-analytics-for-wordpress' ), '<a href="' . $url .'">', '</a>' );
34
+		$settings['links']['enhanced_link_attribution']['desc'] = sprintf( esc_html__( 'Enhanced Link Attribution tracking is only available on Universal Tracking (analytics.js). You\'re currently using deprecated ga.js tracking. We recommend switching to analytics.js, as it is significantly more accurate than ga.js, and allows for additional functionality (like the more accurate Javascript based events tracking we offer). Further Google Analytics has deprecated support for ga.js, and it may stop working at any time when Google decides to disable it from their server. To switch to using the newer Universal Analytics (analytics.js) %1$sclick here%2$s.', 'google-analytics-for-wordpress' ), '<a href="' . $url . '">', '</a>' );
35 35
 	}
36 36
 
37 37
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 			$settings['social']['social_notice'] = array( 
47 47
 				'id' => 'social_notice',
48 48
 				'no_label' => true,
49
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
49
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
50 50
 				'type' => 'upgrade_notice',
51 51
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Social tracking to see who's clicking on your social share links, so you can track and maximize your social sharing exposure.", 'google-analytics-for-wordpress' )
52 52
 			);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 			$settings['ads']['ads_notice'] = array( 
56 56
 				'id' => 'ads_notice',
57 57
 				'no_label' => true,
58
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
58
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
59 59
 				'type' => 'upgrade_notice',
60 60
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Ads tracking to see who's clicking on your Google Ads, so you can increase your revenue.", 'google-analytics-for-wordpress' )
61 61
 			);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 			$settings['forms']['forms_notice'] = array( 
65 65
 				'id' => 'forms_notice',
66 66
 				'no_label' => true,
67
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
67
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
68 68
 				'type' => 'upgrade_notice',
69 69
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Forms tracking to see who's seeing and submitting your forms, so you can increase your conversion rate.", 'google-analytics-for-wordpress' )
70 70
 			);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 			$settings['media']['media_notice'] = array( 
74 74
 				'id' => 'media_notice',
75 75
 				'no_label' => true,
76
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
76
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
77 77
 				'type' => 'upgrade_notice',
78 78
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Media tracking to see who's interacting with the media on your site, so you know what your users are most interested in on your site. You can use this to tailor future content to meet your audience's interest to promote repeat visitors and expand your average user's time spent visiting your website on each visit.", 'google-analytics-for-wordpress' )
79 79
 			);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 			$settings['membership']['membership_notice'] = array( 
83 83
 				'id' => 'membership_notice',
84 84
 				'no_label' => true,
85
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
85
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
86 86
 				'type' => 'upgrade_notice',
87 87
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Membership tracking.", 'google-analytics-for-wordpress' )
88 88
 			);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 			$settings['dimensions']['dimensions_notice'] = array( 
92 92
 				'id' => 'dimensions_notice',
93 93
 				'no_label' => true,
94
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
94
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
95 95
 				'type' => 'upgrade_notice',
96 96
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Custom Dimensions and track who's the most popular author on your site, which post types get the most traffic, and more. Why not check it out?", 'google-analytics-for-wordpress' )
97 97
 			);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 			$settings['performance']['performance_notice'] = array( 
101 101
 				'id' => 'performance_notice',
102 102
 				'no_label' => true,
103
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
103
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
104 104
 				'type' => 'upgrade_notice',
105 105
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can adjust the sample rate so you don't exceed Google Analytics' processing limit. You can also use it to enable Google Optimize for A/B testing and personalization.", 'google-analytics-for-wordpress' )
106 106
 			);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 			$settings['reporting']['reporting_notice'] = array( 
110 110
 				'id' => 'reporting_notice',
111 111
 				'no_label' => true,
112
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
112
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
113 113
 				'type' => 'upgrade_notice',
114 114
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable enhanced reporting.", 'google-analytics-for-wordpress' )
115 115
 			);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 			$settings['amp']['amp_notice'] = array( 
119 119
 				'id' => 'amp_notice',
120 120
 				'no_label' => true,
121
-				'name' => __( 'Want to use track users visiting your AMP pages?', 'google-analytics-for-wordpress'),
121
+				'name' => __( 'Want to use track users visiting your AMP pages?', 'google-analytics-for-wordpress' ),
122 122
 				'type' => 'upgrade_notice',
123 123
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable AMP page tracking.", 'google-analytics-for-wordpress' )
124 124
 			);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 			$settings['goptimize']['goptimize_notice'] = array( 
128 128
 				'id' => 'goptimize_notice',
129 129
 				'no_label' => true,
130
-				'name' => __( 'Want to use Google Optimize to retarget your website vistors and perform A/B split tests with ease?', 'google-analytics-for-wordpress'),
130
+				'name' => __( 'Want to use Google Optimize to retarget your website vistors and perform A/B split tests with ease?', 'google-analytics-for-wordpress' ),
131 131
 				'type' => 'upgrade_notice',
132 132
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable Google Optimize.", 'google-analytics-for-wordpress' )
133 133
 			);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			$settings['fbia']['fbia_notice'] = array( 
137 137
 				'id' => 'fbia_notice',
138 138
 				'no_label' => true,
139
-				'name' => __( 'Want to expand your website audience beyond your website with Facebook Instant Articles?', 'google-analytics-for-wordpress'),
139
+				'name' => __( 'Want to expand your website audience beyond your website with Facebook Instant Articles?', 'google-analytics-for-wordpress' ),
140 140
 				'type' => 'upgrade_notice',
141 141
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can track your Facebook Instant Article visitors with MonsterInsights.", 'google-analytics-for-wordpress' )
142 142
 			);
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 			$settings['bounce']['bounce_notice'] = array( 
146 146
 				'id' => 'bounce_notice',
147 147
 				'no_label' => true,
148
-				'name' => __( 'Want to adjust your website bounce rate?', 'google-analytics-for-wordpress'),
148
+				'name' => __( 'Want to adjust your website bounce rate?', 'google-analytics-for-wordpress' ),
149 149
 				'type' => 'upgrade_notice',
150 150
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can adjust your Google Analytics bounce rate with MonsterInsights.", 'google-analytics-for-wordpress' )
151 151
 			);
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 			$settings['notifications']['notifications_notice'] = array( 
155 155
 				'id' => 'notifications_notice',
156 156
 				'no_label' => true,
157
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
157
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
158 158
 				'type' => 'upgrade_notice',
159 159
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable notifications.", 'google-analytics-for-wordpress' )
160 160
 			);
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 			$settings['ecommerce']['ecommerce_notice'] = array( 
164 164
 				'id' => 'ecommerce_notice',
165 165
 				'no_label' => true,
166
-				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
166
+				'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress' ),
167 167
 				'type' => 'upgrade_notice',
168 168
 				'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Ecommerce tracking to see who's buying your product, what's the most popular item on your store, the average order value, and tons more.", 'google-analytics-for-wordpress' )
169 169
 			);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // Exit if accessed directly
4
-if ( ! defined( 'ABSPATH' ) ) { 
4
+if ( ! defined( 'ABSPATH' ) ) {
5 5
 	exit;
6 6
 }
7 7
 
Please login to merge, or discard this patch.
lite/includes/install.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly
13
-if ( ! defined( 'ABSPATH' ) ) { 
13
+if ( ! defined( 'ABSPATH' ) ) {
14 14
 	exit;
15 15
 }
16 16
 
Please login to merge, or discard this patch.
lite/includes/google.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	return $client;
38 38
 }
39 39
 
40
-function monsterinsights_set_client_oauth_version(){
40
+function monsterinsights_set_client_oauth_version() {
41 41
 	monsterinsights_update_option( 'oauth_version', '1.0' );
42 42
 }
43 43
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	return $client;
38 38
 }
39 39
 
40
-function monsterinsights_set_client_oauth_version(){
40
+function monsterinsights_set_client_oauth_version() {
41 41
 	monsterinsights_update_option( 'oauth_version', '1.0' );
42 42
 }
43 43
 
Please login to merge, or discard this patch.
googleanalytics.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -191,14 +191,14 @@  discard block
 block discarded – undo
191 191
 
192 192
 			// Load GA for admin, lazyload for frontend
193 193
 			if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
194
-				self::$instance->ga    		= new MonsterInsights_GA();
194
+				self::$instance->ga = new MonsterInsights_GA();
195 195
 			}
196 196
 
197 197
 			// Load admin only components.
198 198
 			if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
199 199
 				self::$instance->notices    = new MonsterInsights_Notice_Admin();
200 200
 				self::$instance->license    = new MonsterInsights_License();
201
-				self::$instance->reports 	= new MonsterInsights_Reporting();
201
+				self::$instance->reports = new MonsterInsights_Reporting();
202 202
 				if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
203 203
 					self::$instance->require_updater();
204 204
 				} else {
@@ -309,19 +309,19 @@  discard block
 block discarded – undo
309 309
 		}
310 310
 
311 311
 		if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_DIR' ) ) {
312
-			define( 'MONSTERINSIGHTS_PLUGIN_DIR', plugin_dir_path( $this->file )  );
312
+			define( 'MONSTERINSIGHTS_PLUGIN_DIR', plugin_dir_path( $this->file ) );
313 313
 		}
314 314
 
315 315
 		if ( ! defined( 'GAWP_PATH' ) ) {
316
-			define( 'GAWP_PATH', MONSTERINSIGHTS_PLUGIN_FILE  );
316
+			define( 'GAWP_PATH', MONSTERINSIGHTS_PLUGIN_FILE );
317 317
 		}
318 318
 
319 319
 		if ( ! defined( 'MONSTERINSIGHTS_PLUGIN_URL' ) ) {
320
-			define( 'MONSTERINSIGHTS_PLUGIN_URL', plugin_dir_url( $this->file )  );
320
+			define( 'MONSTERINSIGHTS_PLUGIN_URL', plugin_dir_url( $this->file ) );
321 321
 		}
322 322
 
323 323
 		if ( ! defined( 'GAWP_URL' ) ) {
324
-			define( 'GAWP_URL', MONSTERINSIGHTS_PLUGIN_URL  );
324
+			define( 'GAWP_URL', MONSTERINSIGHTS_PLUGIN_URL );
325 325
 		}
326 326
 	}	
327 327
 
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 		}
342 342
 
343 343
 		// Traditional WordPress plugin locale filter.
344
-		$mi_locale  = apply_filters( 'plugin_locale',  $mi_locale, 'google-analytics-for-wordpress' );
344
+		$mi_locale  = apply_filters( 'plugin_locale', $mi_locale, 'google-analytics-for-wordpress' );
345 345
 		$mi_mofile  = sprintf( '%1$s-%2$s.mo', 'google-analytics-for-wordpress', $mi_locale ); 
346 346
 	
347 347
 		// Look for wp-content/languages/google-analytics-for-wordpress/google-analytics-for-wordpress-{lang}_{country}.mo
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
 	public function monsterinsights_wp_notice() {
399 399
 		$url = admin_url( 'plugins.php' );
400 400
 		// Check for MS dashboard
401
-		if( is_network_admin() ) {
401
+		if ( is_network_admin() ) {
402 402
 			$url = network_admin_url( 'plugins.php' );
403 403
 		}
404 404
 		?>
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 	public function monsterinsights_pro_notice() {
420 420
 		$url = admin_url( 'plugins.php' );
421 421
 		// Check for MS dashboard
422
-		if( is_network_admin() ) {
422
+		if ( is_network_admin() ) {
423 423
 			$url = network_admin_url( 'plugins.php' );
424 424
 		}
425 425
 		?>
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 		require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/options.php';
446 446
 		require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/helpers.php';
447 447
 		require_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/deprecated.php';
448
-		$monsterinsights_settings  = monsterinsights_get_options();
448
+		$monsterinsights_settings = monsterinsights_get_options();
449 449
 	}
450 450
 
451 451
 	/**
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
 		delete_option( 'monsterinsights_lite_refresh_token' );
676 676
 
677 677
 		// Destroy the data
678
-		if ( isset( $instance->reports ) && method_exists( $instance->reports,'delete_aggregate_data' ) ) {
678
+		if ( isset( $instance->reports ) && method_exists( $instance->reports, 'delete_aggregate_data' ) ) {
679 679
 			$instance->reports->delete_aggregate_data();
680 680
 		}
681 681
 	}
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
  * 
764 764
  * @return void
765 765
  */
766
-function monsterinsights_lite_call_install_and_upgrade(){
766
+function monsterinsights_lite_call_install_and_upgrade() {
767 767
 	add_action( 'wp_loaded', 'monsterinsights_lite_install_and_upgrade' );
768 768
 }
769 769
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -763,7 +763,7 @@
 block discarded – undo
763 763
  * 
764 764
  * @return void
765 765
  */
766
-function monsterinsights_lite_call_install_and_upgrade(){
766
+function monsterinsights_lite_call_install_and_upgrade() {
767 767
 	add_action( 'wp_loaded', 'monsterinsights_lite_install_and_upgrade' );
768 768
 }
769 769
 
Please login to merge, or discard this patch.