Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-tracker/Block/Variables/Page/Cms.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Method __construct has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

Template\Context $context,
\Magento\Framework\Json\Helper\Data $jsonHelper,
\Smile\ElasticsuiteTracker\Helper\Data $trackerHelper,
\Magento\Framework\Registry $registry,
\Magento\Cms\Model\Page $page,
Severity: Minor
Found in src/module-elasticsuite-tracker/Block/Variables/Page/Cms.php - About 45 mins to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    public function __construct(
    Template\Context $context,
    \Magento\Framework\Json\Helper\Data $jsonHelper,
    \Smile\ElasticsuiteTracker\Helper\Data $trackerHelper,
    \Magento\Framework\Registry $registry,
    src/module-elasticsuite-tracker/Block/Variables/Page/Order.php on lines 44..55

    There are no issues that match your filters.

    Category
    Status