Passed
Push — master ( e9b806...168e4e )
by Chris
02:31
created
lite/includes/admin/dashboard-widget.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	 */
32 32
 	public function __construct() {
33 33
 		// Allow dashboard widget to be hidden on multisite installs
34
-		$show_widget         = is_multisite() ? apply_filters( 'monsterinsights_show_dashboard_widget', true ) : true;
34
+		$show_widget = is_multisite() ? apply_filters( 'monsterinsights_show_dashboard_widget', true ) : true;
35 35
 		if ( ! $show_widget ) {
36 36
 			return false;
37 37
 		}
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 
62 62
 		// Attept to place the widget at the top.
63 63
 		$normal_dashboard = $wp_meta_boxes['dashboard']['normal']['core'];
64
-		$widget_instance  = array( self::WIDGET_KEY => $normal_dashboard[ self::WIDGET_KEY ] );
65
-		unset( $normal_dashboard[ self::WIDGET_KEY ] );
64
+		$widget_instance  = array( self::WIDGET_KEY => $normal_dashboard[self::WIDGET_KEY] );
65
+		unset( $normal_dashboard[self::WIDGET_KEY] );
66 66
 		$sorted_dashboard                             = array_merge( $widget_instance, $normal_dashboard );
67 67
 		$wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;
68 68
 	}
Please login to merge, or discard this patch.