Skip to content

Commit

Permalink
Fixing doc comments and minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Sep 21, 2015
1 parent 33a7f9c commit 62e873d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Localization.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public function getLocalizedURL($locale = null, $url = null, $attributes = [])
$baseUrl, $parsedUrl, $this->getDefaultLocale(), $this->getSupportedLocales()
);

if ($translatedRoute) {
if ($translatedRoute !== false) {
return $this->getUrlFromRouteName($locale, $translatedRoute, $attributes);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Utilities/RouteTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function getRouteNameFromPath($uri, $locale)
* @param string $path - Path to check if it is a translated route
* @param string $locale - Language to check if the path exists
*
* @return string|false
* @return false|string
*/
public function findTranslatedRouteByPath($path, $locale)
{
Expand Down

0 comments on commit 62e873d

Please sign in to comment.