Comment out debugging lines in NodaWikidataFetcher

This commit is contained in:
Joshua Ramon Enslin 2023-08-31 16:11:37 +02:00
parent a68a03e628
commit 12a7937218
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -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] = [