Passed
Push — master ( a722cd...843c92 )
by Chris
03:45
created
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 Upgrade functions.
41 41
 	require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/upgrade.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.
lite/includes/admin/dashboard-widget.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	 */
62 62
 	public function __construct() {
63 63
 		// Allow dashboard widget to be hidden on multisite installs
64
-		$show_widget         = is_multisite() ? apply_filters( 'monsterinsights_show_dashboard_widget', true ) : true;
64
+		$show_widget = is_multisite() ? apply_filters( 'monsterinsights_show_dashboard_widget', true ) : true;
65 65
 		if ( ! $show_widget ) {
66 66
 			return false;
67 67
 		}
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
 
94 94
 		// Attept to place the widget at the top.
95 95
 		$normal_dashboard = $wp_meta_boxes['dashboard']['normal']['core'];
96
-		$widget_instance  = array( self::WIDGET_KEY => $normal_dashboard[ self::WIDGET_KEY ] );
97
-		unset( $normal_dashboard[ self::WIDGET_KEY ] );
96
+		$widget_instance  = array( self::WIDGET_KEY => $normal_dashboard[self::WIDGET_KEY] );
97
+		unset( $normal_dashboard[self::WIDGET_KEY] );
98 98
 		$sorted_dashboard                             = array_merge( $widget_instance, $normal_dashboard );
99 99
 		$wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;
100 100
 	}
@@ -249,10 +249,10 @@  discard block
 block discarded – undo
249 249
 		$b      = (array) $b;
250 250
 		$result = $b;
251 251
 		foreach ( $a as $k => &$v ) {
252
-			if ( is_array( $v ) && isset( $result[ $k ] ) ) {
253
-				$result[ $k ] = self::wp_parse_args_recursive( $v, $result[ $k ] );
252
+			if ( is_array( $v ) && isset( $result[$k] ) ) {
253
+				$result[$k] = self::wp_parse_args_recursive( $v, $result[$k] );
254 254
 			} else {
255
-				$result[ $k ] = $v;
255
+				$result[$k] = $v;
256 256
 			}
257 257
 		}
258 258
 
Please login to merge, or discard this patch.