Skip to content

Commit e291ff4

Browse files
committed
Refactor URL formatting comments in render.php files of interactivity-router plugin for clarity. Removed trailing periods in comments to maintain consistency and improve readability.
1 parent d217615 commit e291ff4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

plugins/interactivity-router-2f43f8/build/render.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
),
2424
);
2525

26+
2627
if ( ! function_exists( 'format_url' ) ) {
2728
// Helper function to properly format URLs.
2829
$format_url = function ( $base, $path ) {
@@ -38,7 +39,7 @@
3839
// Example: "/john-lennon" → "john-lennon" .
3940
$path_clean = ltrim( $path_no_trailing, '/' );
4041

41-
// Combine base URL with cleaned path.
42+
// Combine base URL with cleaned path
4243
// Result: "https://example.com/" + "john-lennon" = "https://example.com/john-lennon" .
4344
return $base_with_slash . $path_clean;
4445
};
@@ -54,6 +55,7 @@
5455
'router-2f43f8',
5556
$state,
5657
);
58+
5759
?>
5860

5961
<div

plugins/interactivity-router-2f43f8/src/render.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
),
2424
);
2525

26+
2627
if ( ! function_exists( 'format_url' ) ) {
2728
// Helper function to properly format URLs.
2829
$format_url = function ( $base, $path ) {
@@ -38,7 +39,7 @@
3839
// Example: "/john-lennon" → "john-lennon" .
3940
$path_clean = ltrim( $path_no_trailing, '/' );
4041

41-
// Combine base URL with cleaned path.
42+
// Combine base URL with cleaned path
4243
// Result: "https://example.com/" + "john-lennon" = "https://example.com/john-lennon" .
4344
return $base_with_slash . $path_clean;
4445
};
@@ -54,6 +55,7 @@
5455
'router-2f43f8',
5556
$state,
5657
);
58+
5759
?>
5860

5961
<div

0 commit comments

Comments
 (0)