Subversion Repositories oidinfo_api

Compare Revisions

No changes between revisions

Regard whitespace Rev 27 → Rev 28

/trunk/oidinfo_api.inc.phps
2,8 → 2,8
 
/*
* OID-Info.com API for PHP
* Copyright 2019-2021 Daniel Marschall, ViaThinkSoft
* Version 2021-12-08
* Copyright 2019-2022 Daniel Marschall, ViaThinkSoft
* Version 2022-01-10
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
652,9 → 652,17
 
// TODO: if name is empty, but address has 1 line, take it as firstname (but remove hyperlink)
 
$ignore_current_registrant = false;
$test_keys = array_keys($elements['current-registrant']);
if ((count($test_keys) == 1) && ($test_keys[0] == 'modification-date')) {
// Modification dates without information about the current RA which are rejected by the OID repository
$ignore_current_registrant = true;
}
 
$out_loc = '';
foreach ($elements as $name => $val) {
if (($name == 'first-registrant') || ($name == 'current-registrant')) {
if (($name != 'current-registrant') || !$ignore_current_registrant) {
$out_loc2 = '';
foreach ($val as $name2 => $val2) {
if (is_null($val2)) continue;
682,6 → 690,7
$out_loc .= $out_loc2;
$out_loc .= "\t\t</$name>\n";
}
}
} else {
// if (is_null($val)) continue;
if (empty($val) && ($name != 'description')) continue; // description is mandatory, according to http://oid-info.com/oid.xsd
/trunk/phpstan.neon.dist
10,4 → 10,5
- .phpstan.tmp
tmpDir: .phpstan.tmp
ignoreErrors:
- '#is always (true|false)\.#'
- '#Call to function assert\(\) with false will always evaluate to false\.#'
/trunk/.
Property changes:
Modified: svn:ignore
.phpstan.tmp
+phpstan.neon