Passed
Push — master ( 02fe7f...406f6c )
by
unknown
10:53
created
includes/admin/notifications/notification-upgrade-for-email-summaries.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 			'<a href="' . $this->get_upgrade_url() . '" target="_blank">',
31 31
 			'</a>'
32 32
 		);
33
-		$notification['btns']    = array(
33
+		$notification['btns'] = array(
34 34
 			"get_monsterinsights_pro" => array(
35 35
 				'url'         => $this->get_upgrade_url(),
36 36
 				'text'        => __( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ),
Please login to merge, or discard this patch.
includes/admin/notifications/notification-to-setup-affiliate-links.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 				'<a href="' . $this->build_external_link( 'https://www.monsterinsights.com/how-to-set-up-affiliate-link-tracking-in-wordpress/' ) . '" target="_blank">',
47 47
 				'</a>'
48 48
 			);
49
-			$notification['btns']    = array(
49
+			$notification['btns'] = array(
50 50
 				"read_more" => array(
51 51
 					'url'         => $this->build_external_link( $learn_more_url ),
52 52
 					'text'        => __( 'Read More', 'google-analytics-for-wordpress' ),
Please login to merge, or discard this patch.
includes/admin/notifications/notification-install-user-feedback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
 		$uf_plugin_active = class_exists( 'UserFeedback_Base' );
30 30
 
31
-		if( ! $uf_plugin_active ) {
31
+		if ( ! $uf_plugin_active ) {
32 32
 
33 33
 			// Translators: user feedback notification title
34 34
 			$notification['title'] = sprintf( __( 'What Are Your Users Really Thinking?', 'google-analytics-for-wordpress' ) );
Please login to merge, or discard this patch.
includes/admin/notifications/notification-multiple-gtags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 				$script_src = $script->getAttribute( 'src' );
28 28
 
29 29
 				if ( preg_match( "/googletagmanager.com\/gtag\/js/i", $script_src ) ) {
30
-					$gtag_count ++;
30
+					$gtag_count++;
31 31
 				}
32 32
 			}
33 33
 
Please login to merge, or discard this patch.
includes/admin/notifications/notification-audience.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 			'</a>'
46 46
 		);
47 47
 
48
-		$notification['btns']    = array(
48
+		$notification['btns'] = array(
49 49
 			"view_report" => array(
50 50
 				'url'  => $this->get_view_url( 'monsterinsights-report-top-countries', 'monsterinsights_reports' ),
51 51
 				'text' => __( 'View Report', 'google-analytics-for-wordpress' )
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 					$translations  = wp_get_available_translations();
93 93
 
94 94
 					if ( is_array( $translations ) && ! empty( $translations ) ) {
95
-						$site_iso = isset( $translations[ $site_language ]['iso'] ) ? $translations[ $site_language ]['iso'] : array(); // keep empty array, because site language has no iso setup for en_US language
95
+						$site_iso = isset( $translations[$site_language]['iso'] ) ? $translations[$site_language]['iso'] : array(); // keep empty array, because site language has no iso setup for en_US language
96 96
 
97 97
 						if ( is_array( $site_iso ) && ! in_array( $country['iso'], $site_iso ) ) {
98 98
 							$data['country']    = $country['name'];
Please login to merge, or discard this patch.
includes/admin/setup-checklist.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 				break;
132 132
 
133 133
 			default:
134
-				$checklist[ $button_key ] = true;
134
+				$checklist[$button_key] = true;
135 135
 				break;
136 136
 		}
137 137
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 			if ( is_array( $checklist_item ) ) {
174 174
 				foreach ( $checklist_item as $sub_item ) {
175 175
 					if ( ! $sub_item ) {
176
-						$left ++;
176
+						$left++;
177 177
 					}
178 178
 				}
179 179
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 			}
182 182
 
183 183
 			if ( ! $checklist_item ) {
184
-				$left ++;
184
+				$left++;
185 185
 			}
186 186
 		}
187 187
 
Please login to merge, or discard this patch.
includes/admin/pages/tools.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
 		return;
26 26
 	}
27 27
 	
28
-	if ( empty( $_POST['monsterinsights_export_settings'] ) || ! wp_verify_nonce( $_POST['monsterinsights_export_settings'], 'mi-admin-nonce' ) ) { // phpcs:ignore
28
+	if ( empty( $_POST['monsterinsights_export_settings'] ) || ! wp_verify_nonce( $_POST['monsterinsights_export_settings'], 'mi-admin-nonce' ) ) {
29
+// phpcs:ignore
29 30
 		return;
30 31
 	}
31 32
 
Please login to merge, or discard this patch.
includes/admin/pages/addons.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -130,12 +130,12 @@
 block discarded – undo
130 130
 function monsterinsights_get_all_addons_data() {
131 131
 
132 132
     $body = array(
133
-        'tgm-updater-action'     => 'get-all-addons-data',
134
-        'tgm-updater-key'        => '',
135
-        'tgm-updater-wp-version' => get_bloginfo( 'version' ),
136
-        'tgm-updater-referer'    => site_url(),
137
-        'tgm-updater-mi-version' => MONSTERINSIGHTS_VERSION,
138
-        'tgm-updater-is-pro'     => false,
133
+	'tgm-updater-action'     => 'get-all-addons-data',
134
+	'tgm-updater-key'        => '',
135
+	'tgm-updater-wp-version' => get_bloginfo( 'version' ),
136
+	'tgm-updater-referer'    => site_url(),
137
+	'tgm-updater-mi-version' => MONSTERINSIGHTS_VERSION,
138
+	'tgm-updater-is-pro'     => false,
139 139
     );
140 140
 
141 141
     return monsterinsights_perform_remote_request( 'verify-key', $body );
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
 	$plugin_basename = monsterinsights_get_plugin_basename_from_slug( $slug );
151 151
 
152
-	if ( isset( $installed_plugins[ $plugin_basename ] ) ) {
152
+	if ( isset( $installed_plugins[$plugin_basename] ) ) {
153 153
 		$installed = true;
154 154
 
155 155
 		if ( is_multisite() && is_network_admin() ) {
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
 
165 165
 	$active_version = false;
166 166
 	if ( $active ) {
167
-		if ( ! empty( $installed_plugins[ $plugin_basename ]['Version'] ) ) {
168
-			$active_version = $installed_plugins[ $plugin_basename ]['Version'];
167
+		if ( ! empty( $installed_plugins[$plugin_basename]['Version'] ) ) {
168
+			$active_version = $installed_plugins[$plugin_basename]['Version'];
169 169
 		}
170 170
 	}
171 171
 
Please login to merge, or discard this patch.
includes/admin/pages/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 		}
81 81
 	</style>
82 82
 	<![endif]-->
83
-	<div id="<?php echo esc_attr($id); ?>">
83
+	<div id="<?php echo esc_attr( $id ); ?>">
84 84
 		<div id="monsterinsights-settings-area" class="monsterinsights-settings-area mi-container"
85 85
 			 style="font-family:'Helvetica Neue', 'HelveticaNeue-Light', 'Helvetica Neue Light', Helvetica, Arial, 'Lucida Grande', sans-serif;margin: auto;width: 750px;max-width: 100%;">
86 86
 			<div id="monsterinsights-settings-error-loading-area">
Please login to merge, or discard this patch.