Skip to content

Commit

Permalink
coding standard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-stanek authored Feb 22, 2020
1 parent 682a9ee commit 17313ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Services/SkautIsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,15 @@ public function getValidMembership(int $personId) : ?stdClass
'IsValid' => true,
]);

if (empty((array) $membership)) { // todo: odstranit pretypovani po update skautis/nette
if (empty((array) $membership)) { // todo: odstranit obe pretypovani (array) po update skautis/nette
$membership = $this->skautIs->org->MembershipAllPerson([
'ID_Login' => $this->skautIs->getUser()->getLoginId(),
'ID_Person' => $personId,
'ID_MembershipType' => 'cestne',
'IsValid' => true,
]);

if (empty((array) $membership)) { // todo: odstranit pretypovani po update skautis/nette

if (empty((array) $membership)) {
return null;
}
}
Expand Down

0 comments on commit 17313ac

Please sign in to comment.