Passed
Push — development ( a68c4d...46d9de )
by Eric
06:14
created
inc/custom-comments.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 	    <label for="comment">' . _x( 'Comment', 'noun', 'spurs' ) . ( ' <span class="required">*</span>' ) . '</label>
57 57
 	    <textarea class="form-control" id="comment" name="comment" aria-required="true" cols="45" rows="8"></textarea>
58 58
 	    </div>';
59
-		$args['class_submit']  = 'btn btn-secondary'; // since WP 4.1.
59
+		$args['class_submit'] = 'btn btn-secondary'; // since WP 4.1.
60 60
 
61 61
 		return $args;
62 62
 	}
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
 		$fields    = array(
31 31
 			'author'  => '<div class="form-group comment-form-author"><label for="author">' . __( 'Name',
32 32
 					'spurs' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
33
-			             '<input class="form-control" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . '></div>',
33
+						 '<input class="form-control" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . '></div>',
34 34
 			'email'   => '<div class="form-group comment-form-email"><label for="email">' . __( 'Email',
35 35
 					'spurs' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
36
-			             '<input class="form-control" id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . '></div>',
36
+						 '<input class="form-control" id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . '></div>',
37 37
 			'url'     => '<div class="form-group comment-form-url"><label for="url">' . __( 'Website',
38 38
 					'spurs' ) . '</label> ' .
39
-			             '<input class="form-control" id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></div>',
39
+						 '<input class="form-control" id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></div>',
40 40
 			'cookies' => '<div class="form-group form-check comment-form-cookies-consent"><input class="form-check-input" id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' /> ' .
41
-			             '<label class="form-check-label" for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment', 'spurs' ) . '</label></div>',
41
+						 '<label class="form-check-label" for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment', 'spurs' ) . '</label></div>',
42 42
 		);
43 43
 
44 44
 		return $fields;
Please login to merge, or discard this patch.
woocommerce/cart/mini-cart.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,8 +52,11 @@  discard block
 block discarded – undo
52 52
 					?>
53 53
 					<?php if ( empty( $product_permalink ) ) : ?>
54 54
 						<?php echo $thumbnail . $product_name; ?>
55
-					<?php else : ?>
56
-						<a href="<?php echo esc_url( $product_permalink ); ?>">
55
+					<?php else {
56
+	: ?>
57
+						<a href="<?php echo esc_url( $product_permalink );
58
+}
59
+?>">
57 60
 							<?php echo $thumbnail . $product_name; ?>
58 61
 						</a>
59 62
 					<?php endif; ?>
@@ -76,9 +79,12 @@  discard block
 block discarded – undo
76 79
 
77 80
 	<p class="woocommerce-mini-cart__buttons buttons"><?php do_action( 'woocommerce_widget_shopping_cart_buttons' ); ?></p>
78 81
 
79
-<?php else : ?>
82
+<?php else {
83
+	: ?>
80 84
 
81
-	<p class="woocommerce-mini-cart__empty-message"><?php _e( 'No products in the cart.', 'spurs' ); ?></p>
85
+	<p class="woocommerce-mini-cart__empty-message"><?php _e( 'No products in the cart.', 'spurs' );
86
+}
87
+?></p>
82 88
 
83 89
 <?php endif; ?>
84 90
 
Please login to merge, or discard this patch.
inc/bootstrap-wp-navwalker.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 			}
110 110
 			$indent = ( $depth ) ? str_repeat( $t, $depth ) : '';
111 111
 
112
-			$classes = empty( $item->classes ) ? array() : (array) $item->classes;
112
+			$classes = empty( $item->classes ) ? array() : ( array ) $item->classes;
113 113
 
114 114
 			// Initialize some holder variables to store specially handled item
115 115
 			// wrappers and icons.
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 			$attributes = '';
220 220
 			foreach ( $atts as $attr => $value ) {
221 221
 				if ( ! empty( $value ) ) {
222
-					$value      = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value );
222
+					$value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value );
223 223
 					$attributes .= ' ' . $attr . '="' . $value . '"';
224 224
 				}
225 225
 			}
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 				$title         = self::wrap_for_screen_reader( $title );
280 280
 				$keys_to_unset = array_keys( $linkmod_classes, 'sr-only' );
281 281
 				foreach ( $keys_to_unset as $k ) {
282
-					unset( $linkmod_classes[ $k ] );
282
+					unset( $linkmod_classes[$k] );
283 283
 				}
284 284
 			}
285 285
 
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 			$id_field = $this->db_fields['id'];
336 336
 			// Display this element.
337 337
 			if ( is_object( $args[0] ) ) {
338
-				$args[0]->has_children = ! empty( $children_elements[ $element->$id_field ] );
338
+				$args[0]->has_children = ! empty( $children_elements[$element->$id_field] );
339 339
 			}
340 340
 			parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
341 341
 		}
@@ -423,20 +423,20 @@  discard block
 block discarded – undo
423 423
 				if ( preg_match( '/^disabled|^sr-only/i', $class ) ) {
424 424
 					// Test for .disabled or .sr-only classes.
425 425
 					$linkmod_classes[] = $class;
426
-					unset( $classes[ $key ] );
426
+					unset( $classes[$key] );
427 427
 				} elseif ( preg_match( '/^dropdown-header|^dropdown-divider|^dropdown-item-text/i', $class ) && $depth > 0 ) {
428 428
 					// Test for .dropdown-header or .dropdown-divider and a
429 429
 					// depth greater than 0 - IE inside a dropdown.
430 430
 					$linkmod_classes[] = $class;
431
-					unset( $classes[ $key ] );
431
+					unset( $classes[$key] );
432 432
 				} elseif ( preg_match( '/^fa-(\S*)?|^fa(s|r|l|b)?(\s?)?$/i', $class ) ) {
433 433
 					// Font Awesome.
434 434
 					$icon_classes[] = $class;
435
-					unset( $classes[ $key ] );
435
+					unset( $classes[$key] );
436 436
 				} elseif ( preg_match( '/^glyphicon-(\S*)?|^glyphicon(\s?)$/i', $class ) ) {
437 437
 					// Glyphicons.
438 438
 					$icon_classes[] = $class;
439
-					unset( $classes[ $key ] );
439
+					unset( $classes[$key] );
440 440
 				}
441 441
 			}
442 442
 
Please login to merge, or discard this patch.