antaresproject/core

View on GitHub

Showing 306 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 new Twig_SimpleFunction(
                    'component', $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 '';
      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 $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 '{' . 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 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 ($ajax) ? $object->render() : $object->show();
              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 '';
                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 str_replace(',', '.', (float) $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 '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 ($segments[1] == $module && isset($segments[2]) && (in_array($segments[2], ['index', 'edit']) or is_numeric($segments[2])));
                      Severity: Major
                      Found in src/components/support/src/Support/Fluent.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 $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 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 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(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 $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 $this->renderSourceCode($fileName, $errorLine, $maxLines);
                                    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 response($factory->make($viewPath, $arguments), 500);
                                        Severity: Major
                                        Found in src/components/exception/Handler.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language