From 62e873dcad50e40c4ed3935f75981f04c3b520d5 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 21 Sep 2015 14:46:34 +0100 Subject: [PATCH] Fixing doc comments and minor bug --- src/Localization.php | 2 +- src/Utilities/RouteTranslator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Localization.php b/src/Localization.php index a73723e..397d850 100644 --- a/src/Localization.php +++ b/src/Localization.php @@ -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); } diff --git a/src/Utilities/RouteTranslator.php b/src/Utilities/RouteTranslator.php index 55b7293..59ecf06 100644 --- a/src/Utilities/RouteTranslator.php +++ b/src/Utilities/RouteTranslator.php @@ -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) {