| @@ -52,11 +52,11 @@ discard block | ||
| 52 | 52 | |
| 53 | 53 | public function listOrganizations(Request $request, ListOrganizations $listOrganizations) | 
| 54 | 54 |      { | 
| 55 | -        $page = $request->input('start')/10 + 1; | |
| 55 | +        $page = $request->input('start')/10+1; | |
| 56 | 56 | $organizations = $listOrganizations->list($page, 10); | 
| 57 | 57 | $total = isset($organizations['total']) ? $organizations['total'] : 0; | 
| 58 | 58 | $list = []; | 
| 59 | -        foreach ($organizations['list'] as $organization){ | |
| 59 | +        foreach ($organizations['list'] as $organization) { | |
| 60 | 60 | $org = $organization->toArray(); | 
| 61 | 61 | $list[] = [ | 
| 62 | 62 | $org['name'], | 
| @@ -70,7 +70,7 @@ discard block | ||
| 70 | 70 | return format($total, $list); | 
| 71 | 71 | } | 
| 72 | 72 | |
| 73 | - public function prepareInvitation(Request $request, PrepareInvitationUsersInOrganization $prepareInvitationUsersInOrganization) | |
| 73 | + public function prepareInvitation(Request $request, PrepareInvitationUsersInOrganization $prepareInvitationUsersInOrganization) | |
| 74 | 74 |      { | 
| 75 | 75 |          $users = $request->input('users'); | 
| 76 | 76 | $users = explode(PHP_EOL, $users); | 
| @@ -97,7 +97,7 @@ discard block | ||
| 97 | 97 | public function acceptInvite(Request $request, RespondInvitationToAnOrganization $respondInvitationToAnOrganization) | 
| 98 | 98 |      { | 
| 99 | 99 |          $action = $respondInvitationToAnOrganization->respond($token = $request->input('token')); | 
| 100 | -        switch($action['action']){ | |
| 100 | +        switch ($action['action']) { | |
| 101 | 101 | case 'register': | 
| 102 | 102 | return $this->redirectToRegisterPage($request, $action); | 
| 103 | 103 | case 'accept_or_decline': |