diff --git a/src/NodaWikidataFetcher.php b/src/NodaWikidataFetcher.php index f647107..daded34 100644 --- a/src/NodaWikidataFetcher.php +++ b/src/NodaWikidataFetcher.php @@ -224,7 +224,6 @@ final class NodaWikidataFetcher { $input = str_replace("\t", " ", $input); - return $input; // Remove newlines with ensuing spaces while (strpos($input, PHP_EOL . " ") !== false) { $input = str_replace(PHP_EOL . " ", PHP_EOL, $input); @@ -629,7 +628,7 @@ final class NodaWikidataFetcher { $output = []; - $descs = []; + # $descs = []; foreach ($checkagainstLanguage as $lang) { if (!empty($languagesToFetch[$lang]) && !empty($data['sitelinks'][$lang . 'wiki']) && !empty($wikilinks[$lang])) { @@ -650,7 +649,7 @@ final class NodaWikidataFetcher { } if ($tDescription !== '') { - $descs[$lang] = $tDescription; + # $descs[$lang] = $tDescription; $desc_cleaned = self::_cleanWikidataInput($tDescription); if ($desc_cleaned !== '') { $output[$lang] = [