Passed
Branch dev (9b9f09)
by Eric
10:09
created
inc/enqueue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 function bitsy_scripts() {
9 9
 
10 10
 	wp_enqueue_script( 'bitsy-vendorjs', get_template_directory_uri() . '/assets/js/build/vendor.min.js', array(), '20151215', true );
11
-	wp_enqueue_style( 'bitsy-style', get_stylesheet_directory_uri().'/style.css' );
11
+	wp_enqueue_style( 'bitsy-style', get_stylesheet_directory_uri() . '/style.css' );
12 12
 	wp_enqueue_script( 'bitsy-navigation', get_template_directory_uri() . '/assets/js/source/navigation.js', array(), '20151215', true );
13 13
 	wp_enqueue_script( 'bitsy-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/source/skip-link-focus-fix.js', array(), '20151215', true );
14
-	wp_enqueue_script( 'bitsy-js', get_template_directory_uri() . '/assets/js/build/bitsy.min.js', array('jquery'), '20151215', true );
14
+	wp_enqueue_script( 'bitsy-js', get_template_directory_uri() . '/assets/js/build/bitsy.min.js', array( 'jquery' ), '20151215', true );
15 15
 
16 16
 	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
17 17
 		wp_enqueue_script( 'comment-reply' );
Please login to merge, or discard this patch.
inc/widgets.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@
 block discarded – undo
18 18
 		}
19 19
 		$sidebars_widgets_count = $_wp_sidebars_widgets;
20 20
 
21
-		if ( isset( $sidebars_widgets_count[ $sidebar_id ] ) ) {
22
-			$widget_count   = count( $sidebars_widgets_count[ $sidebar_id ] );
23
-			$widget_classes = 'widget-count-' . count( $sidebars_widgets_count[ $sidebar_id ] );
21
+		if ( isset( $sidebars_widgets_count[$sidebar_id] ) ) {
22
+			$widget_count   = count( $sidebars_widgets_count[$sidebar_id] );
23
+			$widget_classes = 'widget-count-' . count( $sidebars_widgets_count[$sidebar_id] );
24 24
 
25
-			if ( 0 == $widget_count % 4 || $widget_count > 6 ) {
25
+			if ( 0 == $widget_count % 4 || $widget_count>6 ) {
26 26
 				// Four widgets per row if there are exactly four or more than six
27 27
 				$widget_classes .= ' col-md-3';
28 28
 			} elseif ( 6 == $widget_count ) {
29 29
 				// If two widgets are published
30 30
 				$widget_classes .= ' col-md-2';
31
-			} elseif ( $widget_count >= 3 ) {
31
+			} elseif ( $widget_count>=3 ) {
32 32
 				// Three widgets per row if there's three or more widgets
33 33
 				$widget_classes .= ' col-md-4';
34 34
 			} elseif ( 2 == $widget_count ) {
Please login to merge, or discard this patch.
inc/template-tags.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
 			$html .= '3u 12u(small) widget-area';
251 251
 			echo $html; // WPCS: XSS OK.
252 252
 		} elseif ( ( is_page_template( 'page-templates/left-sidebar.php' ) && is_active_sidebar( 'left-sidebar' ) ) ||
253
-		           ( is_page_template( 'page-templates/right-sidebar.php' ) && is_active_sidebar( 'right-sidebar' ) ) ) {
253
+				   ( is_page_template( 'page-templates/right-sidebar.php' ) && is_active_sidebar( 'right-sidebar' ) ) ) {
254 254
 			$html .= '4u 12u(small) widget-area';
255 255
 			echo $html; // WPCS: XSS OK.
256 256
 		} elseif ( ( 'right' === $sidebar_position || 'left' === $sidebar_position ) && ( is_active_sidebar( 'right-sidebar' ) || is_active_sidebar( 'left-sidebar' ) ) ) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
 		$all_the_cool_cats = count( $all_the_cool_cats );
120 120
 		set_transient( 'bitsy_categories', $all_the_cool_cats );
121 121
 	}
122
-	if ( $all_the_cool_cats > 1 ) {
122
+	if ( $all_the_cool_cats>1 ) {
123 123
 		// This blog has more than 1 category so components_categorized_blog should return true.
124 124
 		return true;
125 125
 	} else {
Please login to merge, or discard this patch.