laravel/framework

View on GitHub

Showing 864 of 1,073 total issues

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 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 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 Arr::map($results, function ($value, $key) use ($values) {
                    if ($cache = $values->firstWhere('key', $this->prefix.$key)) {
                        return $this->unserialize($cache->value);
                    }
        
        
        Severity: Major
        Found in src/Illuminate/Cache/DatabaseStore.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return array_map($processor, $values);
          Severity: Major
          Found in src/Illuminate/Redis/Connections/PacksPhpRedisValues.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return new NullFailedJobProvider;
            Severity: Major
            Found in src/Illuminate/Queue/QueueServiceProvider.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 redirect($path);

                  Avoid too many return statements within this method.
                  Open

                          return $next($request);

                    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 [$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 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 $this->client->_serialize($value);
                          Severity: Major
                          Found in src/Illuminate/Redis/Connections/PacksPhpRedisValues.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return $this->databaseFailedJobProvider($config);
                            Severity: Major
                            Found in src/Illuminate/Queue/QueueServiceProvider.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return $numerator->remainder($denominator)->isZero();
                              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 ReflectionMethod($class, '__callStatic'))->isPublic();
                                Severity: Major
                                Found in src/Illuminate/Support/Reflector.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 $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 empty($value);
                                      Severity: Major
                                      Found in src/Illuminate/Support/helpers.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return new $dateClass($date->format('Y-m-d H:i:s.u'), $date->getTimezone());
                                        Severity: Major
                                        Found in src/Illuminate/Support/DateFactory.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language