Skip to content

Commit

Permalink
Merge pull request #121 from digio-ch/issue/hc-246
Browse files Browse the repository at this point in the history
lint
  • Loading branch information
SebastianStorz authored May 28, 2024
2 parents 1c77d95 + bae8a71 commit 5bdc4c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/ImportFromJsonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ private function importCamps(OutputInterface $output)
$metadata->setIdGenerator(new AssignedGenerator());
}
$camp->setState($c['state']);
$camp->setLocation(mb_convert_encoding(substr($c['location'], 0, 255),'UTF-8', 'US-ASCII'));
$camp->setLocation(mb_convert_encoding(substr($c['location'], 0, 255), 'UTF-8', 'US-ASCII'));

if (isset($c['name'])) {
$camp->setName($c['name']);
Expand Down Expand Up @@ -570,7 +570,7 @@ private function importCamps(OutputInterface $output)
}

$this->em->persist($camp);
if(0 == $i % 10) {
if (0 == $i % 10) {
$this->em->flush();
}
$i++;
Expand Down

0 comments on commit 5bdc4c8

Please sign in to comment.