Smile-SA/elasticsuite

View on GitHub

Showing 620 of 1,375 total issues

Avoid too many return statements within this function.
Open

        return 'right';
Severity: Minor
Found in src/module-elasticsuite-core/view/adminhtml/web/js/lib/chart.js - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return false;
    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 $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 IndexStatus::LIVE_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 $this->getProductListDefaultSortDirectionBy();

            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];
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language