Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed Dec 6, 2024
1 parent fbc7af6 commit fff6c91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/Engine/Media/Fonts/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function write_font_css( string $font_url, string $provider ): bool {

if ( ! $this->filesystem->exists( $local_path ) ) {
$download_start = microtime( true );

$font_content = $this->get_remote_content( $font_url );

if ( ! $font_content ) {
Expand Down Expand Up @@ -132,7 +133,7 @@ public function write_font_css( string $font_url, string $provider ): bool {
// Add for test purpose.
Logger::debug( "Font download and optimization duration in seconds -- $duration", [ 'Host Fonts Locally' ] );
Logger::debug( "Number of fonts downloaded -- $count_fonts", [ 'Host Fonts Locally' ] );
Logger::debug( "Average download time per font -- " . ( $count_fonts ? $download_average / $count_fonts : 0 ), [ 'Host Fonts Locally' ] );
Logger::debug( 'Average download time per font -- ' . ( $count_fonts ? $download_average / $count_fonts : 0 ), [ 'Host Fonts Locally' ] );

return $this->write_file( $css_filepath, $local_css );
}
Expand Down

0 comments on commit fff6c91

Please sign in to comment.