src/Service/Product/Publisher.php
Method publish
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function publish(Product $product, string $source): Result
{
$result = new Result();
$versions = [Product::VERSION_MAIN];
$versionsPublished = [];
Method update
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function update(Product $product): Result
{
$result = new Result();
$publishedVersions = array_keys($product->getVersions());
$availableTags = $this->listAvailableProductTags($product);