Add missing strict typing in function params
This commit is contained in:
parent
d8db941485
commit
e036d7881a
@ -93,7 +93,7 @@ final class NodaConsolidatedNamesForPlaces extends NodaConsolidatedNamesAbstract
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function _rewrite_narrower_broader_pairs_to_brackets(string $name, string $indicator, $separator = ', '):string {
|
||||
private static function _rewrite_narrower_broader_pairs_to_brackets(string $name, string $indicator, string $separator = ', '):string {
|
||||
|
||||
if (str_contains($name, $indicator)
|
||||
&& substr_count($name, $indicator) === 1
|
||||
@ -223,7 +223,7 @@ final class NodaConsolidatedNamesForPlaces extends NodaConsolidatedNamesAbstract
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function _rewrite_ukrainian_names_by_hierarchy($name):string {
|
||||
private static function _rewrite_ukrainian_names_by_hierarchy(string $name):string {
|
||||
|
||||
$identifiersByLevel = [
|
||||
'state' => [' РСР', 'РСР ', ' АРСР', 'АРСР ', ' губернія', 'губернія '],
|
||||
@ -325,7 +325,9 @@ final class NodaConsolidatedNamesForPlaces extends NodaConsolidatedNamesAbstract
|
||||
}
|
||||
|
||||
$output = $main_name;
|
||||
if (!empty($specifiers)) $output .= ' (' . implode(', ', $specifiers) . ')';
|
||||
if (!empty($specifiers)) {
|
||||
$output .= ' (' . implode(', ', $specifiers) . ')';
|
||||
}
|
||||
|
||||
return $output;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user