Smile-SA/elasticsuite

View on GitHub

Showing 607 of 1,357 total issues

Avoid too many return statements within this method.
Open

            return 1;

    Avoid too many return statements within this method.
    Open

            return $this->getSize();

      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 false;

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

                    return false;

              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 $this->_scopeLabels[ContainerScopeInterface::SCOPE_DEFAULT];

                  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 false;

                      Avoid too many return statements within this method.
                      Open

                              return parent::renderCellTemplate($columnName);

                        Avoid too many return statements within this method.
                        Open

                                return false;
                        Severity: Minor
                        Found in src/module-elasticsuite-thesaurus/Model/Import/Thesaurus.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return ['category_id' => $result];

                            Avoid too many return statements within this method.
                            Open

                                        return $resultRedirect->setPath('*/*/edit', ['thesaurus_id' => $this->getRequest()->getParam('thesaurus_id')]);

                              Avoid too many return statements within this method.
                              Open

                                          return [];

                                Avoid too many return statements within this method.
                                Open

                                        return $controller->getResponse()->setBody($block->toHtml());

                                  Avoid too many return statements within this method.
                                  Open

                                              return [];

                                    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 [];
                                        Severity: Minor
                                        Found in src/module-elasticsuite-catalog-graph-ql/Model/Resolver/Aggregations.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language