Passed
Push — master ( 2b0361...4b9b04 )
by Bruce Pinheiro de
02:58
created
src/SumUpClientInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,5 +68,5 @@
 block discarded – undo
68 68
     /**
69 69
      * @return AccessToken
70 70
      */
71
-    public function getToken():? AccessToken;
71
+    public function getToken(): ? AccessToken;
72 72
 }
Please login to merge, or discard this patch.
src/Customer/CustomerClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
     /**
147 147
      * @return AccessToken
148 148
      */
149
-    public function getToken():? AccessToken
149
+    public function getToken(): ? AccessToken
150 150
     {
151 151
         return $this->token;
152 152
     }
Please login to merge, or discard this patch.
src/Customer/CustomerClientInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      * @param CustomerInterface $customer
13 13
      * @return CustomerInterface
14 14
      */
15
-    public function create(CustomerInterface $customer):? CustomerInterface;
15
+    public function create(CustomerInterface $customer): ? CustomerInterface;
16 16
 
17 17
     /**
18 18
      * @param CustomerInterface $customer
Please login to merge, or discard this patch.
src/Customer/PaymentInstrument/PaymentInstrument.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      *
88 88
      * @return  string
89 89
      */
90
-    public function getToken():? string
90
+    public function getToken(): ? string
91 91
     {
92 92
         return $this->token;
93 93
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @return  bool
113 113
      */
114
-    public function getActive():? bool
114
+    public function getActive(): ? bool
115 115
     {
116 116
         return $this->active;
117 117
     }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      *
144 144
      * @return  string
145 145
      */
146
-    public function getType():? string
146
+    public function getType(): ? string
147 147
     {
148 148
         return $this->type;
149 149
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      * @see http://docs.sumup.com/rest-api/checkouts-api/#customers-payment-instruments-post
173 173
      * @return array
174 174
      */
175
-    public function getCard():? array
175
+    public function getCard(): ? array
176 176
     {
177 177
         return [
178 178
             'last_4_digits' => $this->getLast4Digits(),
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      *
186 186
      * @return  string
187 187
      */
188
-    public function getLast4Digits():? string
188
+    public function getLast4Digits(): ? string
189 189
     {
190 190
         return $this->last4Digits;
191 191
     }
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      *
210 210
      * @return  string
211 211
      */
212
-    public function getCardType():? string
212
+    public function getCardType(): ? string
213 213
     {
214 214
         return $this->cardSchema;
215 215
     }
Please login to merge, or discard this patch.
src/Customer/PaymentInstrument/PaymentInstrumentClient.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
      * @param PaymentInstrumentInterface $paymentInstrument
79 79
      * @return bool
80 80
 	 */
81
-    public function disable(PaymentInstrumentInterface $paymentInstrument):?bool
81
+    public function disable(PaymentInstrumentInterface $paymentInstrument): ?bool
82 82
     {
83
-        $uri = $this->getEndPoint().'/'.$paymentInstrument->getToken();
83
+        $uri = $this->getEndPoint() . '/' . $paymentInstrument->getToken();
84 84
 
85 85
         return $this->request('delete', $paymentInstrument, $uri);
86 86
 	}
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getEndPoint(): string
92 92
     {
93
-        return 'customers/'.$this->customer->getCustomerId().'/payment-instruments';
93
+        return 'customers/' . $this->customer->getCustomerId() . '/payment-instruments';
94 94
     }
95 95
 
96 96
 	/**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     /**
134 134
      * @return AccessToken
135 135
      */
136
-    public function getToken():? AccessToken
136
+    public function getToken(): ? AccessToken
137 137
     {
138 138
         return $this->token;
139 139
     }
Please login to merge, or discard this patch.
src/Customer/PaymentInstrument/PaymentInstrumentInterface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @return null|string
15 15
      */
16
-    public function getToken():? string;
16
+    public function getToken(): ? string;
17 17
 
18 18
     /**
19 19
      * @param null|string $token
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * @return null|string
37 37
      */
38
-    public function getType():? string;
38
+    public function getType(): ? string;
39 39
 
40 40
     /**
41 41
      * @param null|string $type
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @return array|null
48 48
      */
49
-    public function getCard():? array;
49
+    public function getCard(): ? array;
50 50
 
51 51
     /**
52 52
      * @param array|null $data
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * @return null|string
59 59
      */
60
-    public function getLast4Digits():? string;
60
+    public function getLast4Digits(): ? string;
61 61
 
62 62
     /**
63 63
      * @param null|string $digits
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @return null|string
70 70
      */
71
-    public function getCardType():? string;
71
+    public function getCardType(): ? string;
72 72
 
73 73
     /**
74 74
      * @param null|string $schema
Please login to merge, or discard this patch.
src/Checkout/CheckoutClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     static function getCompleteUrl(CheckoutInterface $checkout): string
124 124
     {
125 125
         if ($checkout->getId()) {
126
-            return SumUp::getEntrypoint().$checkout->getId();
126
+            return SumUp::getEntrypoint() . $checkout->getId();
127 127
         }
128 128
 
129 129
         return '';
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @throws BadResponseException
135 135
      * @throws ConnectException
136 136
      */
137
-    public function create(CheckoutInterface $checkout, AccessToken $accessToken = null):? CheckoutInterface
137
+    public function create(CheckoutInterface $checkout, AccessToken $accessToken = null): ? CheckoutInterface
138 138
     {
139 139
         return $this->request('post', $checkout) ? $checkout : null;
140 140
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * @param string|null $endpoint
146 146
      * @return bool|null
147 147
      */
148
-    public function request(string $action, $checkout, string $endpoint = null):? bool
148
+    public function request(string $action, $checkout, string $endpoint = null): ? bool
149 149
     {
150 150
         if (!$checkout->isValid()) {
151 151
             throw new InvalidCheckoutException($checkout);
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      * @throws BadResponseException
160 160
      * @throws ConnectException
161 161
      */
162
-    public function complete(CheckoutInterface $checkout, AccessToken $accessToken = null):? CheckoutInterface
162
+    public function complete(CheckoutInterface $checkout, AccessToken $accessToken = null): ? CheckoutInterface
163 163
     {
164 164
         return $this->request('put', $checkout) ? $checkout : null;
165 165
     }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     /**
220 220
      * @return AccessToken
221 221
      */
222
-    public function getToken():? AccessToken
222
+    public function getToken(): ? AccessToken
223 223
     {
224 224
         return $this->currentToken;
225 225
     }
Please login to merge, or discard this patch.
src/Checkout/Checkout.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 	/**
125 125
 	 * @inheritDoc
126 126
 	 */
127
-	public function getAmount():? float {
127
+	public function getAmount(): ? float {
128 128
 		return $this->amount;
129 129
 	}
130 130
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     /**
140 140
      * @inheritDoc
141 141
      */
142
-    public function getPayToEmail():? string
142
+    public function getPayToEmail(): ? string
143 143
     {
144 144
         return $this->payToEmail;
145 145
     }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	/**
158 158
 	 * @inheritDoc
159 159
 	 */
160
-	public function getCurrency():? string {
160
+	public function getCurrency(): ? string {
161 161
 		return $this->currency;
162 162
 	}
163 163
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 	/**
173 173
 	 * @inheritDoc
174 174
 	 */
175
-    public function getId():? string
175
+    public function getId(): ? string
176 176
     {
177 177
         return $this->id;
178 178
 	}
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	/**
190 190
 	 * @inheritDoc
191 191
 	 */
192
-    public function getStatus():? string
192
+    public function getStatus(): ? string
193 193
     {
194 194
         return $this->status;
195 195
 	}
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     /**
207 207
      * @inheritDoc
208 208
      */
209
-    public function getCheckoutReference():? string
209
+    public function getCheckoutReference(): ? string
210 210
     {
211 211
         return $this->reference;
212 212
     }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	/**
215 215
 	 * @inheritDoc
216 216
 	 */
217
-	public function getDescription():? string {
217
+	public function getDescription(): ? string {
218 218
 		return $this->description;
219 219
 	}
220 220
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 	/**
230 230
 	 * @inheritDoc
231 231
 	 */
232
-	public function getFeeAmount():? float {
232
+	public function getFeeAmount(): ? float {
233 233
 		return $this->feeAmount;
234 234
 	}
235 235
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 	/**
245 245
 	 * @inheritDoc
246 246
 	 */
247
-	public function getPayFromEmail():? string {
247
+	public function getPayFromEmail(): ? string {
248 248
 		return $this->payFromEmail;
249 249
 	}
250 250
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 	/**
260 260
 	 * @inheritDoc
261 261
 	 */
262
-	public function getRedirectUrl():? string {
262
+	public function getRedirectUrl(): ? string {
263 263
 		return $this->redirectUrl;
264 264
 	}
265 265
 
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 		return $this;
272 272
 	}
273 273
 
274
-    public function getValidUntil():? string
274
+    public function getValidUntil(): ? string
275 275
     {
276 276
 		return $this->validUntil;
277 277
 	}
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 		return $this;
283 283
 	}
284 284
 
285
-    public function getTransactionCode():? string
285
+    public function getTransactionCode(): ? string
286 286
     {
287 287
 		return $this->transactionCode;
288 288
 	}
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 		return $this;
294 294
 	}
295 295
 
296
-    public function getTransactionId():? string
296
+    public function getTransactionId(): ? string
297 297
     {
298 298
 		return $this->transactionId;
299 299
 	}
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 		return $this;
305 305
 	}
306 306
 
307
-    public function getTransactions():? array
307
+    public function getTransactions(): ? array
308 308
     {
309 309
 //        return $this->transactions;
310 310
 		//TODO remember myself whats is it.
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 		return $this;
319 319
 	}
320 320
 
321
-    public function getToken():? string
321
+    public function getToken(): ? string
322 322
     {
323 323
 		return $this->token;
324 324
 	}
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 	/**
380 380
 	 * @return mixed
381 381
 	 */
382
-	public function getType():? string
382
+	public function getType(): ? string
383 383
 	{
384 384
 		return $this->type;
385 385
 	}
Please login to merge, or discard this patch.
src/Checkout/CheckoutInterface.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
 	/**
43 43
 	 * @return float
44 44
 	 */
45
-    public function getAmount():? float;
45
+    public function getAmount(): ? float;
46 46
 
47 47
 	/**
48 48
 	 * @return float|null
49 49
 	 */
50
-    public function getFeeAmount():? float;
50
+    public function getFeeAmount(): ? float;
51 51
 
52 52
 	/**
53 53
 	 * @param float $amount
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	/**
147 147
 	 * @return string
148 148
 	 */
149
-    public function getValidUntil():? string;
149
+    public function getValidUntil(): ? string;
150 150
 
151 151
 	/**
152 152
 	 * @param string $timestamp
@@ -212,10 +212,10 @@  discard block
 block discarded – undo
212 212
 	/**
213 213
 	 * @return null|string
214 214
 	 */
215
-    public function getType():? string;
215
+    public function getType(): ? string;
216 216
 
217
-    public function setInstallments(?string $installments):? self;
217
+    public function setInstallments(?string $installments): ? self;
218 218
 
219
-    public function getInstallments():? string;
219
+    public function getInstallments(): ? string;
220 220
 
221 221
 }
Please login to merge, or discard this patch.