Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
crstauf committed Jul 29, 2024
1 parent b510565 commit da84e4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions output/html/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function output() {
/**
* @param string $handle
* @param array<string, mixed> $asset
* @param string $label
* @param string|int $label
* @return void
*/
protected function dependency_row( $handle, array $asset, $label ) {
Expand Down Expand Up @@ -218,7 +218,10 @@ protected function dependency_row( $handle, array $asset, $label ) {

echo '<tr data-qm-subject="' . esc_attr( $type . '-' . $handle ) . '" data-qm-' . esc_attr( $type ) . '-host="' . esc_attr( $qm_host ) . '" data-qm-' . esc_attr( $type ) . '-dependents="' . esc_attr( $dependents_list ) . '" data-qm-' . esc_attr( $type ) . '-dependencies="' . esc_attr( $dependencies_list ) . '" class="' . esc_attr( $class ) . '">';

if ( is_string( $label ) ) {
if ( is_numeric( $label ) ) {
$label = absint( $label ) + 1;
echo '<th scope="row" class="qm-row-num qm-num">' . $label . '</th>';
} else {
echo '<td class="qm-nowrap">';

if ( $asset['warning'] ) {
Expand All @@ -228,9 +231,6 @@ protected function dependency_row( $handle, array $asset, $label ) {

echo esc_html( $label );
echo '</td>';
} else if ( is_numeric( $label ) ) {
$label = absint( $label ) + 1;
echo '<th scope="row" class="qm-row-num qm-num">' . $label . '</th>';
}

$host = $asset['host'];
Expand Down

0 comments on commit da84e4c

Please sign in to comment.