Skip to content

Commit

Permalink
Merge pull request #38 from silinternational/develop
Browse files Browse the repository at this point in the history
Release 0.8.1
  • Loading branch information
mtompset authored Aug 24, 2020
2 parents 34c2d57 + 273193c commit 165c63a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions SilMock/Google/Service/Directory/VerificationCodesResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ public function listVerificationCodes($userKey)
$key,
$userKey
);
$verificationCodeData = $data[0]['data'];
$decodedVerificationCodeData = json_decode($verificationCodeData, true);
unset($decodedVerificationCodeData['primaryEmail']);

$verificationCodes = new \Google_Service_Directory_VerificationCodes();
ObjectUtils::initialize($verificationCodes, $decodedVerificationCodeData['data']);
if (! empty($data)) {
$verificationCodeData = $data[0]['data'];
$decodedVerificationCodeData = json_decode($verificationCodeData, true);
unset($decodedVerificationCodeData['primaryEmail']);

ObjectUtils::initialize($verificationCodes, $decodedVerificationCodeData['data']);
}
return $verificationCodes;
}

Expand Down

0 comments on commit 165c63a

Please sign in to comment.