Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Djennez committed May 7, 2024
1 parent f1f0860 commit 2966359
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/generators/schema/howto.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ private function add_duration( &$data, $attributes ) {
return;
}

$days = \intval( $attributes['days'] ?? 0 );
$hours = \intval( $attributes['hours'] ?? 0 );
$minutes = \intval( $attributes['minutes'] ?? 0 );
$days = \intval( ( $attributes['days'] ?? 0 ) );
$hours = \intval( ( $attributes['hours'] ?? 0 ) );
$minutes = \intval( ( $attributes['minutes'] ?? 0 ) );

if ( ( $days + $hours + $minutes ) > 0 ) {
$data['totalTime'] = \esc_attr( 'P' . $days . 'DT' . $hours . 'H' . $minutes . 'M' );
Expand Down

0 comments on commit 2966359

Please sign in to comment.