Completed
Push — master ( 410899...675245 )
by Vladimir
01:54
created
src/Message/NotificationResponse.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
39 39
 		if( $this->getCheckoutId( ) !== $this->request->getCheckoutId( ) )
40 40
 		{
41 41
 			$this->errorMessage = 'Wrong checkout ID';
42
-		}
43
-		else if( $this->getSign( ) !== $signExpected )
42
+		} else if( $this->getSign( ) !== $signExpected )
44 43
 		{
45 44
 			$this->errorMessage = 'Failed to validate signature';
46 45
 		}
@@ -56,8 +55,7 @@  discard block
 block discarded – undo
56 55
 		if( !empty( $this->errorMessage ) )
57 56
 		{
58 57
 			return false;
59
-		}
60
-		else
58
+		} else
61 59
 		{
62 60
 			return $this->getTransactionStatus( ) === 'success';
63 61
 		}
Please login to merge, or discard this patch.