Passed
Pull Request — master (#2)
by Andreas
01:34
created
src/GatewayFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public static function create($name, array $options = [])
42 42
     {
43
-        $gateway = self::GATEWAY_NAMESPACE . $name;
43
+        $gateway = self::GATEWAY_NAMESPACE.$name;
44 44
 
45 45
         if (class_exists($gateway)) {
46 46
             return new $gateway($options);
Please login to merge, or discard this patch.
src/TransactionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 
162 162
         if ($this->transactionInstance instanceof Transaction\Sale) {
163 163
             foreach (self::$saleMethods as $prop) {
164
-                $method = 'set' . (ucwords($prop));
164
+                $method = 'set'.(ucwords($prop));
165 165
                 $this->transactionInstance->$method($this->$prop);
166 166
             }
167 167
         }
Please login to merge, or discard this patch.
src/Client/RestClient.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,22 +31,22 @@  discard block
 block discarded – undo
31 31
         $this->headers[$name] = $value;
32 32
     }
33 33
 
34
-    public function get(string $id = null, string|array $payload = ''): array
34
+    public function get(string $id = null, string | array $payload = ''): array
35 35
     {
36 36
         $uri = $this->getUri($id);
37 37
         if ($query = $this->normalizePayload($payload)) {
38
-            $uri = $uri . '?' . ltrim($query, '?');
38
+            $uri = $uri.'?'.ltrim($query, '?');
39 39
         }
40 40
 
41 41
         return $this->request($uri, 'GET');
42 42
     }
43 43
 
44
-    public function post(string|array $payload): array
44
+    public function post(string | array $payload): array
45 45
     {
46 46
         return $this->request($this->getUri(), 'POST', $payload);
47 47
     }
48 48
 
49
-    public function put(string $id, string|array $payload = ''): array
49
+    public function put(string $id, string | array $payload = ''): array
50 50
     {
51 51
         $uri = $this->getUri($id);
52 52
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     private function request(
57 57
         string $uri,
58 58
         string $method,
59
-        string|array $payload = ''
59
+        string | array $payload = ''
60 60
     ): array {
61 61
         $factory = Psr17FactoryDiscovery::findRequestFactory();
62 62
         $request = $factory->createRequest(
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         return $request;
136 136
     }
137 137
 
138
-    private function normalizePayload(string|array $payload): string
138
+    private function normalizePayload(string | array $payload): string
139 139
     {
140 140
         if (is_string($payload)) {
141 141
             return $payload;
Please login to merge, or discard this patch.