diff --git a/src/NodaConsolidatedNamesForPlaces.php b/src/NodaConsolidatedNamesForPlaces.php index 462f962..622873c 100644 --- a/src/NodaConsolidatedNamesForPlaces.php +++ b/src/NodaConsolidatedNamesForPlaces.php @@ -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;