Skip to content

Commit d973899

Browse files
committed
chore:run phpcbf
1 parent a6c05ef commit d973899

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

classes/class-bsf-custom-fonts-render.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function load_local_google_fonts() {
162162
require_once ABSPATH . 'wp-admin/includes/file.php'; // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
163163
}
164164

165-
WP_Filesystem(); // Initialize the filesystem
165+
WP_Filesystem(); // Initialize the filesystem.
166166

167167
$upload_dir = WP_CONTENT_DIR . '/bcf-fonts';
168168
$css_file = WP_CONTENT_DIR . '/bcf-fonts/local-fonts.css';
@@ -233,9 +233,10 @@ public function load_local_google_fonts() {
233233
}
234234
}
235235

236-
// Use WP_Filesystem to write to file instead of file_put_contents
236+
// Use WP_Filesystem to write to file instead of file_put_contents.
237237
$wp_filesystem->put_contents( $css_file, $font_face_css, FS_CHMOD_FILE );
238238

239+
// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
239240
wp_enqueue_style( 'local-google-fonts', content_url( '/bcf-fonts/local-fonts.css' ), array(), null );
240241
}
241242

0 commit comments

Comments
 (0)