Completed
Push — master ( b9b966...20dba5 )
by Vladimir
02:14
created
src/Contracts/Entities.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\Contracts;
6 6
 
Please login to merge, or discard this patch.
src/Models/Entities/Entity.php 1 patch
Spacing   +2 added lines, -2 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\Models\Entities;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * @return int|null
21 21
      */
22
-    public function getId(): ?int
22
+    public function getId(): ? int
23 23
     {
24 24
         return $this->id;
25 25
     }
Please login to merge, or discard this patch.
src/Models/Pagination/Paginator.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\Pagination;
6 6
 
Please login to merge, or discard this patch.
src/Models/Pagination/Meta.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\Pagination;
6 6
 
Please login to merge, or discard this patch.
src/Models/Entities/Tariff.php 1 patch
Spacing   +7 added lines, -7 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\Models\Entities;
6 6
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @return string
26 26
      */
27
-    public function getDescription(): ?string
27
+    public function getDescription(): ? string
28 28
     {
29 29
         return $this->description;
30 30
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @param string $description
34 34
      */
35
-    public function setDescription(?string $description)
35
+    public function setDescription(? string $description)
36 36
     {
37 37
         $this->description = $description;
38 38
     }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * @return string
42 42
      */
43
-    public function getPeriod(): ?string
43
+    public function getPeriod(): ? string
44 44
     {
45 45
         return $this->period;
46 46
     }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * @param string $period
50 50
      */
51
-    public function setPeriod(?string $period)
51
+    public function setPeriod(? string $period)
52 52
     {
53 53
         $this->period = $period;
54 54
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * @return string
58 58
      */
59
-    public function getStartPeriod(): ?string
59
+    public function getStartPeriod(): ? string
60 60
     {
61 61
         return $this->startPeriod;
62 62
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * @param string $startPeriod
66 66
      */
67
-    public function setStartPeriod(?string $startPeriod)
67
+    public function setStartPeriod(? string $startPeriod)
68 68
     {
69 69
         $this->startPeriod = $startPeriod;
70 70
     }
Please login to merge, or discard this patch.
src/Models/Entities/Site.php 1 patch
Spacing   +29 added lines, -29 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\Models\Entities;
6 6
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     /**
80 80
      * @return int
81 81
      */
82
-    public function getShowLanguage(): ?int
82
+    public function getShowLanguage(): ? int
83 83
     {
84 84
         return $this->showLanguage;
85 85
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * @param int $showLanguage
89 89
      */
90
-    public function setShowLanguage(?int $showLanguage)
90
+    public function setShowLanguage(? int $showLanguage)
91 91
     {
92 92
         $this->showLanguage = $showLanguage;
93 93
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * @return string
97 97
      */
98
-    public function getSiteLanguage(): ?string
98
+    public function getSiteLanguage(): ? string
99 99
     {
100 100
         return $this->siteLanguage;
101 101
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * @param string $siteLanguage
105 105
      */
106
-    public function setSiteLanguage(?string $siteLanguage)
106
+    public function setSiteLanguage(? string $siteLanguage)
107 107
     {
108 108
         $this->siteLanguage = $siteLanguage;
109 109
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * @return int|null
113 113
      */
114
-    public function getMerchantId(): ?int
114
+    public function getMerchantId(): ? int
115 115
     {
116 116
         return $this->merchantId;
117 117
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * @param int|null $merchantId
121 121
      */
122
-    public function setMerchantId(?int $merchantId)
122
+    public function setMerchantId(? int $merchantId)
123 123
     {
124 124
         $this->merchantId = $merchantId;
125 125
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * @return string
129 129
      */
130
-    public function getStatus(): ?string
130
+    public function getStatus(): ? string
131 131
     {
132 132
         return $this->status;
133 133
     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     /**
136 136
      * @param string $status
137 137
      */
138
-    public function setStatus(?string $status)
138
+    public function setStatus(? string $status)
139 139
     {
140 140
         $this->status = $status;
141 141
     }
@@ -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
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * @param string $type
153 153
      */
154
-    public function setType(?string $type)
154
+    public function setType(? string $type)
155 155
     {
156 156
         $this->type = $type;
157 157
     }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * @return string
161 161
      */
162
-    public function getUrl(): ?string
162
+    public function getUrl(): ? string
163 163
     {
164 164
         return $this->url;
165 165
     }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     /**
168 168
      * @param string $url
169 169
      */
170
-    public function setUrl(?string $url)
170
+    public function setUrl(? string $url)
171 171
     {
172 172
         $this->url = $url;
173 173
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * @return string
177 177
      */
178
-    public function getShortName(): ?string
178
+    public function getShortName(): ? string
179 179
     {
180 180
         return $this->shortName;
181 181
     }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     /**
184 184
      * @param string $shortName
185 185
      */
186
-    public function setShortName(?string $shortName)
186
+    public function setShortName(? string $shortName)
187 187
     {
188 188
         $this->shortName = $shortName;
189 189
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     /**
192 192
      * @return int
193 193
      */
194
-    public function getDesignId(): ?int
194
+    public function getDesignId(): ? int
195 195
     {
196 196
         return $this->designId;
197 197
     }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     /**
200 200
      * @param int $designId
201 201
      */
202
-    public function setDesignId(?int $designId)
202
+    public function setDesignId(? int $designId)
203 203
     {
204 204
         $this->designId = $designId;
205 205
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     /**
208 208
      * @return int
209 209
      */
210
-    public function getAntifraudId(): ?int
210
+    public function getAntifraudId(): ? int
211 211
     {
212 212
         return $this->antifraudId;
213 213
     }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     /**
216 216
      * @param int $antifraudId
217 217
      */
218
-    public function setAntifraudId(?int $antifraudId)
218
+    public function setAntifraudId(? int $antifraudId)
219 219
     {
220 220
         $this->antifraudId = $antifraudId;
221 221
     }
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * @return string
225 225
      */
226
-    public function getOfferCountry(): ?string
226
+    public function getOfferCountry(): ? string
227 227
     {
228 228
         return $this->offerCountry;
229 229
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     /**
232 232
      * @param string $offerCountry
233 233
      */
234
-    public function setOfferCountry(?string $offerCountry)
234
+    public function setOfferCountry(? string $offerCountry)
235 235
     {
236 236
         $this->offerCountry = $offerCountry;
237 237
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     /**
240 240
      * @return int
241 241
      */
242
-    public function getTariffId(): ?int
242
+    public function getTariffId(): ? int
243 243
     {
244 244
         return $this->tariffId;
245 245
     }
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
     /**
248 248
      * @param int $tariffId
249 249
      */
250
-    public function setTariffId(?int $tariffId)
250
+    public function setTariffId(? int $tariffId)
251 251
     {
252 252
         $this->tariffId = $tariffId;
253 253
     }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * @return string
257 257
      */
258
-    public function getXFrameOption(): ?string
258
+    public function getXFrameOption(): ? string
259 259
     {
260 260
         return $this->xFrameOption;
261 261
     }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     /**
264 264
      * @param string $xFrameOption
265 265
      */
266
-    public function setXFrameOption(?string $xFrameOption)
266
+    public function setXFrameOption(? string $xFrameOption)
267 267
     {
268 268
         $this->xFrameOption = $xFrameOption;
269 269
     }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     /**
272 272
      * @return string
273 273
      */
274
-    public function getUrlAlias(): ?string
274
+    public function getUrlAlias(): ? string
275 275
     {
276 276
         return $this->urlAlias;
277 277
     }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     /**
280 280
      * @param string $urlAlias
281 281
      */
282
-    public function setUrlAlias(?string $urlAlias)
282
+    public function setUrlAlias(? string $urlAlias)
283 283
     {
284 284
         $this->urlAlias = $urlAlias;
285 285
     }
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
     /**
288 288
      * @return Tariff
289 289
      */
290
-    public function getTariff(): ?Tariff
290
+    public function getTariff(): ? Tariff
291 291
     {
292 292
         return $this->tariff;
293 293
     }
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     /**
296 296
      * @param Tariff $tariff
297 297
      */
298
-    public function setTariff(?Tariff $tariff)
298
+    public function setTariff(? Tariff $tariff)
299 299
     {
300 300
         $this->tariff = $tariff;
301 301
     }
Please login to merge, or discard this patch.
src/Models/Entities/Merchant.php 1 patch
Spacing   +31 added lines, -31 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\Models\Entities;
6 6
 
@@ -43,92 +43,92 @@  discard block
 block discarded – undo
43 43
         $this->name = $name;
44 44
     }
45 45
 
46
-    public function getSiteLanguage(): ?string
46
+    public function getSiteLanguage(): ? string
47 47
     {
48 48
         return $this->siteLanguage;
49 49
     }
50 50
 
51
-    public function setSiteLanguage(?string $siteLanguage): void
51
+    public function setSiteLanguage(? string $siteLanguage) : void
52 52
     {
53 53
         $this->siteLanguage = $siteLanguage;
54 54
     }
55 55
 
56
-    public function getStatus(): ?string
56
+    public function getStatus(): ? string
57 57
     {
58 58
         return $this->status;
59 59
     }
60 60
 
61
-    public function setStatus(?string $status): void
61
+    public function setStatus(? string $status) : void
62 62
     {
63 63
         $this->status = $status;
64 64
     }
65 65
 
66
-    public function getType(): ?string
66
+    public function getType(): ? string
67 67
     {
68 68
         return $this->type;
69 69
     }
70 70
 
71
-    public function setType(?string $type): void
71
+    public function setType(? string $type) : void
72 72
     {
73 73
         $this->type = $type;
74 74
     }
75 75
 
76
-    public function getDescription(): ?string
76
+    public function getDescription(): ? string
77 77
     {
78 78
         return $this->description;
79 79
     }
80 80
 
81
-    public function setDescription(?string $description): void
81
+    public function setDescription(? string $description) : void
82 82
     {
83 83
         $this->description = $description;
84 84
     }
85 85
 
86
-    public function getAddress(): ?string
86
+    public function getAddress(): ? string
87 87
     {
88 88
         return $this->address;
89 89
     }
90 90
 
91
-    public function setAddress(?string $address): void
91
+    public function setAddress(? string $address) : void
92 92
     {
93 93
         $this->address = $address;
94 94
     }
95 95
 
96
-    public function getContactName(): ?string
96
+    public function getContactName(): ? string
97 97
     {
98 98
         return $this->contactName;
99 99
     }
100 100
 
101
-    public function setContactName(?string $contactName): void
101
+    public function setContactName(? string $contactName) : void
102 102
     {
103 103
         $this->contactName = $contactName;
104 104
     }
105 105
 
106
-    public function getEmail(): ?string
106
+    public function getEmail(): ? string
107 107
     {
108 108
         return $this->email;
109 109
     }
110 110
 
111
-    public function setEmail(?string $email): void
111
+    public function setEmail(? string $email) : void
112 112
     {
113 113
         $this->email = $email;
114 114
     }
115 115
 
116
-    public function getPhone(): ?string
116
+    public function getPhone(): ? string
117 117
     {
118 118
         return $this->phone;
119 119
     }
120 120
 
121
-    public function setPhone(?string $phone): void
121
+    public function setPhone(? string $phone) : void
122 122
     {
123 123
         $this->phone = $phone;
124 124
     }
125 125
 
126
-    public function getFax(): ?string
126
+    public function getFax(): ? string
127 127
     {
128 128
         return $this->fax;
129 129
     }
130 130
 
131
-    public function setFax(?string $fax): void
131
+    public function setFax(? string $fax) : void
132 132
     {
133 133
         $this->fax = $fax;
134 134
     }
@@ -143,22 +143,22 @@  discard block
 block discarded – undo
143 143
         $this->registrationDate = $registrationDate;
144 144
     }
145 145
 
146
-    public function getMerchantDomain(): ?string
146
+    public function getMerchantDomain(): ? string
147 147
     {
148 148
         return $this->merchantDomain;
149 149
     }
150 150
 
151
-    public function setMerchantDomain(?string $merchantDomain): void
151
+    public function setMerchantDomain(? string $merchantDomain) : void
152 152
     {
153 153
         $this->merchantDomain = $merchantDomain;
154 154
     }
155 155
 
156
-    public function getSubdomain(): ?string
156
+    public function getSubdomain(): ? string
157 157
     {
158 158
         return $this->subdomain;
159 159
     }
160 160
 
161
-    public function setSubdomain(?string $subdomain): void
161
+    public function setSubdomain(? string $subdomain) : void
162 162
     {
163 163
         $this->subdomain = $subdomain;
164 164
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $this->agentId = $agentId;
174 174
     }
175 175
 
176
-    public function getAgent(): ?Agent
176
+    public function getAgent(): ? Agent
177 177
     {
178 178
         return $this->agent;
179 179
     }
@@ -193,37 +193,37 @@  discard block
 block discarded – undo
193 193
         $this->tariffId = $tariffId;
194 194
     }
195 195
 
196
-    public function getUserIpAccess(): ?string
196
+    public function getUserIpAccess(): ? string
197 197
     {
198 198
         return $this->userIpAccess;
199 199
     }
200 200
 
201
-    public function setUserIpAccess(?string $userIpAccess): void
201
+    public function setUserIpAccess(? string $userIpAccess) : void
202 202
     {
203 203
         $this->userIpAccess = $userIpAccess;
204 204
     }
205 205
 
206
-    public function getVtIpAccess(): ?string
206
+    public function getVtIpAccess(): ? string
207 207
     {
208 208
         return $this->vtIpAccess;
209 209
     }
210 210
 
211
-    public function setVtIpAccess(?string $vtIpAccess): void
211
+    public function setVtIpAccess(? string $vtIpAccess) : void
212 212
     {
213 213
         $this->vtIpAccess = $vtIpAccess;
214 214
     }
215 215
 
216
-    public function getSkype(): ?string
216
+    public function getSkype(): ? string
217 217
     {
218 218
         return $this->skype;
219 219
     }
220 220
 
221
-    public function setSkype(?string $skype): void
221
+    public function setSkype(? string $skype) : void
222 222
     {
223 223
         $this->skype = $skype;
224 224
     }
225 225
 
226
-    public function getTariff(): ?Tariff
226
+    public function getTariff(): ? Tariff
227 227
     {
228 228
         return $this->tariff;
229 229
     }
Please login to merge, or discard this patch.
src/Models/Entities/Product.php 1 patch
Spacing   +7 added lines, -7 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\Models\Entities;
6 6
 
@@ -69,32 +69,32 @@  discard block
 block discarded – undo
69 69
         $this->fields = $fields;
70 70
     }
71 71
 
72
-    public function getCurrencyId(): ?int
72
+    public function getCurrencyId(): ? int
73 73
     {
74 74
         return $this->currencyId;
75 75
     }
76 76
 
77
-    public function setCurrencyId(?int $currencyId): void
77
+    public function setCurrencyId(? int $currencyId) : void
78 78
     {
79 79
         $this->currencyId = $currencyId;
80 80
     }
81 81
 
82
-    public function getSiteId(): ?int
82
+    public function getSiteId(): ? int
83 83
     {
84 84
         return $this->siteId;
85 85
     }
86 86
 
87
-    public function setSiteId(?int $siteId): void
87
+    public function setSiteId(? int $siteId) : void
88 88
     {
89 89
         $this->siteId = $siteId;
90 90
     }
91 91
 
92
-    public function getSite(): ?Site
92
+    public function getSite(): ? Site
93 93
     {
94 94
         return $this->site;
95 95
     }
96 96
 
97
-    public function setSite(?Site $site): void
97
+    public function setSite(? Site $site) : void
98 98
     {
99 99
         $this->site = $site;
100 100
     }
Please login to merge, or discard this patch.
src/Services/Entities.php 1 patch
Spacing   +8 added lines, -8 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
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @param array $parameters
51 51
      * @return Country|null
52 52
      */
53
-    public function getCountry(int $id, array $parameters = []): ?Country
53
+    public function getCountry(int $id, array $parameters = []): ? Country
54 54
     {
55 55
         $response = $this->makeRequest('GET', 'countries/'.$id, $parameters);
56 56
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      * @param array $parameters
78 78
      * @return Currency|null
79 79
      */
80
-    public function getCurrency(int $id, array $parameters = []): ?Currency
80
+    public function getCurrency(int $id, array $parameters = []): ? Currency
81 81
     {
82 82
         $response = $this->makeRequest('GET', 'currencies/'.$id, $parameters);
83 83
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @param array $parameters
118 118
      * @return Merchant|null
119 119
      */
120
-    public function getMerchant(int $id, array $parameters = []): ?Merchant
120
+    public function getMerchant(int $id, array $parameters = []): ? Merchant
121 121
     {
122 122
         $response = $this->makeRequest('GET', 'merchants/'.$id, $parameters);
123 123
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      *
149 149
      * @return Site|null
150 150
      */
151
-    public function getSite(Merchant $merchant, int $id, array $parameters = []): ?Site
151
+    public function getSite(Merchant $merchant, int $id, array $parameters = []): ? Site
152 152
     {
153 153
         $response = $this->makeRequest('GET', 'merchants/'.$merchant->getId().'/sites/'.$id, $parameters);
154 154
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      * @param array $parameters
163 163
      * @return Site|null
164 164
      */
165
-    public function getSiteById(int $id, array $parameters = []): ?Site
165
+    public function getSiteById(int $id, array $parameters = []): ? Site
166 166
     {
167 167
         $response = $this->makeRequest('GET', 'sites/'.$id, $parameters);
168 168
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      *
200 200
      * @return Product|null
201 201
      */
202
-    public function getProduct(Merchant $merchant, Site $site, int $id, array $parameters = []): ?Product
202
+    public function getProduct(Merchant $merchant, Site $site, int $id, array $parameters = []): ? Product
203 203
     {
204 204
         $response = $this->makeRequest(
205 205
             'GET',
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      * @param array $parameters
218 218
      * @return Product|null
219 219
      */
220
-    public function getProductById(int $id, array $parameters = []): ?Product
220
+    public function getProductById(int $id, array $parameters = []): ? Product
221 221
     {
222 222
         $response = $this->makeRequest(
223 223
             'GET',
Please login to merge, or discard this patch.