Skip to content

Commit

Permalink
SUPPORT-46355 Fixes from MR
Browse files Browse the repository at this point in the history
  • Loading branch information
michalblocinski committed Aug 16, 2022
1 parent 63c58fe commit e1d60e3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Paysera/WalletApi/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1483,11 +1483,11 @@ public function decodeUser($data)
$this->setProperty($user, 'locale', $data['locale']);
}
if (isset($data['pep'])) {
$result = array();
$peps = [];
foreach ($data['pep'] as $pep) {
$result[] = $this->decodePep($pep);
$peps[] = $this->decodePep($pep);
}
$this->setProperty($user, 'politicallyExposedPersons', $result);
$this->setProperty($user, 'politicallyExposedPersons', $peps);
}

return $user;
Expand Down Expand Up @@ -1516,13 +1516,13 @@ public function decodePep($data)
*/
public function decodePes($data)
{
$result = [];
$pes = [];

foreach ($data as $item) {
$result[] = $this->decodePep($item);
$pes[] = $this->decodePep($item);
}

return $result;
return $pes;
}

/**
Expand Down

0 comments on commit e1d60e3

Please sign in to comment.