Skip to content

Commit 4680d44

Browse files
committed
Fix simple liniting issues
1 parent d45046d commit 4680d44

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

themes/osi/inc/template-tags.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* @return void
1717
*/
1818
function osi_posted_on( string $format = '' ) {
19-
2019
$time_string = '<time class="byline--date entry-date published" datetime="%1$s">%2$s</time>';
2120

2221
// Don't display the updated date for blog posts and meeting-minutes.
@@ -173,9 +172,13 @@ function osi_get_linked_logo( string $class_name = 'header-logo', string $size =
173172
}
174173

175174
/**
176-
* Check Block Registry if a block exists
177-
*/
178-
function osi_check_block_registry( $name ) {
175+
* Check Block Registry if a block exists
176+
*
177+
* @param string $name The block name.
178+
*
179+
* @return boolean
180+
*/
181+
function osi_check_block_registry( $name ) { // phpcs:ignore
179182
// return 1 or nothing
180183
return WP_Block_Type_Registry::get_instance()->is_registered( $name );
181184
}
@@ -424,7 +427,6 @@ function osi_get_single_taxonomy_terms_query( \WP_Post $post, string $taxonomy_s
424427
* @return string
425428
*/
426429
function osi_get_terms_from_taxonomy_links_all( string $tax = '' ) {
427-
428430
$terms = get_terms( $tax );
429431

430432
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
@@ -459,7 +461,6 @@ function osi_get_terms_from_taxonomy_links_all( string $tax = '' ) {
459461
* @return string
460462
*/
461463
function osi_get_terms_from_taxonomy_checkboxes( string $tax = '' ) {
462-
463464
$terms = get_terms( $tax );
464465

465466
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
@@ -581,7 +582,7 @@ function osi_taxonomy_query( string $posttype = 'post', int $perpage = 6, string
581582
}
582583

583584
/**
584-
* kses ruleset for SVG escaping
585+
* The kses ruleset for SVG escaping.
585586
*
586587
* @return array
587588
*/
@@ -800,7 +801,7 @@ function osi_credits( $args = array() ) {
800801
$args = (array) $args;
801802
}
802803

803-
$args = wp_parse_args(
804+
$args = wp_parse_args(
804805
$args,
805806
array(
806807
'separator' => ' ',

0 commit comments

Comments
 (0)