| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function showConfirmation( ShowMembershipAppConfirmationRequest $request ): ShowMembershipAppConfirmationResponse { |
||
| 33 | if ( $this->authorizer->canAccessApplication( $request->getApplicationId() ) ) { |
||
| 34 | $donation = $this->getMembershipApplicationById( $request->getApplicationId() ); |
||
| 35 | |||
| 36 | if ( $donation !== null ) { |
||
| 37 | return ShowMembershipAppConfirmationResponse::newValidResponse( |
||
| 38 | $donation, |
||
| 39 | $this->tokenFetcher->getTokens( $request->getApplicationId() )->getUpdateToken() |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | return ShowMembershipAppConfirmationResponse::newNotAllowedResponse(); |
||
| 45 | } |
||
| 46 | |||
| 56 | } |