You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://codeclimate.com/github/bavix/laravel-wallet/maintainability)[](https://codeclimate.com/github/bavix/laravel-wallet/test_coverage)[](https://opencollective.com/laravel-wallet)[](https://packagist.org/packages/bavix/laravel-wallet)
3
+
[](https://coveralls.io/github/bavix/laravel-wallet?branch=master)[](https://opencollective.com/laravel-wallet)[](https://packagist.org/packages/bavix/laravel-wallet)
message:'#^Method Bavix\\Wallet\\Internal\\Dto\\TransferDto\:\:getFromId\(\) never returns string so it can be removed from the return type\.$#'
113
-
identifier:return.unusedType
114
-
count:1
115
-
path:src/Internal/Dto/TransferDto.php
116
-
117
-
-
118
-
message:'#^Method Bavix\\Wallet\\Internal\\Dto\\TransferDto\:\:getToId\(\) never returns string so it can be removed from the return type\.$#'
119
-
identifier:return.unusedType
120
-
count:1
121
-
path:src/Internal/Dto/TransferDto.php
122
-
123
111
-
124
112
message:'#^Method Bavix\\Wallet\\Internal\\Dto\\TransferDto\:\:getUuid\(\) should return non\-empty\-string but returns string\.$#'
125
113
identifier:return.type
@@ -169,7 +157,7 @@ parameters:
169
157
path:src/Internal/Repository/WalletRepository.php
170
158
171
159
-
172
-
message:'#^Parameter \#1 \$name of method Illuminate\\Database\\ConnectionResolverInterface\:\:connection\(\) expects string\|null, mixed given\.$#'
160
+
message:'#^Parameter \#1 \$name of method Illuminate\\Database\\ConnectionResolverInterface\:\:connection\(\) expects string\|UnitEnum\|null, mixed given\.$#'
173
161
identifier:argument.type
174
162
count:1
175
163
path:src/Internal/Service/ConnectionService.php
@@ -180,66 +168,6 @@ parameters:
180
168
count:1
181
169
path:src/Internal/Service/LockService.php
182
170
183
-
-
184
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:abs\(\) should return non\-empty\-string but returns string\.$#'
185
-
identifier:return.type
186
-
count:1
187
-
path:src/Internal/Service/MathService.php
188
-
189
-
-
190
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:add\(\) should return non\-empty\-string but returns string\.$#'
191
-
identifier:return.type
192
-
count:1
193
-
path:src/Internal/Service/MathService.php
194
-
195
-
-
196
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:ceil\(\) should return non\-empty\-string but returns string\.$#'
197
-
identifier:return.type
198
-
count:1
199
-
path:src/Internal/Service/MathService.php
200
-
201
-
-
202
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:div\(\) should return non\-empty\-string but returns string\.$#'
203
-
identifier:return.type
204
-
count:1
205
-
path:src/Internal/Service/MathService.php
206
-
207
-
-
208
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:floor\(\) should return non\-empty\-string but returns string\.$#'
209
-
identifier:return.type
210
-
count:1
211
-
path:src/Internal/Service/MathService.php
212
-
213
-
-
214
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:mul\(\) should return non\-empty\-string but returns string\.$#'
215
-
identifier:return.type
216
-
count:1
217
-
path:src/Internal/Service/MathService.php
218
-
219
-
-
220
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:negative\(\) should return non\-empty\-string but returns string\.$#'
221
-
identifier:return.type
222
-
count:1
223
-
path:src/Internal/Service/MathService.php
224
-
225
-
-
226
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:pow\(\) should return non\-empty\-string but returns string\.$#'
227
-
identifier:return.type
228
-
count:1
229
-
path:src/Internal/Service/MathService.php
230
-
231
-
-
232
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:round\(\) should return non\-empty\-string but returns string\.$#'
233
-
identifier:return.type
234
-
count:1
235
-
path:src/Internal/Service/MathService.php
236
-
237
-
-
238
-
message:'#^Method Bavix\\Wallet\\Internal\\Service\\MathService\:\:sub\(\) should return non\-empty\-string but returns string\.$#'
239
-
identifier:return.type
240
-
count:1
241
-
path:src/Internal/Service/MathService.php
242
-
243
171
-
244
172
message:'#^Binary operation "\." between ''wallet_f\:\:'' and mixed results in an error\.$#'
245
173
identifier:binaryOp.invalid
@@ -318,6 +246,12 @@ parameters:
318
246
count:1
319
247
path:src/Models/Transaction.php
320
248
249
+
-
250
+
message:'#^Parameter \#1 \$first of method Bavix\\Wallet\\Internal\\Service\\MathServiceInterface\:\:mul\(\) expects float\|int\|non\-empty\-string, float\|int\|string given\.$#'
251
+
identifier:argument.type
252
+
count:1
253
+
path:src/Models/Transaction.php
254
+
321
255
-
322
256
message:'#^Parameter \#1 \$related of method Illuminate\\Database\\Eloquent\\Model\:\:belongsTo\(\) expects class\-string\<Illuminate\\Database\\Eloquent\\Model\>, mixed given\.$#'
323
257
identifier:argument.type
@@ -385,15 +319,15 @@ parameters:
385
319
path:src/Models/Transfer.php
386
320
387
321
-
388
-
message:'#^Call to function assert\(\) with true and ''Balance should not…'' will always evaluate to true\.$#'
389
-
identifier:function.alreadyNarrowedType
322
+
message:'#^Binary operation "\." between literal\-string&non\-falsy\-string and mixed results in an error\.$#'
323
+
identifier:binaryOp.invalid
390
324
count:1
391
325
path:src/Models/Wallet.php
392
326
393
327
-
394
-
message:'#^Cannot call method getDynamicDefaultSlug\(\) on class\-string\|object\.$#'
395
-
identifier:method.nonObject
396
-
count:2
328
+
message:'#^Call to function assert\(\) with true and ''Balance should not…'' will always evaluate to true\.$#'
329
+
identifier:function.alreadyNarrowedType
330
+
count:1
397
331
path:src/Models/Wallet.php
398
332
399
333
-
@@ -426,6 +360,12 @@ parameters:
426
360
count:2
427
361
path:src/Models/Wallet.php
428
362
363
+
-
364
+
message:'#^Method Bavix\\Wallet\\Models\\Wallet\:\:getBalanceFloatAttribute\(\) should return non\-empty\-string but returns string\.$#'
365
+
identifier:return.type
366
+
count:1
367
+
path:src/Models/Wallet.php
368
+
429
369
-
430
370
message:'#^Method Bavix\\Wallet\\Models\\Wallet\:\:getCurrencyAttribute\(\) should return string but returns mixed\.$#'
431
371
identifier:return.type
@@ -438,6 +378,36 @@ parameters:
438
378
count:1
439
379
path:src/Models/Wallet.php
440
380
381
+
-
382
+
message:'#^Method Bavix\\Wallet\\Models\\Wallet\:\:receivedTransfers\(\) should return Illuminate\\Database\\Eloquent\\Relations\\HasMany\<Bavix\\Wallet\\Models\\Transfer\> but returns Illuminate\\Database\\Eloquent\\Relations\\HasMany\<Illuminate\\Database\\Eloquent\\Model, Bavix\\Wallet\\Models\\Wallet\>\.$#'
383
+
identifier:return.type
384
+
count:2
385
+
path:src/Models/Wallet.php
386
+
387
+
-
388
+
message:'#^Method Bavix\\Wallet\\Models\\Wallet\:\:transactions\(\) should return Illuminate\\Database\\Eloquent\\Relations\\MorphMany\<Bavix\\Wallet\\Models\\Transaction\> but returns Illuminate\\Database\\Eloquent\\Relations\\MorphMany\<Illuminate\\Database\\Eloquent\\Model, Illuminate\\Database\\Eloquent\\Model\>\.$#'
389
+
identifier:return.type
390
+
count:2
391
+
path:src/Models/Wallet.php
392
+
393
+
-
394
+
message:'#^Method Bavix\\Wallet\\Models\\Wallet\:\:transfers\(\) should return Illuminate\\Database\\Eloquent\\Relations\\HasMany\<Bavix\\Wallet\\Models\\Transfer\> but returns Illuminate\\Database\\Eloquent\\Relations\\HasMany\<Illuminate\\Database\\Eloquent\\Model, Bavix\\Wallet\\Models\\Wallet\>\.$#'
395
+
identifier:return.type
396
+
count:2
397
+
path:src/Models/Wallet.php
398
+
399
+
-
400
+
message:'#^Method Bavix\\Wallet\\Models\\Wallet\:\:wallet\(\) should return Illuminate\\Database\\Eloquent\\Relations\\MorphOne\<Bavix\\Wallet\\Models\\Wallet\> but returns Illuminate\\Database\\Eloquent\\Relations\\MorphOne\<Bavix\\Wallet\\Models\\Wallet, Illuminate\\Database\\Eloquent\\Model\>\.$#'
401
+
identifier:return.type
402
+
count:2
403
+
path:src/Models/Wallet.php
404
+
405
+
-
406
+
message:'#^Method Bavix\\Wallet\\Models\\Wallet\:\:walletTransactions\(\) should return Illuminate\\Database\\Eloquent\\Relations\\HasMany\<Bavix\\Wallet\\Models\\Transaction\> but returns Illuminate\\Database\\Eloquent\\Relations\\HasMany\<Illuminate\\Database\\Eloquent\\Model, Bavix\\Wallet\\Models\\Wallet\>\.$#'
407
+
identifier:return.type
408
+
count:2
409
+
path:src/Models/Wallet.php
410
+
441
411
-
442
412
message:'#^PHPDoc tag @var with type Bavix\\Wallet\\Interfaces\\Wallet is not subtype of native type \$this\(Bavix\\Wallet\\Models\\Wallet\)\.$#'
0 commit comments