laravel/framework

View on GitHub

Showing 1,026 of 1,026 total issues

Avoid too many return statements within this method.
Open

                return ($number == 1) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 12) || ($number % 100 > 14))) ? 1 : 2);
Severity: Major
Found in src/Illuminate/Translation/MessageSelector.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return $this->toBase()->{$method}(...$parameters);
    Severity: Major
    Found in src/Illuminate/Database/Eloquent/Builder.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return ($number == 1) ? 0 : (($number == 2) ? 1 : 2);
      Severity: Major
      Found in src/Illuminate/Translation/MessageSelector.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return ($number % 100 == 1) ? 0 : (($number % 100 == 2) ? 1 : ((($number % 100 == 3) || ($number % 100 == 4)) ? 2 : 3));
        Severity: Major
        Found in src/Illuminate/Translation/MessageSelector.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return $component;
          Severity: Major
          Found in src/Illuminate/View/Compilers/ComponentTagCompiler.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return $exception;
            Severity: Major
            Found in src/Illuminate/Testing/TestResponse.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return ($number == 1) ? 0 : (($number == 2) ? 1 : ((($number == 8) || ($number == 11)) ? 2 : 3));
              Severity: Major
              Found in src/Illuminate/Translation/MessageSelector.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return $instances;
                Severity: Major
                Found in src/Illuminate/Database/Eloquent/Factories/Factory.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $guess;
                  Severity: Major
                  Found in src/Illuminate/View/Compilers/ComponentTagCompiler.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return $this;
                    Severity: Major
                    Found in src/Illuminate/Testing/Fluent/Concerns/Has.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return ($number == 1) ? 0 : ((($number >= 2) && ($number <= 4)) ? 1 : 2);
                      Severity: Major
                      Found in src/Illuminate/Translation/MessageSelector.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return false;
                        Severity: Major
                        Found in src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

                                            return $this->fromJson($value, true);
                            Severity: Major
                            Found in src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return $this->fillJsonAttribute($key, $value);
                              Severity: Major
                              Found in src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return is_numeric($attribute) && is_numeric($original)
                                            && strcmp((string) $attribute, (string) $original) === 0;
                                Severity: Major
                                Found in src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return $this->asDateTime($value)->toImmutable();
                                  Severity: Major
                                  Found in src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return $this->whereNull($column, $boolean, $operator !== '=');
                                    Severity: Major
                                    Found in src/Illuminate/Database/Query/Builder.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return new BaseCollection($this->fromJson($value));
                                      Severity: Major
                                      Found in src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return $this->castAttribute($key, $attribute) ===
                                                        $this->castAttribute($key, $original);
                                        Severity: Major
                                        Found in src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language