Smile-SA/elasticsuite

View on GitHub

Showing 607 of 1,357 total issues

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

        ResourceConnection $resource,
        StoreManagerInterface $storeManager,
        MetadataPool $metadataPool,
        StockResolverInterface $stockResolver,
        StockIndexTableNameResolverInterface $stockIndexTableProvider

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

            CollectionProviderFactory $collectionProviderFactory,
            CacheInterface $cache,
            CacheKeyProviderInterface $cacheKeyProvider,
            OptimizerInterface $optimizer,
            array $appliers = []

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

              ResourceConnection $resource,
              StoreManagerInterface $storeManager,
              MetadataPool $metadataPool,
              StockRegistryInterface $stockRegistry,
              StockConfigurationInterface $stockConfiguration

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

                AttributeCollectionFactory $attributeCollectionFactory,
                FulltextCollectionFactory $fulltextCollectionFactory,
                StoreManagerInterface $storeManager,
                ContextInterface $searchContext,
                CategoryFilterProvider $categoryFilterProvider

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

                  QueryFactory $queryFactory,
                  Yesno $booleanSource,
                  string $attributeCode,
                  string $typeIdentifier,
                  string $attributeLabel

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

                    ItemFactory $itemFactory,
                    Collection\Provider $productCollectionProvider,
                    ConfigurationHelper $configurationHelper,
                    ContextInterface    $searchContext,
                    $type = self::AUTOCOMPLETE_TYPE

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

                      ItemFactory $itemFactory,
                      AttributeConfig $attributeConfig,
                      Provider $productCollectionProvider,
                      AutocompleteHelper $autocompleteHelper,
                      $type = self::AUTOCOMPLETE_TYPE

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

                        $queryText,
                        $field,
                        $maxExpansions = 10,
                        $name = null,
                        $boost = QueryInterface::DEFAULT_BOOST_VALUE
                Severity: Minor
                Found in src/module-elasticsuite-core/Search/Request/Query/MatchPhrasePrefix.php - About 35 mins to fix

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

                          $queryText,
                          $field,
                          $minimumShouldMatch = self::DEFAULT_MINIMUM_SHOULD_MATCH,
                          $name = null,
                          $boost = QueryInterface::DEFAULT_BOOST_VALUE
                  Severity: Minor
                  Found in src/module-elasticsuite-core/Search/Request/Query/MatchQuery.php - About 35 mins to fix

                    Method create has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        public function create(ContainerConfigurationInterface $containerConfig, $queryText, $spellingType, $boost = 1, $depth = 0)

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

                              \Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\ReaderPool $readerPool,
                              \Magento\Framework\App\Config\DataFactory $dataFactory,
                              \Magento\Framework\App\CacheInterface $cache,
                              ScopeCodeResolver $scopeCodeResolver,
                              $cacheId = 'default_config_cache'

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

                                $path,
                                \Magento\Framework\Search\Request\QueryInterface $query = null,
                                $scoreMode = self::SCORE_MODE_NONE,
                                $name = null,
                                $boost = QueryInterface::DEFAULT_BOOST_VALUE
                        Severity: Minor
                        Found in src/module-elasticsuite-core/Search/Request/Query/Nested.php - About 35 mins to fix

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

                                  StoreManagerInterface $storeManager,
                                  Manager $moduleManager,
                                  Iterator $childrenIterator,
                                  AuthorizationInterface $authorization,
                                  SectionVisibility $visibility

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

                                    $containerName,
                                    $storeId,
                                    BaseConfig $baseConfig,
                                    RelevanceConfigFactory $relevanceConfigFactory,
                                    IndexOperationInterface $indexManager
                            Severity: Minor
                            Found in src/module-elasticsuite-core/Search/Request/ContainerConfiguration.php - About 35 mins to fix

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

                                      Initial $initialConfig,
                                      Converter $converter,
                                      ScopedFactory $collectionFactory,
                                      Container $containerReader,
                                      StoreManagerInterface $storeManager

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

                                        Data $catalogSearchHelper,
                                        CustomerTrackingServiceInterface $service,
                                        CookieManagerInterface $cookieManager,
                                        TrackerHelper $trackerHelper,
                                        PageTypeConfig $pageTypeConfig
                                Severity: Minor
                                Found in src/module-elasticsuite-tracker/Observer/TrackRedirectIfOneResult.php - About 35 mins to fix

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

                                          array  $clauses = [],
                                          int    $slop = 12,
                                          bool   $inOrder = true,
                                          string $name = null,
                                          string $boost = QueryInterface::DEFAULT_BOOST_VALUE
                                  Severity: Minor
                                  Found in src/module-elasticsuite-core/Search/Request/Query/Span/SpanNear.php - About 35 mins to fix

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

                                            $name,
                                            $bucketsPath,
                                            $script,
                                            $window = 10,
                                            $gapPolicy = self::GAP_POLICY_SKIP

                                      Method reindex has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              array $sourceIndices,
                                              string $destIndex,
                                              array $bodyParams = [],
                                              array $sourceParams = [],
                                              array $destParams = []
                                      Severity: Minor
                                      Found in src/module-elasticsuite-core/Index/IndexOperation.php - About 35 mins to fix

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

                                                FileResolverInterface $fileResolver,
                                                ConverterInterface $converter,
                                                SchemaLocator $schemaLocator,
                                                DomFactory $domFactory,
                                                $fileName = self::FILE_NAME
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language