Passed
Push — development ( 49bf8e...a44edd )
by
unknown
02:05
created
woocommerce/global/quantity-input.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 		<input
34 34
 			type="number"
35 35
 			id="<?php echo esc_attr( $input_id ); ?>"
36
-			class="input-text qty text <?php echo esc_attr( join( ' ', (array) $classes ) ); ?>"
36
+			class="input-text qty text <?php echo esc_attr( join( ' ', ( array ) $classes ) ); ?>"
37 37
 			step="<?php echo esc_attr( $step ); ?>"
38 38
 			min="<?php echo esc_attr( $min_value ); ?>"
39 39
 			max="<?php echo esc_attr( 0 < $max_value ? $max_value : '' ); ?>"
Please login to merge, or discard this patch.
archive.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
 // Exit if accessed directly.
11 11
 defined( 'ABSPATH' ) || exit;
12 12
 
13
-if (!is_front_page() && function_exists('yoast_breadcrumb')) {
14
-	yoast_breadcrumb('<div id="breadcrumbs">', '</div>');
13
+if ( ! is_front_page() && function_exists( 'yoast_breadcrumb' ) ) {
14
+	yoast_breadcrumb( '<div id="breadcrumbs">', '</div>' );
15 15
 }
16 16
 
17 17
 if ( have_posts() ) : ?>
Please login to merge, or discard this patch.
inc/extras.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 		foreach ( $classes as $key => $value ) {
51 51
 			if ( 'tag' == $value ) {
52
-				unset( $classes[ $key ] );
52
+				unset( $classes[$key] );
53 53
 			}
54 54
 		}
55 55
 
@@ -180,13 +180,13 @@  discard block
 block discarded – undo
180 180
  */
181 181
 if ( ! function_exists( 'bg' ) ) {
182 182
 
183
-	function bg($img, $size = '', $echo = true, $additional_style = '') {
183
+	function bg( $img, $size = '', $echo = true, $additional_style = '' ) {
184 184
 		if ( ! $img ) {
185 185
 		    $uploads = wp_get_upload_dir();
186 186
 		    $url = $uploads['baseurl'] . '/path_to_fallback_image.png'; // default placeholder image
187 187
 		} else {
188 188
             if ( is_array( $img ) ) {
189
-                $url = $size ? $img['sizes'][ $size ] : $img['url'];
189
+                $url = $size ? $img['sizes'][$size] : $img['url'];
190 190
             } else {
191 191
                 $url = $img;
192 192
             }
@@ -313,18 +313,18 @@  discard block
 block discarded – undo
313 313
 	return $terms[0];
314 314
 }
315 315
 
316
-function spurs_get_excerpt_by_post($id, $length = 70) {
316
+function spurs_get_excerpt_by_post( $id, $length = 70 ) {
317 317
 
318
-	$content = get_the_content($id);
318
+	$content = get_the_content( $id );
319 319
 
320
-	if (null !== get_the_excerpt($id) && '' !== get_the_excerpt($id)) {
321
-		$content = get_the_excerpt($id);
320
+	if ( null !== get_the_excerpt( $id ) && '' !== get_the_excerpt( $id ) ) {
321
+		$content = get_the_excerpt( $id );
322 322
 	}
323 323
 
324
-	$content = strip_tags($content, '<ul><li>');
325
-	$content = strip_shortcodes($content);
326
-	if ( strlen($content) > $length ) {
327
-		return substr($content, 0, $length) . '[..]';
324
+	$content = strip_tags( $content, '<ul><li>' );
325
+	$content = strip_shortcodes( $content );
326
+	if ( strlen( $content ) > $length ) {
327
+		return substr( $content, 0, $length ) . '[..]';
328 328
 	} else {
329 329
 		return $content;
330 330
 	}
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 	spurs_register_taxonomies();
345 345
 }
346 346
 
347
-function spurs_register_cpts(){
347
+function spurs_register_cpts() {
348 348
 
349 349
     $cpts[] = array(
350 350
 		'name'  => 'report',
Please login to merge, or discard this patch.
templates/loop/content.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 global $post;
12 12
 ?>
13 13
 
14
-<article <?php post_class('card'); ?> id="post-<?php the_ID(); ?>">
14
+<article <?php post_class( 'card' ); ?> id="post-<?php the_ID(); ?>">
15 15
     <div class="card-img-top img-wrapper">
16 16
         <a class="no-uppercase no-underline" href="<?php echo get_the_permalink(); ?>">
17 17
             <span class="bg-image" <?php bg( get_the_post_thumbnail_url(), false, true, 'height: 270px' ); ?>></span>
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
                     if ( $category instanceof WP_Term ) {
28 28
                         printf(
29 29
                             '<a href="%1$s"><span class="category">%2$s</span></a>',
30
-                            get_term_link($category),
30
+                            get_term_link( $category ),
31 31
                             esc_html( $category->name )
32 32
                         );
33 33
                     }
Please login to merge, or discard this patch.