Completed
Push — master ( 410899...675245 )
by Vladimir
01:54
created
src/Message/AbstractRequest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -226,8 +226,7 @@
 block discarded – undo
226 226
 		if( $this->getTestMode( ) )
227 227
 		{
228 228
 			$this->validate( 'testKey' );
229
-		} 
230
-		else
229
+		} else
231 230
 		{
232 231
 			$this->validate( 'signKey' );
233 232
 		}
Please login to merge, or discard this patch.
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.