Passed
Push — development ( 65a7cc...764dda )
by
unknown
10:32
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/myaccount/form-edit-address.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,11 +23,14 @@
 block discarded – undo
23 23
 
24 24
 <?php if ( ! $load_address ) : ?>
25 25
 	<?php wc_get_template( 'myaccount/my-address.php' ); ?>
26
-<?php else : ?>
26
+<?php else {
27
+	: ?>
27 28
 
28 29
 	<form method="post">
29 30
 
30
-		<h3><?php echo apply_filters( 'woocommerce_my_account_edit_address_title', $page_title, $load_address ); ?></h3><?php // @codingStandardsIgnoreLine ?>
31
+		<h3><?php echo apply_filters( 'woocommerce_my_account_edit_address_title', $page_title, $load_address );
32
+}
33
+?></h3><?php // @codingStandardsIgnoreLine ?>
31 34
 
32 35
 		<div class="woocommerce-address-fields">
33 36
 			<?php do_action( "woocommerce_before_edit_address_form_{$load_address}" ); ?>
Please login to merge, or discard this patch.
woocommerce/checkout/form-coupon.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
17 17
 
18 18
 defined( 'ABSPATH' ) || exit;
19 19
 
20
-if ( ! wc_coupons_enabled() ) { // @codingStandardsIgnoreLine.
20
+if ( ! wc_coupons_enabled() ) {
21
+// @codingStandardsIgnoreLine.
21 22
 	return;
22 23
 }
23 24
 
Please login to merge, or discard this patch.
index.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,9 @@
 block discarded – undo
22 22
 	 */
23 23
 	get_template_part( 'templates/loop/content', get_post_format() );
24 24
 	endwhile;
25
-else :
25
+else {
26
+	:
26 27
 	get_template_part( 'templates/loop/content', 'none' );
28
+}
27 29
 endif;
28 30
 
Please login to merge, or discard this patch.
inc/bootstrap-wp-navwalker.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,8 @@
 block discarded – undo
182 182
 			}
183 183
 
184 184
 			$atts['target'] = ! empty( $item->target ) ? $item->target : '';
185
-			if ( '_blank' === $item->target && empty( $item->xfn ) ) { // Thanks to LukaszJaro, see https://github.com/understrap/understrap/issues/973
185
+			if ( '_blank' === $item->target && empty( $item->xfn ) ) {
186
+// Thanks to LukaszJaro, see https://github.com/understrap/understrap/issues/973
186 187
 				$atts['rel'] = 'noopener noreferrer';
187 188
 			} else {
188 189
 				$atts['rel'] = $item->xfn;
Please login to merge, or discard this 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.
woocommerce/myaccount/form-login.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,9 +113,12 @@
 block discarded – undo
113 113
 					       name="password" id="reg_password" autocomplete="new-password"/>
114 114
 				</p>
115 115
 
116
-			<?php else : ?>
116
+			<?php else {
117
+	: ?>
117 118
 
118
-				<p><?php esc_html_e( 'A password will be sent to your email address.', 'spurs' ); ?></p>
119
+				<p><?php esc_html_e( 'A password will be sent to your email address.', 'spurs' );
120
+}
121
+?></p>
119 122
 
120 123
 			<?php endif; ?>
121 124
 
Please login to merge, or discard this patch.
archive.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,8 @@
 block discarded – undo
29 29
 		get_template_part( 'templates/loop/content', get_post_format() );
30 30
 	endwhile;
31 31
 
32
-else :
32
+else {
33
+	:
33 34
 	get_template_part( 'templates/loop/content', 'none' );
35
+}
34 36
 endif;
Please login to merge, or discard this patch.
templates/loop/content-none.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,12 @@
 block discarded – undo
33 33
 			<?php
34 34
 			get_search_form();
35 35
 
36
-		else : ?>
36
+		else {
37
+			: ?>
37 38
 
38
-			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'spurs' ); ?></p>
39
+			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'spurs' );
40
+		}
41
+		?></p>
39 42
 			<?php
40 43
 			get_search_form();
41 44
 		endif; ?>
Please login to merge, or discard this patch.
inc/widgets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 		// Only apply changes if sidebar ID is set and the widget's classes depend on the number of widgets in the sidebar.
60 60
 		if ( isset( $params[0]['id'] ) && strpos( $params[0]['before_widget'], 'dynamic-classes' ) ) {
61 61
 			$sidebar_id   = $params[0]['id'];
62
-			$widget_count = count( $sidebars_widgets_count[ $sidebar_id ] );
62
+			$widget_count = count( $sidebars_widgets_count[$sidebar_id] );
63 63
 
64 64
 			$widget_classes = 'widget-count-' . $widget_count;
65 65
 			if ( 0 === $widget_count % 4 || $widget_count > 6 ) {
Please login to merge, or discard this patch.