Smile-SA/elasticsuite

View on GitHub

Showing 620 of 1,375 total issues

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

        ContextInterface $context,
        UiComponentFactory $uiComponentFactory,
        UrlInterface $urlBuilder,
        array $components = [],
        array $data = [],

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

            \Smile\ElasticsuiteCore\Index\Indices\Config $indicesConfig,
            IndexerRegistry $indexerRegistry,
            StoreManagerInterface $storeManager,
            IndexOperationInterface $indexOperation,
            AttributeHelper $attributeHelper,
    Severity: Major
    Found in src/module-elasticsuite-catalog/Plugin/Catalog/Eav/AttributePlugin.php - About 50 mins to fix

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

              \Magento\Framework\View\Element\Template\Context $context,
              \Magento\Catalog\Model\Layer\Resolver $layerResolver,
              \Magento\Catalog\Model\Layer\FilterList $filterList,
              \Magento\Catalog\Model\Layer\AvailabilityFlagInterface $visibilityFlag,
              \Magento\Framework\ObjectManagerInterface $objectManager,
      Severity: Major
      Found in src/module-elasticsuite-catalog/Block/Navigation.php - About 50 mins to fix

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

                $name,
                $primaryFieldName,
                $requestFieldName,
                OptimizerCollectionFactory $optimizerCollectionFactory,
                PoolInterface $modifierPool,

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

                  \Magento\Framework\Model\Context $context,
                  \Magento\Framework\Registry $registry,
                  \Magento\Framework\Data\FormFactory $formFactory,
                  \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
                  \Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\CombineFactory $conditionsFactory,
          Severity: Major
          Found in src/module-elasticsuite-catalog-rule/Model/Rule.php - About 50 mins to fix

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

                    Resolver $layerResolver,
                    ScopeConfigInterface $scopeConfig,
                    Data $catalogSearchHelper,
                    ManagerInterface $messageManager,
                    ResultFactory $resultFactory,
            Severity: Major
            Found in src/module-elasticsuite-catalog/Plugin/CatalogSearch/ResultPlugin.php - About 50 mins to fix

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

                      ProductCollectionFactory $collectionFactory,
                      ItemDataFactory $itemFactory,
                      QueryFactory $queryFactory,
                      $storeId,
                      $size = 10,
              Severity: Major
              Found in src/module-elasticsuite-catalog/Model/ProductSorter/AbstractPreview.php - About 50 mins to fix

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

                        $field,
                        $direction,
                        $nestedPath,
                        QueryInterface $nestedFilter = null,
                        $scoreMode = self::SCORE_MODE_MIN,
                Severity: Major
                Found in src/module-elasticsuite-core/Search/Request/SortOrder/Nested.php - About 50 mins to fix

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

                          $scriptType,
                          $lang,
                          $source,
                          $params = [],
                          $direction = self::SORT_ASC,
                  Severity: Major
                  Found in src/module-elasticsuite-core/Search/Request/SortOrder/Script.php - About 50 mins to fix

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

                            Reader $reader,
                            CacheInterface $cache,
                            MappingFactory $mappingFactory,
                            MappingFieldFactory $mappingFieldFactory,
                            DataSourceResolverFactory $dataSourceResolverFactory,
                    Severity: Major
                    Found in src/module-elasticsuite-core/Index/Indices/Config.php - About 50 mins to fix

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

                              IndexOperationInterface $indexOperation,
                              CacheHelper $cacheHelper,
                              Batch $batch,
                              DataSourceResolverInterfaceFactory $dataSourceResolverFactory,
                              IndexSettingsInterface $indexSettings,
                      Severity: Major
                      Found in src/module-elasticsuite-core/Indexer/GenericIndexerHandler.php - About 50 mins to fix

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

                                array $must = [],
                                array $should = [],
                                array $mustNot = [],
                                $minimumShouldMatch = 1,
                                $name = null,
                        Severity: Major
                        Found in src/module-elasticsuite-core/Search/Request/Query/Boolean.php - About 50 mins to fix

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

                                  \Magento\Store\Model\StoreManagerInterface $storeManager,
                                  \Smile\ElasticsuiteCore\Api\Index\IndexSettingsInterface $indexSettings,
                                  \Smile\ElasticsuiteCore\Api\Client\ClientInterface $client,
                                  \Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface $indexOperation,
                                  \Smile\ElasticsuiteTracker\Model\EventIndex\DateBounds $dateBounds,
                          Severity: Major
                          Found in src/module-elasticsuite-tracker/Model/IndexManager.php - About 50 mins to fix

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

                                    \Magento\Search\Model\SearchEngine $searchEngine,
                                    \Smile\ElasticsuiteCore\Search\Request\Builder $searchRequestBuilder,
                                    \Smile\ElasticsuiteAnalytics\Model\Report\Context $context,
                                    \Smile\ElasticsuiteCore\Search\Request\Aggregation\AggregationFactory $aggregationFactory,
                                    \Smile\ElasticsuiteCore\Search\Request\Query\QueryFactory $queryFactory,

                              Method __construct has 7 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\Catalog\Model\Layer\Resolver $layerResolver,
                              Severity: Major
                              Found in src/module-elasticsuite-tracker/Block/Variables/Page/Catalog.php - About 50 mins to fix

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

                                        CategoryAttributeQuery $categoryAttributeQuery,
                                        CategoryAttributesMapper $categoryAttributesMapper,
                                        RootCategoryProvider $rootCategoryProvider,
                                        LayerFormatter $layerFormatter,
                                        ResourceConnection $resourceConnection,

                                  Method aroundCreate has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          QueryBuilder $subject,
                                          \Closure $proceed,
                                          ContainerConfigurationInterface $containerConfig,
                                          $queryText,
                                          $spellingType,
                                  Severity: Major
                                  Found in src/module-elasticsuite-thesaurus/Plugin/QueryRewrite.php - About 50 mins to fix

                                    Function renderText has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        function renderText(ctx, text, x, y, font, opts = {}) {
                                    Severity: Minor
                                    Found in src/module-elasticsuite-core/view/adminhtml/web/js/lib/chart.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                              for (var key in json) {
                                                if (Object.prototype.hasOwnProperty.call(json, key)) {
                                                  html += '<li>';
                                                  var keyRepr = options.withQuotes ?
                                                    '<span class="json-string">"' + key + '"</span>' : key;

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

                                                QueryBuilder $subject,
                                                \Closure $proceed,
                                                ContainerConfigurationInterface $containerConfiguration,
                                                $queryText,
                                                array $filters,
                                        Severity: Minor
                                        Found in src/module-elasticsuite-catalog-optimizer/Plugin/QueryRewrite.php - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language