Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Apr 3, 2024
1 parent 5b6bce8 commit dccc425
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @param mixed $page
* @param string $text
* @param ?string $current_locale
* @return string The translated text if found, else returns the same given $text
*/
Expand Down Expand Up @@ -44,7 +43,7 @@ function current_path_locale($page): string

/**
* @param mixed $page
* @param ?string $target_locale set to the default locale if null
* @param ?string $target_locale set to the default locale if null
* @return string Places $target_locale code in the current path
*/
function translate_path($page, ?string $target_locale = null): string
Expand All @@ -66,7 +65,7 @@ function translate_path($page, ?string $target_locale = null): string

/**
* @param mixed $page
* @param ?string $target_locale set to the default locale if null
* @param ?string $target_locale set to the default locale if null
* @return string Places $target_locale code in the current url
*/
function translate_url($page, ?string $target_locale = null): string
Expand All @@ -76,8 +75,8 @@ function translate_url($page, ?string $target_locale = null): string

/**
* @param mixed $page
* @param string $partial_path A path without the language prefix
* @param ?string $target_locale uses the default locale if null
* @param string $partial_path A path without the language prefix
* @param ?string $target_locale uses the default locale if null
* @return string A path on the target locale
*/
function locale_path($page, string $partial_path, ?string $target_locale = null): string
Expand All @@ -94,8 +93,8 @@ function locale_path($page, string $partial_path, ?string $target_locale = null)

/**
* @param mixed $page
* @param string $partial_path A path without the language prefix
* @param ?string $target_locale uses the default locale if null
* @param string $partial_path A path without the language prefix
* @param ?string $target_locale uses the default locale if null
* @return string A URL on the target locale
*/
function locale_url($page, string $partial_path, ?string $target_locale = null): string
Expand Down

0 comments on commit dccc425

Please sign in to comment.