antaresproject/core

View on GitHub

Showing 265 of 306 total issues

Avoid too many return statements within this method.
Open

        return $configuration;
Severity: Major
Found in src/components/html/src/Adapter/FieldPermissionAdapter.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $value;
    Severity: Major
    Found in src/utils/twig/Extension/Foundation.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return new Twig_SimpleFunction(
                      'component_attributes', $function
              );
      Severity: Major
      Found in src/ui/components/templates/src/Twig/Component.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return "$value";
        Severity: Major
        Found in src/utils/asset/src/JavaScriptDecorator.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return $meta->value;
          Severity: Major
          Found in src/utils/twig/Extension/Avatar.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return '{' . implode(',', $es) . '}';
            Severity: Major
            Found in src/utils/asset/src/JavaScriptDecorator.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return 'Number.NEGATIVE_INFINITY';
              Severity: Major
              Found in src/utils/asset/src/JavaScriptDecorator.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return true;
                Severity: Major
                Found in src/utils/security/src/Traits/DbCryptTrait.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return '';
                  Severity: Major
                  Found in src/utils/twig/Extension/Foundation.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return '[' . implode(',', $es) . ']';
                    Severity: Major
                    Found in src/utils/asset/src/JavaScriptDecorator.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return $this->isCoreCode($args);
                      Severity: Major
                      Found in src/components/exception/Handler.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return response($view, 500);
                        Severity: Major
                        Found in src/components/exception/Handler.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $this->argumentsToString($args);
                          Severity: Major
                          Found in src/components/exception/Handler.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return asset($logoPath . 'logo_default_tear.png');
                            Severity: Major
                            Found in src/foundation/src/helpers.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return response($factory->make($viewPath, $arguments), 500);
                              Severity: Major
                              Found in src/components/exception/Handler.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return $file !== 'unknown' && is_file($file);
                                Severity: Major
                                Found in src/components/exception/Handler.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $options->toArray();
                                  Severity: Major
                                  Found in src/components/html/src/Events/BeforeFormRender.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return response(view('antares/foundation::exception.404', $arguments), 404);
                                    Severity: Major
                                    Found in src/components/exception/Handler.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return response(view('antares/foundation::exception.404_model_not_found', $arguments), 404);
                                      Severity: Major
                                      Found in src/components/exception/Handler.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $this->renderSourceCode($fileName, $errorLine, $maxLines);
                                        Severity: Major
                                        Found in src/components/exception/Handler.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language