Skip to content

Commit e94b426

Browse files
committed
style: fix whitespace inconsistencies in tag_replacer and Profile classes
- Removed unnecessary whitespace in the tag_replacer.php file. - Cleaned up formatting in the is_data_available method of Profile.php for consistency.
1 parent e788a91 commit e94b426

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/tag_replacer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public function regular_tag_replace( $new_tag, $original_url, $new_url, $optml_a
433433

434434
if ( $this->settings->is_lazyload_type_viewport() ) {
435435
$image_id = $this->get_id_by_url( $original_url );
436-
$is_lcp_image = Optml_Manager::instance()->page_profiler->is_lcp_image_in_all_viewports( $image_id );
436+
$is_lcp_image = Optml_Manager::instance()->page_profiler->is_lcp_image_in_all_viewports( $image_id );
437437
$no_viewport_data_available = ! Optml_Manager::instance()->page_profiler->is_data_available();
438438
if ( OPTML_DEBUG ) {
439439
do_action( 'optml_log', 'Adding fetchpriority image is LCP ' . $original_url . '|' . $image_id );

inc/v2/PageProfiler/Profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public static function get_active_devices(): array {
452452
*
453453
* @return bool
454454
*/
455-
public function is_data_available(): bool {
455+
public function is_data_available(): bool {
456456
foreach ( self::get_active_devices() as $device ) {
457457
if ( empty( self::$current_profile_data[ $device ] ) ) {
458458
return false;

0 commit comments

Comments
 (0)