yiisoft/yii2

View on GitHub

Showing 787 of 2,467 total issues

Avoid too many return statements within this method.
Open

                return !file_exists($path);
Severity: Major
Found in framework/helpers/BaseFileHelper.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $size = [$width, $height];
    Severity: Major
    Found in framework/helpers/BaseConsole.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return $value;
      Severity: Major
      Found in framework/db/ColumnSchema.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return (float) $value;
        Severity: Major
        Found in framework/db/ColumnSchema.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return (string) $value->value;
          Severity: Major
          Found in framework/db/ColumnSchema.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return (int) $value;
            Severity: Major
            Found in framework/db/ColumnSchema.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return $this->typecast($value);
              Severity: Major
              Found in framework/db/pgsql/ColumnSchema.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return (bool) $value && $value !== "\0" && strtolower($value) !== 'false';
                Severity: Major
                Found in framework/db/ColumnSchema.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return $data;
                  Severity: Major
                  Found in framework/rest/Serializer.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                        return StringHelper::floatToString($value);
                    Severity: Major
                    Found in framework/db/ColumnSchema.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $value;
                      Severity: Major
                      Found in framework/db/ColumnSchema.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return $this->disableJsonSupport ? $value : json_decode($value, true);
                        Severity: Major
                        Found in framework/db/pgsql/ColumnSchema.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return (string) $value;
                          Severity: Major
                          Found in framework/db/ColumnSchema.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return $condition;
                            Severity: Major
                            Found in framework/db/QueryTrait.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return $serializedArray;
                              Severity: Major
                              Found in framework/rest/Serializer.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                    return [];
                                Severity: Major
                                Found in framework/db/QueryTrait.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return parent::phpTypecast($value);
                                  Severity: Major
                                  Found in framework/db/pgsql/ColumnSchema.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return $value;
                                    Severity: Major
                                    Found in framework/db/BaseActiveRecord.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                          return (int) $value->value;
                                      Severity: Major
                                      Found in framework/db/ColumnSchema.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $size * 1024 * 1024 * 1024;
                                        Severity: Major
                                        Found in framework/requirements/YiiRequirementChecker.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language