Skip to content

Update composer dependencies (#144) #148

Update composer dependencies (#144)

Update composer dependencies (#144) #148

Triggered via push March 22, 2024 11:41
Status Success
Total duration 5m 0s
Artifacts

mutation.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
php81-mysql
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
php81-mysql
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
php81-mysql: src/Console/Commands/AbandonedCart.php#L26
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } public function handle() { - $abandonedCarts = $this->shopService->getAbandonedCarts(Carbon::now()->subHours(24), Carbon::now()); + $abandonedCarts = $this->shopService->getAbandonedCarts(Carbon::now()->subHours(23), Carbon::now()); foreach ($abandonedCarts as $abandonedCart) { event(new AbandonedCartEvent($abandonedCart)); } } }
php81-mysql: src/Console/Commands/AbandonedCart.php#L26
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } public function handle() { - $abandonedCarts = $this->shopService->getAbandonedCarts(Carbon::now()->subHours(24), Carbon::now()); + $abandonedCarts = $this->shopService->getAbandonedCarts(Carbon::now()->subHours(25), Carbon::now()); foreach ($abandonedCarts as $abandonedCart) { event(new AbandonedCartEvent($abandonedCart)); } } }
php81-mysql: src/Enums/ExportFormatEnum.php#L25
Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ public function getWriterType() : string { return match ($this->value) { - self::XLS => Excel::XLS, self::XLSX => Excel::XLSX, default => Excel::CSV, }; } }
php81-mysql: src/Http/Requests/Admin/OrderExportRequest.php#L18
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function rules() { - return array_merge(parent::rules(), ['format' => ['sometimes', 'string', Rule::in(ExportFormatEnum::getValues())]]); + return array_merge(parent::rules(), []); } }
php81-mysql: src/Http/Resources/OrderExportResource.php#L30
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ } public function toArray($request) : array { - return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' => $this->created_at, 'user_id' => $this->user_id, 'client_name' => $this->client_name, 'client_email' => $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' => $this->client_company, 'client_taxid' => $this->client_taxid]; + return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' > $this->created_at, 'user_id' => $this->user_id, 'client_name' => $this->client_name, 'client_email' => $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' => $this->client_company, 'client_taxid' => $this->client_taxid]; } }
php81-mysql: src/Http/Resources/OrderExportResource.php#L31
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ } public function toArray($request) : array { - return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' => $this->created_at, 'user_id' => $this->user_id, 'client_name' => $this->client_name, 'client_email' => $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' => $this->client_company, 'client_taxid' => $this->client_taxid]; + return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' => $this->created_at, 'user_id' > $this->user_id, 'client_name' => $this->client_name, 'client_email' => $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' => $this->client_company, 'client_taxid' => $this->client_taxid]; } }
php81-mysql: src/Http/Resources/OrderExportResource.php#L32
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ } public function toArray($request) : array { - return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' => $this->created_at, 'user_id' => $this->user_id, 'client_name' => $this->client_name, 'client_email' => $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' => $this->client_company, 'client_taxid' => $this->client_taxid]; + return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' => $this->created_at, 'user_id' => $this->user_id, 'client_name' > $this->client_name, 'client_email' => $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' => $this->client_company, 'client_taxid' => $this->client_taxid]; } }
php81-mysql: src/Http/Resources/OrderExportResource.php#L33
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ } public function toArray($request) : array { - return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' => $this->created_at, 'user_id' => $this->user_id, 'client_name' => $this->client_name, 'client_email' => $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' => $this->client_company, 'client_taxid' => $this->client_taxid]; + return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' => $this->created_at, 'user_id' => $this->user_id, 'client_name' => $this->client_name, 'client_email' > $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' => $this->client_company, 'client_taxid' => $this->client_taxid]; } }
php81-mysql: src/Http/Resources/OrderExportResource.php#L39
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ } public function toArray($request) : array { - return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' => $this->created_at, 'user_id' => $this->user_id, 'client_name' => $this->client_name, 'client_email' => $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' => $this->client_company, 'client_taxid' => $this->client_taxid]; + return ['id' => $this->resource->getKey(), 'status' => OrderStatus::getName($this->status), 'items' => OrderItemExportResource::collection($this->getOrder()->items), 'total' => $this->total, 'subtotal' => $this->subtotal, 'tax' => $this->tax, 'created_at' => $this->created_at, 'user_id' => $this->user_id, 'client_name' => $this->client_name, 'client_email' => $this->client_email, 'client_street' => $this->client_street, 'client_street_number' => $this->client_street_number, 'client_postal' => $this->client_postal, 'client_city' => $this->client_city, 'client_country' => $this->client_country, 'client_company' > $this->client_company, 'client_taxid' => $this->client_taxid]; } }
php81-mysql: src/Jobs/RenewRecursiveProductUser.php#L64
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ $prevPayment = $order->payments()->whereIn('status', [PaymentStatus::PAID(), PaymentStatus::REFUNDED()])->orderBy('created_at', 'desc')->first(); $newOrder = $orderService->createOrderFromProduct($product, $user->getKey(), $this->getClientDetailsDto($order)); $paymentProcessor = $newOrder->process(); - $parameters = ['return_url' => url('/'), 'email' => $user->email, 'type' => $product->type, 'gateway' => $prevPayment->driver, 'gateway_order_id' => $prevPayment->gateway_order_id]; + $parameters = ['return_url' => url('/'), 'email' => $user->email, 'type' > $product->type, 'gateway' => $prevPayment->driver, 'gateway_order_id' => $prevPayment->gateway_order_id]; if (ProductType::isSubscriptionType($product->type)) { $parameters += $product->getSubscriptionParameters(); }