From bc01761221384c0bbac0297d38e85bcaa6286a9a Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Mon, 28 Sep 2020 21:07:24 +0200 Subject: Fix repair step and test it Signed-off-by: Sean Molenaar --- lib/Explore/RecommendedSites.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/Explore') diff --git a/lib/Explore/RecommendedSites.php b/lib/Explore/RecommendedSites.php index 504d63497..38fa510da 100644 --- a/lib/Explore/RecommendedSites.php +++ b/lib/Explore/RecommendedSites.php @@ -22,13 +22,20 @@ class RecommendedSites * @param string $exploreDir the absolute path to where the recommendation * config files lie without a trailing slash */ - public function __construct($exploreDir) + public function __construct(string $exploreDir) { $this->directory = $exploreDir; } - public function forLanguage($languageCode) + /** + * @param string $languageCode + * + * @return array + * + * @throws RecommendedSiteNotFoundException + */ + public function forLanguage(string $languageCode) { $file = $this->directory . '/feeds.' . $languageCode . '.json'; -- cgit v1.2.3