Skip to content

Commit

Permalink
Fix: Cs Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed May 31, 2023
1 parent d650812 commit a981bdb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions modules/splashsync/src/Objects/Product/ImagesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ private function getImagePosition(array $imgArray): ?int
// Generic & Combination Mode => Update Only if Position Given
if (isset($imgArray["position"]) && is_numeric($imgArray["position"])) {
$position = (int) $imgArray["position"];
//====================================================================//
// Generic Mode Only => Use List Index
//====================================================================//
// Generic Mode Only => Use List Index
} elseif (!$this->AttributeId || (Splash::isDebugMode())) {
$position = $this->imgPosition;
}
Expand Down
4 changes: 2 additions & 2 deletions modules/splashsync/src/Objects/Product/ObjectsListTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ private function getTransformedProductArray($product)
$dataBuffer["stock"] = $productClass->getQuantity($product["id"]);
$dataBuffer["price"] = $productClass->getPrice(false, null, 3);
$dataBuffer["price-base"] = $productClass->getPrice(false, null, 3);
//====================================================================//
// Fill Product Combination Data to Buffer
//====================================================================//
// Fill Product Combination Data to Buffer
} else {
$dataBuffer["id"] = (int) $this->getUnikId($product["id"], $product["id_attribute"]);
$dataBuffer["ref"] = (empty($product["ref_attribute"]) && !empty($product["ref"]))
Expand Down
8 changes: 4 additions & 4 deletions modules/splashsync/src/Objects/Product/PricesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ protected function setPricesFields(string $fieldName, array $fieldData): void
$this->Attribute->wholesale_price = $fieldData["ht"];
$this->addMsfUpdateFields("Attribute", "wholesale_price");
$this->needUpdate("Attribute");
//====================================================================//
// Update product Price without Attribute
//====================================================================//
// Update product Price without Attribute
} else {
$this->object->wholesale_price = $fieldData["ht"];
$this->addMsfUpdateFields("Product", "wholesale_price");
Expand Down Expand Up @@ -328,8 +328,8 @@ private function updateProductPrice(array $newPrice): void
// Update product Price with Attribute
if ($this->AttributeId) {
$this->updateAttributePrice($newPrice);
//====================================================================//
// Update product Price without Attribute
//====================================================================//
// Update product Price without Attribute
} else {
if (abs($newPrice["ht"] - $this->object->price) > 1E-6) {
$this->object->price = (float) number_format(round($newPrice["ht"], 9), 9, ".", "");
Expand Down

0 comments on commit a981bdb

Please sign in to comment.