Merge pull request #988 from MarJose123/master #1654
Annotations
10 warnings and 41 notices
units (8.3, testing, array, redis):
src/Internal/Exceptions/TransactionRollbackException.php#L14
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
public function __construct(private readonly mixed $result)
{
- parent::__construct();
+
}
public function getResult(): mixed
{
|
units (8.3, testing, array, redis):
src/Internal/Observers/TransferObserver.php#L46
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
// If the transfer does not belong to the wallet, a WalletOwnerInvalid exception will be thrown.
// If the transfer was not found, a RecordNotFoundException will be thrown.
// Block both the wallet of the user who is sending the money and the wallet of the user who is receiving the money.
- return $this->atomicService->blocks([$model->from, $model->to], function () use ($model) {
+ return $this->atomicService->blocks([$model->to], function () use ($model) {
// Reset confirmation of the transfer for the sender's wallet.
// Returns true if the confirmation was reset, false otherwise.
return $model->from->safeResetConfirm($model->withdraw) && $model->to->safeResetConfirm($model->deposit);
|
units (8.3, testing, array, redis):
src/Internal/Repository/WalletRepository.php#L88
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
*/
public function getById(int $id): Wallet
{
- return $this->getBy(['id' => $id]);
+ return $this->getBy([]);
}
/**
* @throws ModelNotFoundException
|
units (8.3, testing, array, redis):
src/Internal/Repository/WalletRepository.php#L98
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
*/
public function getByUuid(string $uuid): Wallet
{
- return $this->getBy(['uuid' => $uuid]);
+ return $this->getBy([]);
}
/**
* @throws ModelNotFoundException
|
units (8.3, testing, array, redis):
src/Internal/Repository/WalletRepository.php#L108
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
*/
public function getBySlug(string $holderType, int|string $holderId, string $slug): Wallet
{
- return $this->getBy(['holder_type' => $holderType, 'holder_id' => $holderId, 'slug' => $slug]);
+ return $this->getBy(['holder_id' => $holderId, 'slug' => $slug]);
}
/**
* @param array<int|string> $holderIds
|
units (8.3, testing, array, redis):
src/Internal/Service/LockService.php#L81
Escaped Mutant for Mutator "Continue_":
@@ @@
$lockProvider = $this->getLockProvider();
foreach ($keys as $key) {
if (!$this->isBlocked($key)) {
- continue;
+ break;
}
$lockProvider->lock(self::LOCK_KEY . $key, $this->seconds)->forceRelease();
$this->lockedKeys->delete(self::INNER_KEYS . $key);
|
units (8.3, testing, array, redis):
src/Objects/Cart.php#L77
Escaped Mutant for Mutator "CloneRemoval":
@@ @@
*/
public function withExtra(array $extra): self
{
- $self = clone $this;
+ $self = $this;
$self->extra = $extra;
return $self;
}
|
units (8.3, testing, array, redis):
src/Objects/Cart.php#L107
Escaped Mutant for Mutator "CloneRemoval":
@@ @@
*/
public function withItems(iterable $products): self
{
- $self = clone $this;
+ $self = $this;
foreach ($products as $product) {
$self = $self->withItem($product);
}
|
units (8.3, testing, array, redis):
src/Services/AssistantService.php#L37
Escaped Mutant for Mutator "ArrayOneItem":
@@ @@
$wallet = $this->castService->getWallet($object);
$wallets[$wallet->getKey()] = $wallet;
}
- return $wallets;
+ return count($wallets) > 1 ? array_slice($wallets, 0, 1, true) : $wallets;
}
/**
* @param non-empty-array<array-key, TransactionDtoInterface|TransferDtoInterface> $objects
|
units (8.3, testing, array, redis):
src/Services/BookkeeperService.php#L51
Escaped Mutant for Mutator "ArrayItem":
@@ @@
*/
public function increase(Wallet $wallet, float|int|string $value): string
{
- return current($this->multiIncrease([$wallet->uuid => $wallet], [$wallet->uuid => $value]));
+ return current($this->multiIncrease([$wallet->uuid > $wallet], [$wallet->uuid => $value]));
}
public function multiAmount(array $wallets): array
{
|
Usage of internal entity:
config/config.php#L256
Class 'TaxService' is marked as @internal
|
Usage of internal entity:
config/config.php#L51
Class 'TaxService' is marked as @internal
|
Usage of internal entity:
config/config.php#L252
Class 'PrepareService' is marked as @internal
|
Usage of internal entity:
config/config.php#L150
Class 'ConnectionService' is marked as @internal
|
Usage of internal entity:
config/config.php#L244
Class 'DiscountService' is marked as @internal
|
Usage of internal entity:
config/config.php#L41
Class 'BookkeeperService' is marked as @internal
|
Usage of internal entity:
config/config.php#L45
Class 'EagerLoaderService' is marked as @internal
|
Usage of internal entity:
config/config.php#L238
Class 'RegulatorService' is marked as @internal
|
Usage of internal entity:
config/config.php#L47
Class 'FormatterService' is marked as @internal
|
Usage of internal entity:
config/config.php#L236
Class 'BookkeeperService' is marked as @internal
|
Usage of internal entity:
config/config.php#L52
Class 'TransactionService' is marked as @internal
|
Usage of internal entity:
config/config.php#L232
Class 'AtomicService' is marked as @internal
|
Usage of internal entity:
config/config.php#L254
Class 'PurchaseService' is marked as @internal
|
Usage of internal entity:
config/config.php#L242
Class 'ConsistencyService' is marked as @internal
|
Usage of internal entity:
config/config.php#L262
Class 'WalletService' is marked as @internal
|
Usage of internal entity:
config/config.php#L240
Class 'CastService' is marked as @internal
|
Usage of internal entity:
config/config.php#L260
Class 'TransferService' is marked as @internal
|
Usage of internal entity:
config/config.php#L53
Class 'TransferService' is marked as @internal
|
Usage of internal entity:
config/config.php#L228
Class 'AssistantService' is marked as @internal
|
Usage of internal entity:
config/config.php#L250
Class 'FormatterService' is marked as @internal
|
Usage of internal entity:
config/config.php#L37
Class 'AssistantService' is marked as @internal
|
Usage of internal entity:
config/config.php#L258
Class 'TransactionService' is marked as @internal
|
Usage of internal entity:
config/config.php#L248
Class 'ExchangeService' is marked as @internal
|
Usage of internal entity:
config/config.php#L42
Class 'CastService' is marked as @internal
|
Usage of internal entity:
config/config.php#L246
Class 'EagerLoaderService' is marked as @internal
|
Usage of internal entity:
config/config.php#L46
Class 'ExchangeService' is marked as @internal
|
Usage of internal entity:
config/config.php#L54
Class 'WalletService' is marked as @internal
|
Usage of internal entity:
config/config.php#L230
Class 'AtmService' is marked as @internal
|
Usage of internal entity:
config/config.php#L40
Class 'BasketService' is marked as @internal
|
Usage of internal entity:
config/config.php#L234
Class 'BasketService' is marked as @internal
|
Usage of internal entity:
config/config.php#L44
Class 'DiscountService' is marked as @internal
|
Usage of internal entity:
config/config.php#L43
Class 'ConsistencyService' is marked as @internal
|
Usage of internal entity:
config/config.php#L22
Class 'ConnectionService' is marked as @internal
|
Usage of internal entity:
config/config.php#L38
Class 'AtmService' is marked as @internal
|
Usage of internal entity:
config/config.php#L48
Class 'PrepareService' is marked as @internal
|
Usage of internal entity:
config/config.php#L171
Class 'JsonService' is marked as @internal
|
Usage of internal entity:
config/config.php#L49
Class 'PurchaseService' is marked as @internal
|
Usage of internal entity:
config/config.php#L25
Class 'JsonService' is marked as @internal
|
Usage of internal entity:
config/config.php#L50
Class 'RegulatorService' is marked as @internal
|
Usage of internal entity:
config/config.php#L39
Class 'AtomicService' is marked as @internal
|
Undefined method:
src/Traits/MorphOneWallet.php#L42
Method 'withTrashed' is undefined
|