Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

Avoid too many return statements within this method.
Open

            return (int) ceil($collectionSize / $this->originalPageSize);

    Avoid too many return statements within this method.
    Open

                return $resultRedirect->setPath('*/*/index');
    Severity: Minor
    Found in src/module-elasticsuite-indices/Controller/Adminhtml/Index/Delete.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return 1;

        Avoid too many return statements within this method.
        Open

                return IndexStatus::UNDEFINED_STATUS;
        Severity: Major
        Found in src/module-elasticsuite-indices/Model/IndexStatusProvider.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return $this->getProductListDefaultSortDirectionBy();

            Avoid too many return statements within this method.
            Open

                    return $items;
            Severity: Minor
            Found in src/module-elasticsuite-catalog/Model/Layer/Filter/Attribute.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return $filter;

                Avoid too many return statements within this method.
                Open

                        return $this->getSize();

                  Avoid too many return statements within this method.
                  Open

                              return IndexStatus::GHOST_STATUS;
                  Severity: Minor
                  Found in src/module-elasticsuite-indices/Model/IndexStatusProvider.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return null;

                      Avoid too many return statements within this method.
                      Open

                              return false;

                        Avoid too many return statements within this method.
                        Open

                                return !empty($showInScope[$scope]);

                          Avoid too many return statements within this method.
                          Open

                                  return array_filter($values);
                          Severity: Minor
                          Found in src/module-elasticsuite-catalog/Helper/AbstractAttribute.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                return !empty($value);
                            Severity: Minor
                            Found in src/module-elasticsuite-catalog/Helper/AbstractAttribute.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return $this->_scopeLabels[ContainerScopeInterface::SCOPE_DEFAULT];

                                Avoid too many return statements within this method.
                                Open

                                                return $resultRedirect->setPath('*/*/edit', $returnParams);

                                  Avoid too many return statements within this method.
                                  Open

                                          return $resultRedirect->setPath('*/*/index');

                                    Avoid too many return statements within this method.
                                    Open

                                            return false;

                                      Avoid too many return statements within this method.
                                      Open

                                              return ['category_uid' => $result];

                                        Avoid too many return statements within this method.
                                        Open

                                                return $controller->getResponse()->setBody($block->toHtml());
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language