Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

Possibly zero references to use statement for classlike/namespace SearchCriteriaApplier (\Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface)
Open

use Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface as SearchCriteriaApplier;

Doc-block of $resourceCollection in __construct is phpdoc param type \Magento\Framework\Data\Collection\AbstractDb which is not a permitted replacement of the nullable param type ?\Magento\Framework\Data\Collection\AbstractDb declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param \Magento\Framework\Data\Collection\AbstractDb           $resourceCollection          Resource collection.

TODO found
Open

        // TODO: make sure destroying one instance of mouse doesn't mess with

XXX found
Open

     * @param string $filter The raw filter value (XXX-XXX)

Possibly zero references to use statement for classlike/namespace StoreInterface (\Magento\Store\Api\Data\StoreInterface)
Open

use Magento\Store\Api\Data\StoreInterface;

Argument 1 (args) is ?array but \Smile\ElasticsuiteCatalogGraphQl\Model\Resolver\Products::validateArgs() takes array defined at /code/src/module-elasticsuite-catalog-graph-ql/Model/Resolver/Products.php:95
Open

        $this->validateArgs($args);

TODO found
Open

 * @TODO Refactor/Mutualize all copy/pasted methods.

Saw a token Phan may have failed to parse after '* @return array()': after array, saw '('
Open

     * @return array()

Possibly zero references to use statement for classlike/namespace ObjectManager (\Magento\Framework\App\ObjectManager)
Open

use Magento\Framework\App\ObjectManager;

Possibly zero references to use statement for classlike/namespace CollectionFactory (\Smile\ElasticsuiteCatalogOptimizer\Model\ResourceModel\Optimizer\CollectionFactory)
Open

use Smile\ElasticsuiteCatalogOptimizer\Model\ResourceModel\Optimizer\CollectionFactory;

TODO found
Open

     * @TODO: manage cache in this file for getSearchQueriesByChildren,

Argument 5 (query) is null but \Smile\ElasticsuiteCore\Search\Request\Builder::create() takes \Smile\ElasticsuiteCore\Search\Request\QueryInterface|string defined at /code/src/module-elasticsuite-core/Search/Request/Builder.php:136
Open

        return $this->searchRequestBuilder->create($storeId, $this->containerName, 0, 0, null, [], [], $searchQuery, $aggregations);

Call to method getIsDisplayRelNofollow on non-class type null
Open

            $result[$attributeCode]['rel_nofollow'] = (bool) $attribute->getIsDisplayRelNofollow();

Possibly zero references to use statement for classlike/namespace Optimizer (\Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer)
Open

use Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer;

Returning type null but getOptimizer() is declared to return \Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface
Open

        return null;

Assigning \Smile\ElasticsuiteCore\Search\Request\Query\Builder to property but \Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer\Preview\CategoryQuery->queryBuilder is \Smile\ElasticsuiteCore\Search\Request\Query\Filter\QueryBuilder
Open

        $this->queryBuilder           = $queryBuilder;

Returning type \Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface but deleteById() is declared to return bool
Open

        return $this->delete($this->getById($optimizerId));

Class \Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Fulltext\Collection was passed to foreach, but it does not extend Traversable and none of its declared properties are accessible from this context. (This check excludes dynamic properties)
Open

            foreach ($this->productCollection as $product) {

Suspicious array access to float|int
Open

            $fields[$fieldName] = $this->mappingFieldFactory->create(['name' => $fieldName] + $fieldConfig);

syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)
Open

        private ClientInterface $client,
Severity
Category
Status
Source
Language