Passed
Push — master ( 6ac651...0a307d )
by
unknown
13:21
created
includes/install.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,8 @@
 block discarded – undo
87 87
 				wp_cache_flush();
88 88
 				$cachec = true;
89 89
 			}
90
-		} else { // if existing install
90
+		} else {
91
+// if existing install
91 92
 			if ( version_compare( $version, '6.0.11', '<' ) ) {
92 93
 				if ( ! $cachec ) {
93 94
 					wp_cache_flush();
Please login to merge, or discard this patch.
lite/includes/load.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@
 block discarded – undo
40 40
 	// Load the MonsterInsights Connect class.
41 41
 	require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/connect.php';
42 42
 
43
-	if ( isset( $_GET['page'] ) && 'monsterinsights-onboarding' === $_GET['page'] ) { // WPCS: CSRF ok, input var ok.
43
+	if ( isset( $_GET['page'] ) && 'monsterinsights-onboarding' === $_GET['page'] ) {
44
+// WPCS: CSRF ok, input var ok.
44 45
 		// Only load the Onboarding wizard if the required parameter is present.
45 46
 		require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/onboarding-wizard.php';
46 47
 	}
Please login to merge, or discard this patch.
includes/admin/licensing/plugin-upgrader.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,8 @@  discard block
 block discarded – undo
97 97
 		 */
98 98
 		$options = apply_filters( 'upgrader_package_options', $options );
99 99
 
100
-		if ( ! $options['is_multi'] ) { // call $this->header separately if running multiple times
100
+		if ( ! $options['is_multi'] ) {
101
+// call $this->header separately if running multiple times
101 102
 			$this->skin->header();
102 103
 		}
103 104
 
@@ -288,7 +289,8 @@  discard block
 block discarded – undo
288 289
 			return $reply;
289 290
 		}
290 291
 
291
-		if ( ! preg_match( '!^(http|https|ftp)://!i', $package ) && file_exists( $package ) ) { //Local file or remote?
292
+		if ( ! preg_match( '!^(http|https|ftp)://!i', $package ) && file_exists( $package ) ) {
293
+//Local file or remote?
292 294
 			return $package; //must be a local file..
293 295
 		}
294 296
 
@@ -443,11 +445,13 @@  discard block
 block discarded – undo
443 445
 		$remote_destination = $wp_filesystem->find_folder( $local_destination );
444 446
 
445 447
 		//Locate which directory to copy to the new folder, This is based on the actual folder holding the files.
446
-		if ( 1 == count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) { //Only one folder? Then we want its contents.
448
+		if ( 1 == count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) {
449
+//Only one folder? Then we want its contents.
447 450
 			$source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
448 451
 		} elseif ( count( $source_files ) == 0 ) {
449 452
 			return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); // There are no files?
450
-		} else { // It's only a single file, the upgrader will use the folder name of this file as the destination folder. Folder name is based on zip filename.
453
+		} else {
454
+// It's only a single file, the upgrader will use the folder name of this file as the destination folder. Folder name is based on zip filename.
451 455
 			$source = trailingslashit( $args['source'] );
452 456
 		}
453 457
 
Please login to merge, or discard this patch.
includes/admin/licensing/plugin-upgrader-legacy.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,8 @@  discard block
 block discarded – undo
97 97
 		 */
98 98
 		$options = apply_filters( 'upgrader_package_options', $options );
99 99
 
100
-		if ( ! $options['is_multi'] ) { // call $this->header separately if running multiple times
100
+		if ( ! $options['is_multi'] ) {
101
+// call $this->header separately if running multiple times
101 102
 			$this->skin->header();
102 103
 		}
103 104
 
@@ -288,7 +289,8 @@  discard block
 block discarded – undo
288 289
 			return $reply;
289 290
 		}
290 291
 
291
-		if ( ! preg_match( '!^(http|https|ftp)://!i', $package ) && file_exists( $package ) ) { //Local file or remote?
292
+		if ( ! preg_match( '!^(http|https|ftp)://!i', $package ) && file_exists( $package ) ) {
293
+//Local file or remote?
292 294
 			return $package; //must be a local file..
293 295
 		}
294 296
 
@@ -443,11 +445,13 @@  discard block
 block discarded – undo
443 445
 		$remote_destination = $wp_filesystem->find_folder( $local_destination );
444 446
 
445 447
 		//Locate which directory to copy to the new folder, This is based on the actual folder holding the files.
446
-		if ( 1 == count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) { //Only one folder? Then we want its contents.
448
+		if ( 1 == count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) {
449
+//Only one folder? Then we want its contents.
447 450
 			$source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
448 451
 		} elseif ( count( $source_files ) == 0 ) {
449 452
 			return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); // There are no files?
450
-		} else { // It's only a single file, the upgrader will use the folder name of this file as the destination folder. Folder name is based on zip filename.
453
+		} else {
454
+// It's only a single file, the upgrader will use the folder name of this file as the destination folder. Folder name is based on zip filename.
451 455
 			$source = trailingslashit( $args['source'] );
452 456
 		}
453 457
 
Please login to merge, or discard this patch.
includes/admin/notifications.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,7 +141,8 @@  discard block
 block discarded – undo
141 141
 	 * @since {VERSION}
142 142
 	 *
143 143
 	 */
144
-	public function verify( $notifications ) { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh
144
+	public function verify( $notifications ) {
145
+// phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh
145 146
 
146 147
 		$data = array();
147 148
 
@@ -462,7 +463,8 @@  discard block
 block discarded – undo
462 463
 		// Remove notification and add in dismissed array.
463 464
 		if ( is_array( $option[ $type ] ) && ! empty( $option[ $type ] ) ) {
464 465
 			foreach ( $option[ $type ] as $key => $notification ) {
465
-				if ( $notification['id'] == $id ) { // phpcs:ignore WordPress.PHP.StrictComparisons
466
+				if ( $notification['id'] == $id ) {
467
+// phpcs:ignore WordPress.PHP.StrictComparisons
466 468
 					// Add notification to dismissed array.
467 469
 					array_unshift( $option['dismissed'], $notification );
468 470
 					// Remove notification from feed or events.
Please login to merge, or discard this patch.
lite/includes/admin/user-journey/providers/givewp.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,8 @@
 block discarded – undo
48 48
 			return false;
49 49
 		}
50 50
 
51
-		if ( 'give_forms' !== $_GET['post_type'] && 'give-payment-history' !== $_GET['page'] && 'view-payment-details' !== $_GET['view'] ) { // phpcs:ignore
51
+		if ( 'give_forms' !== $_GET['post_type'] && 'give-payment-history' !== $_GET['page'] && 'view-payment-details' !== $_GET['view'] ) {
52
+// phpcs:ignore
52 53
 			return false;
53 54
 		}
54 55
 
Please login to merge, or discard this patch.
lite/includes/admin/user-journey/providers/restrict-content-pro.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@
 block discarded – undo
44 44
 			return false;
45 45
 		}
46 46
 
47
-		if ( 'rcp-payments' !== $_GET['page'] && 'edit-payment' !== $_GET['view'] ) { // phpcs:ignore
47
+		if ( 'rcp-payments' !== $_GET['page'] && 'edit-payment' !== $_GET['view'] ) {
48
+// phpcs:ignore
48 49
 			return false;
49 50
 		}
50 51
 
Please login to merge, or discard this patch.
lite/includes/admin/user-journey/providers/edd.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@
 block discarded – undo
44 44
 			return false;
45 45
 		}
46 46
 
47
-		if ( 'edd-payment-history' !== $_GET['page'] && 'view-order-details' !== $_GET['view'] ) { // phpcs:ignore
47
+		if ( 'edd-payment-history' !== $_GET['page'] && 'view-order-details' !== $_GET['view'] ) {
48
+// phpcs:ignore
48 49
 			return false;
49 50
 		}
50 51
 
Please login to merge, or discard this patch.
lite/includes/admin/user-journey/providers/memberpress.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@
 block discarded – undo
44 44
 			return false;
45 45
 		}
46 46
 		
47
-		if ( 'memberpress-trans' !== $_GET['page'] && 'edit' !== $_GET['action'] ) { // phpcs:ignore
47
+		if ( 'memberpress-trans' !== $_GET['page'] && 'edit' !== $_GET['action'] ) {
48
+// phpcs:ignore
48 49
 			return false;
49 50
 		}
50 51
 
Please login to merge, or discard this patch.