Completed
Push — master ( d308f6...9403bf )
by
unknown
08:42 queued 31s
created
src/Models/Entities/Agent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace AcquiroPay\Models\Entities;
6 6
 
Please login to merge, or discard this patch.
src/Services/Entities.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace AcquiroPay\Services;
6 6
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param array $parameters
92 92
      * @return Country|null
93 93
      */
94
-    public function getCountry(int $id, array $parameters = []): ?Country
94
+    public function getCountry(int $id, array $parameters = []): ? Country
95 95
     {
96 96
         return $this->getEntity(new Country(), $id, $parameters);
97 97
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param array $parameters
104 104
      * @return Currency|null
105 105
      */
106
-    public function getCurrency(int $id, array $parameters = []): ?Currency
106
+    public function getCurrency(int $id, array $parameters = []): ? Currency
107 107
     {
108 108
         return $this->getEntity(new Currency(), $id, $parameters);
109 109
     }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * @param array $parameters
116 116
      * @return Product|null
117 117
      */
118
-    public function getProduct(int $id, array $parameters = []): ?Product
118
+    public function getProduct(int $id, array $parameters = []): ? Product
119 119
     {
120 120
         return $this->getEntity(new Product(), $id, $parameters);
121 121
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param array $parameters
128 128
      * @return Site|null
129 129
      */
130
-    public function getSite(int $productId, array $parameters = []): ?Site
130
+    public function getSite(int $productId, array $parameters = []): ? Site
131 131
     {
132 132
         $url = $this->resources[Product::class].'/'.$productId.'/site';
133 133
         $resp = $this->makeGetRequest($url, $parameters);
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
      * @param array $parameters
143 143
      * @return Merchant|null
144 144
      */
145
-    public function getMerchant(int $productId, array $parameters = []): ?Merchant
145
+    public function getMerchant(int $productId, array $parameters = []): ? Merchant
146 146
     {
147
-        $url = $this->resources[Product::class] . '/' . $productId . '/merchant';
147
+        $url = $this->resources[Product::class].'/'.$productId.'/merchant';
148 148
         $resp = $this->makeGetRequest($url, $parameters);
149 149
 
150 150
         return $this->response2Entity($resp, new Merchant());
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         return collect();
197 197
     }
198 198
 
199
-    protected function getEntity(Entity $entity, $id, array $params): ?Entity
199
+    protected function getEntity(Entity $entity, $id, array $params): ? Entity
200 200
     {
201 201
         $resp = $this->get(get_class($entity), $id, $params);
202 202
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         return $response ?? new stdClass();
226 226
     }
227 227
 
228
-    protected function response2Entity($resp, Entity $entity): ?Entity
228
+    protected function response2Entity($resp, Entity $entity): ? Entity
229 229
     {
230 230
         if (isset($resp->result)) {
231 231
             $this->mapper->map($resp->result, $entity);
Please login to merge, or discard this patch.