Smile-SA/elasticsuite

View on GitHub

Showing 607 of 1,357 total issues

Avoid too many return statements within this function.
Open

                return false;
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 function.
    Open

                    return {top: me.top, left: 0, bottom: me.bottom, right: chart.width};
    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 function.
      Open

              return ['origin', 'start', 'end', 'stack'].indexOf(fill) >= 0 && fill;
      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 function.
        Open

                    return (me._cache.data = me.normalize(timestamps));
        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 $resultRedirect->setPath('*/*/edit', ['id' => $this->getRequest()->getParam('id')]);

            Avoid too many return statements within this function.
            Open

                                return true;
            Severity: Minor
            Found in src/module-elasticsuite-catalog/view/frontend/web/js/mouse.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return splitByStyles(solidSegments(points, start, max, completeLoop), points, segmentOptions);
              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 function.
                Open

                        return createBoundaryLine(boundary, line);
                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 function.
                  Open

                          return {
                              start: pos,
                              end: pos + size
                          };
                  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 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 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 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 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 null; // Handle category not found or other exceptions.

                              Avoid too many return statements within this method.
                              Open

                                      return null;

                                Avoid too many return statements within this method.
                                Open

                                        return null;

                                  Avoid too many return statements within this method.
                                  Open

                                          return $filter;

                                    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 $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 $items;
                                        Severity: Minor
                                        Found in src/module-elasticsuite-catalog/Model/Layer/Filter/Attribute.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language