reliqarts/laravel-docweaver

View on GitHub
src/Service/Product/Publisher.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method publish has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function publish(Product $product, string $source): Result
    {
        $result = new Result();
        $versions = [Product::VERSION_MAIN];
        $versionsPublished = [];
Severity: Minor
Found in src/Service/Product/Publisher.php - About 1 hr to fix

    Method update has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function update(Product $product): Result
        {
            $result = new Result();
            $publishedVersions = array_keys($product->getVersions());
            $availableTags = $this->listAvailableProductTags($product);
    Severity: Minor
    Found in src/Service/Product/Publisher.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status