@@ -346,7 +346,7 @@ public function execute(BaseAction $action): void
346346 $ message = MessageBuilder::create ()->add ($ requestSegments );
347347
348348 // Add HKTAN for authentication if necessary.
349- if (!( $ this ->getSelectedTanMode () instanceof NoPsd2TanMode) ) {
349+ if (!$ this ->getSelectedTanMode () instanceof NoPsd2TanMode) {
350350 if (($ needTanForSegment = $ action ->getNeedTanForSegment ()) !== null ) {
351351 $ message ->add (HKTANFactory::createProzessvariante2Step1 (
352352 $ this ->requireTanMode (), $ this ->selectedTanMedium , $ needTanForSegment ));
@@ -421,11 +421,10 @@ private function processServerResponse(BaseAction $action, Message $response, ?H
421421 if ($ confirmationRequest ->getVerificationResult () === VopVerificationResult::CompletedFullMatch) {
422422 // If someone hits this branch in practice, we can implement it.
423423 throw new UnsupportedException ('Combined VOP match confirmation and TAN request ' );
424- } else {
425- throw new UnexpectedResponseException (
426- 'Unexpected TAN request on VOP result: ' . $ confirmationRequest ->getVerificationResult ()
427- );
428424 }
425+ throw new UnexpectedResponseException (
426+ 'Unexpected TAN request on VOP result: ' . $ confirmationRequest ->getVerificationResult ()
427+ );
429428 }
430429 }
431430 }
@@ -684,7 +683,7 @@ public function pollAction(BaseAction $action): void
684683 public function confirmVop (BaseAction $ action ): void
685684 {
686685 $ vopConfirmationRequest = $ action ->getVopConfirmationRequest ();
687- if (!( $ vopConfirmationRequest instanceof VopConfirmationRequestImpl) ) {
686+ if (!$ vopConfirmationRequest instanceof VopConfirmationRequestImpl) {
688687 throw new \InvalidArgumentException ('Unexpected type: ' . gettype ($ vopConfirmationRequest ));
689688 }
690689 // We need to send the original request again, plus HKVPA as the confirmation.
@@ -697,7 +696,7 @@ public function confirmVop(BaseAction $action): void
697696 ->add (VopHelper::createHKVPAForConfirmation ($ vopConfirmationRequest ));
698697
699698 // Add HKTAN for authentication if necessary.
700- if (!( $ this ->getSelectedTanMode () instanceof NoPsd2TanMode) ) {
699+ if (!$ this ->getSelectedTanMode () instanceof NoPsd2TanMode) {
701700 if (($ needTanForSegment = $ action ->getNeedTanForSegment ()) !== null ) {
702701 $ message ->add (HKTANFactory::createProzessvariante2Step1 (
703702 $ this ->requireTanMode (), $ this ->selectedTanMedium , $ needTanForSegment ));
@@ -930,7 +929,7 @@ private function ensureSynchronized(): void
930929 // banks that don't support PSD2, we just keep the dummy TAN mode, as they wouldn't even understand 999.
931930 $ oldTanMode = $ this ->selectedTanMode ;
932931 $ oldTanMedium = $ this ->selectedTanMedium ;
933- if (!( $ this ->selectedTanMode instanceof NoPsd2TanMode) ) {
932+ if (!$ this ->selectedTanMode instanceof NoPsd2TanMode) {
934933 $ this ->selectedTanMode = null ;
935934 }
936935 $ this ->selectedTanMedium = null ;
0 commit comments