laravel/framework

View on GitHub

Showing 1,012 of 1,012 total issues

Avoid too many return statements within this method.
Open

        return value($default);
Severity: Major
Found in src/Illuminate/Collections/Arr.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return new InputOption($token, $shortcut, InputOption::VALUE_NONE, $description);
    Severity: Major
    Found in src/Illuminate/Console/Parser.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return $next($request);

        Avoid too many return statements within this method.
        Open

                        return new InputArgument($token, InputArgument::REQUIRED, $description);
        Severity: Major
        Found in src/Illuminate/Console/Parser.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return new RateLimiter($app->make('cache')->driver(
                          $app['config']->get('cache.limiter')
                      ));
          Severity: Major
          Found in src/Illuminate/Cache/CacheServiceProvider.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return false;
            Severity: Major
            Found in src/Illuminate/Collections/Arr.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                  return collect($this->components->choice($prompt->label, ['' => 'None', ...$options], '', multiple: true))
                                      ->reject('')
                                      ->values()
                                      ->all();
              Severity: Major
              Found in src/Illuminate/Console/Concerns/ConfiguresPrompts.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return new InputArgument($matches[1], InputArgument::OPTIONAL, $description, $matches[2]);
                Severity: Major
                Found in src/Illuminate/Console/Parser.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $this->components->choice($prompt->label, $options, multiple: true);
                  Severity: Major
                  Found in src/Illuminate/Console/Concerns/ConfiguresPrompts.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return value($default);
                    Severity: Major
                    Found in src/Illuminate/Collections/helpers.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $target;
                      Severity: Major
                      Found in src/Illuminate/Collections/helpers.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return compact('data', 'time');
                        Severity: Major
                        Found in src/Illuminate/Cache/FileStore.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return response(
                                              $data['template'],
                                              $data['status'] ?? 503,
                                              $this->getHeaders($data)
                                          );

                            Avoid too many return statements within this method.
                            Open

                                    return $this->getSize($attribute, $value) >= $this->getSize($attribute, $comparedToValue);
                            Severity: Major
                            Found in src/Illuminate/Validation/Concerns/ValidatesAttributes.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return new HtmlString(app('config')->get('app.mix_url').$manifestDirectory.$manifest[$path]);
                              Severity: Major
                              Found in src/Illuminate/Foundation/Mix.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return (string) $value;
                                Severity: Major
                                Found in src/Illuminate/Validation/Concerns/FormatsMessages.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return [$file, $relativeFile, $line];
                                  Severity: Major
                                  Found in src/Illuminate/Foundation/Concerns/ResolvesDumpSource.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return $this->getFromLocalArray(
                                                $attribute, $lowerRule, $this->fallbackMessages
                                            ) ?: $key;
                                    Severity: Major
                                    Found in src/Illuminate/Validation/Concerns/FormatsMessages.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return 0;
                                      Severity: Major
                                      Found in src/Illuminate/Foundation/Console/AboutCommand.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return $this->getSize($attribute, $value) > $this->getSize($attribute, $comparedToValue);
                                        Severity: Major
                                        Found in src/Illuminate/Validation/Concerns/ValidatesAttributes.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language