Passed
Pull Request — master (#508)
by Adam
08:08 queued 04:37
created
includes/admin/reporting.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
 	}
26 26
 
27
-	public function add_report( $report = false ){
27
+	public function add_report( $report = false ) {
28 28
 		if ( empty( $report ) || ! is_object( $report ) ) {
29 29
 			return;
30 30
 		}
Please login to merge, or discard this patch.
lite/includes/admin/reports/report-dimensions.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 		parent::__construct();
24 24
 	}
25 25
 
26
-	protected function get_report_html( $data = array() ){
26
+	protected function get_report_html( $data = array() ) {
27 27
 		return $this->get_upsell_notice();
28 28
 	}
29 29
 }
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
lite/includes/admin/reports/report-queries.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 		parent::__construct();
24 24
 	}
25 25
 
26
-	protected function get_report_html( $data = array() ){
26
+	protected function get_report_html( $data = array() ) {
27 27
 		return $this->get_upsell_notice();
28 28
 	}
29 29
 }
Please login to merge, or discard this patch.
lite/includes/admin/reports/report-ecommerce.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 		parent::__construct();
24 24
 	}
25 25
 
26
-	protected function get_report_html( $data = array() ){
26
+	protected function get_report_html( $data = array() ) {
27 27
 		return $this->get_upsell_notice();
28 28
 	}
29 29
 }
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
lite/includes/admin/reports/report-publisher.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 		parent::__construct();
24 24
 	}
25 25
 
26
-	protected function get_report_html( $data = array() ){
26
+	protected function get_report_html( $data = array() ) {
27 27
 		return $this->get_upsell_notice();
28 28
 	}
29 29
 }
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
lite/includes/admin/reports/report-forms.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 		parent::__construct();
24 24
 	}
25 25
 
26
-	protected function get_report_html( $data = array() ){
26
+	protected function get_report_html( $data = array() ) {
27 27
 		return $this->get_upsell_notice();
28 28
 	}
29 29
 }
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
includes/options.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 function monsterinsights_update_option( $key = '', $value = false ) {
147 147
 
148 148
 	// If no key, exit
149
-	if ( empty( $key ) ){
149
+	if ( empty( $key ) ) {
150 150
 		return false;
151 151
 	}
152 152
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	//}
187 187
 
188 188
 	// If it updated, let's update the global variable
189
-	if ( $did_update ){
189
+	if ( $did_update ) {
190 190
 		global $monsterinsights_settings;
191 191
 		$monsterinsights_settings[ $key ] = $value;
192 192
 	}
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
  */
206 206
 function monsterinsights_delete_option( $key = '' ) {
207 207
 	// If no key, exit
208
-	if ( empty( $key ) ){
208
+	if ( empty( $key ) ) {
209 209
 		return false;
210 210
 	}
211 211
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 	//}
237 237
 
238 238
 	// If it updated, let's update the global variable
239
-	if ( $did_update ){
239
+	if ( $did_update ) {
240 240
 		global $monsterinsights_settings;
241 241
 		$monsterinsights_settings = $settings;
242 242
 	}
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
  */
256 256
 function monsterinsights_delete_options( $keys = array() ) {
257 257
 	// If no keys, exit
258
-	if ( empty( $keys ) || ! is_array( $keys ) ){
258
+	if ( empty( $keys ) || ! is_array( $keys ) ) {
259 259
 		return false;
260 260
 	}
261 261
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 	//}
289 289
 
290 290
 	// If it updated, let's update the global variable
291
-	if ( $did_update ){
291
+	if ( $did_update ) {
292 292
 		global $monsterinsights_settings;
293 293
 		$monsterinsights_settings = $settings;
294 294
 	}
Please login to merge, or discard this patch.
lite/includes/admin/reports/report-realtime.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 		parent::__construct();
24 24
 	}
25 25
 
26
-	protected function get_report_html( $data = array() ){
26
+	protected function get_report_html( $data = array() ) {
27 27
 		return $this->get_upsell_notice();
28 28
 	}
29 29
 }
Please login to merge, or discard this patch.
lite/includes/admin/onboarding-wizard.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,8 @@
 block discarded – undo
52 52
 		// Check for wizard-specific parameter
53 53
 		// Allow plugins to disable the onboarding wizard
54 54
 		// Check if current user is allowed to save settings.
55
-		if ( ! ( isset( $_GET['page'] ) || 'monsterinsights-onboarding' !== $_GET['page'] || apply_filters( 'monsterinsights_enable_onboarding_wizard', true ) || ! current_user_can( 'monsterinsights_save_settings' ) ) ) { // WPCS: CSRF ok, input var ok.
55
+		if ( ! ( isset( $_GET['page'] ) || 'monsterinsights-onboarding' !== $_GET['page'] || apply_filters( 'monsterinsights_enable_onboarding_wizard', true ) || ! current_user_can( 'monsterinsights_save_settings' ) ) ) {
56
+// WPCS: CSRF ok, input var ok.
56 57
 			return;
57 58
 		}
58 59
 
Please login to merge, or discard this patch.