Test Failed
Push — main ( 28b955...362ef3 )
by Reüel
14:17 queued 10s
created
tests/src/GatewayTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	 * @param string $file File with HTTP response.
50 50
 	 */
51 51
 	public function mock_http_response( $url, $file ) {
52
-		$this->mock_http_responses[ $url ] = $file;
52
+		$this->mock_http_responses[$url] = $file;
53 53
 	}
54 54
 
55 55
 	/**
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
 	 * @return array<string, mixed>
63 63
 	 */
64 64
 	public function pre_http_request( $preempt, $r, $url ) {
65
-		if ( ! isset( $this->mock_http_responses[ $url ] ) ) {
65
+		if ( ! isset( $this->mock_http_responses[$url] ) ) {
66 66
 			return $preempt;
67 67
 		}
68 68
 
69
-		$file = $this->mock_http_responses[ $url ];
69
+		$file = $this->mock_http_responses[$url];
70 70
 
71
-		unset( $this->mock_http_responses[ $url ] );
71
+		unset( $this->mock_http_responses[$url] );
72 72
 
73 73
 		$response = \file_get_contents( $file, true );
74 74
 
Please login to merge, or discard this patch.
tests/src/ResultCodeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 			array( ResultCode::WAITING, PaymentStatus::OPEN ),
55 55
 			array( ResultCode::PENDING, PaymentStatus::OPEN ),
56 56
 			array( ResultCode::TIMEOUT, PaymentStatus::EXPIRED ),
57
-			array( -1000, null ),
57
+			array( - 1000, null ),
58 58
 		);
59 59
 	}
60 60
 }
Please login to merge, or discard this patch.