Skip to content

Commit

Permalink
[MAINTENANCE] Replace chr(31) with pack('C', 31) #1207
Browse files Browse the repository at this point in the history
Codacy warning about usage of chr()
  • Loading branch information
fschoelzel committed Sep 9, 2024
1 parent 2a9091b commit b7b43f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Format/Mods.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private function getProdPlaces(): void
$prodPlaceMd = $prodPlaceTerm->getValue();

if (!empty($prodPlaceTerm->getValueURI())) {
$prodPlaceMd .= chr(31) . $prodPlaceTerm->getValueURI();
$prodPlaceMd .= pack('C', 31) . $prodPlaceTerm->getValueURI();
}

$this->metadata['production_place'][] = $prodPlaceMd;
Expand Down Expand Up @@ -393,7 +393,7 @@ private function getNamePersonal(): void

$valueURI = $person->getValueURI() ?? '';

$personMd = implode(chr(31), [
$personMd = implode(pack('C', 31), [
$personDisplayForm,
$valueURI,
$roleText,
Expand Down

0 comments on commit b7b43f4

Please sign in to comment.