Passed
Push — master ( d68831...58f816 )
by Bruce Pinheiro de
04:28
created
src/Checkout/CheckoutClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 * @throws BadResponseException
39 39
 	 * @throws ConnectException
40 40
 	 */
41
-    function create(CheckoutInterface $checkout, AccessToken $accessToken = null):? CheckoutInterface
41
+    function create(CheckoutInterface $checkout, AccessToken $accessToken = null): ? CheckoutInterface
42 42
 	{
43 43
         return $this->request('post', $checkout) ? $checkout : null;
44 44
 	}
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	 * @throws BadResponseException
49 49
 	 * @throws ConnectException
50 50
 	 */
51
-    function complete(CheckoutInterface $checkout, AccessToken $accessToken = null):? CheckoutInterface
51
+    function complete(CheckoutInterface $checkout, AccessToken $accessToken = null): ? CheckoutInterface
52 52
 	{
53 53
         return $this->request('put', $checkout) ? $checkout : null;
54 54
 	}
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @param string|null $endpoint
60 60
 	 * @return bool|null
61 61
 	 */
62
-    function request(string $action, $checkout, string $endpoint = null):? bool
62
+    function request(string $action, $checkout, string $endpoint = null): ? bool
63 63
 	{
64 64
         if (!$checkout->isValid()) {
65 65
             throw new InvalidCheckoutException($checkout);
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     /**
202 202
      * @return AccessToken
203 203
      */
204
-    function getToken():? AccessToken
204
+    function getToken(): ? AccessToken
205 205
     {
206 206
         return $this->currentToken;
207 207
     }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     static function getCompleteUrl(CheckoutInterface $checkout): string
214 214
     {
215 215
         if ($checkout->getId()) {
216
-            return SumUp::getEntrypoint().$checkout->getId();
216
+            return SumUp::getEntrypoint() . $checkout->getId();
217 217
         }
218 218
 
219 219
         return '';
Please login to merge, or discard this patch.
src/Traits/PropertyHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     function fillProperty(string $property, $value): void
30 30
 	{
31 31
 		$property = lcfirst(str_replace('_', '', ucwords($property, '_')));
32
-		if(property_exists(__CLASS__, $property))
32
+		if (property_exists(__CLASS__, $property))
33 33
 		{
34 34
 			$method = sprintf('set%s', ucfirst($property));
35 35
 			$this->{$method}($value);
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
 		$reflection = new \ReflectionClass(__CLASS__);
45 45
 		$properties = $reflection->getProperties(\ReflectionProperty::IS_PROTECTED);
46 46
 		$data = [];
47
-		foreach($properties as $property){
47
+		foreach ($properties as $property) {
48 48
 			$prop_name = $property->getName();
49 49
 			$method = sprintf('get%s', ucfirst($prop_name));
50 50
 			$form_name = strtolower(preg_replace('/[A-Z]/', '_$0', $prop_name));
51
-			if($reflection->hasMethod($method)){
51
+			if ($reflection->hasMethod($method)) {
52 52
 				$data[$form_name] = $this->{$method}();
53 53
 			}
54 54
 		}
Please login to merge, or discard this patch.
src/Traits/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * @throws BadResponseException
30 30
      * @throws ConnectException
31 31
      */
32
-    function request(string $action, $object = null, string $endpoint = null):? bool
32
+    function request(string $action, $object = null, string $endpoint = null): ? bool
33 33
     {
34 34
         /** @var SumUpClientInterface $this */
35 35
 
Please login to merge, or discard this patch.
src/Traits/ClientInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
      * @param string|null $endpoint
18 18
      * @return bool|null
19 19
      */
20
-    function request(string $action, $object, string $endpoint = null):? bool;
20
+    function request(string $action, $object, string $endpoint = null): ? bool;
21 21
 }
Please login to merge, or discard this patch.