Passed
Push — main ( 061772...28b955 )
by Remco
07:49 queued 12s
created
src/Gateway.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 	 * Is payment method required to start transaction?
93 93
 	 *
94 94
 	 * @see Core_Gateway::payment_method_is_required()
95
-	 * @return true
95
+	 * @return boolean
96 96
 	 */
97 97
 	public function payment_method_is_required() {
98 98
 		return true;
Please login to merge, or discard this patch.
src/TrackingCode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 	/**
47 47
 	 * From ID.
48 48
 	 *
49
-	 * @param string|int $id ID.
49
+	 * @param integer $id ID.
50 50
 	 * @return self
51 51
 	 */
52 52
 	public static function from_id( $id ) {
Please login to merge, or discard this patch.
src/ResponseHeader.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 			\JsonSchema\Constraints\Constraint::CHECK_MODE_EXCEPTIONS
54 54
 		);
55 55
 
56
-        /* phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase */
56
+		/* phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase */
57 57
 		return new self( $object->requestTimestamp );
58 58
 	}
59 59
 
Please login to merge, or discard this patch.
src/Error.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 			\JsonSchema\Constraints\Constraint::CHECK_MODE_EXCEPTIONS
61 61
 		);
62 62
 
63
-        /* phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase */
63
+		/* phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase */
64 64
 		return new self( $object->code, $object->message, $object->detailedMessage );
65 65
 	}
66 66
 
Please login to merge, or discard this patch.
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.