yiisoft/yii2

View on GitHub

Showing 172 of 2,467 total issues

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 [];
    Severity: Major
    Found in framework/db/QueryTrait.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 $data;
        Severity: Major
        Found in framework/rest/Serializer.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 $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 $value;
                Severity: Major
                Found in framework/db/ColumnSchema.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 (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 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 $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 $value;
                          Severity: Major
                          Found in framework/db/BaseActiveRecord.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return parent::renderFilterCellContent();
                            Severity: Major
                            Found in framework/grid/DataColumn.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return $result;
                              Severity: Major
                              Found in framework/web/Request.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return null;
                                Severity: Major
                                Found in framework/base/Module.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return -1;
                                  Severity: Major
                                  Found in framework/web/Request.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return 0;
                                    Severity: Major
                                    Found in framework/web/MultipartFormDataParser.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return 0;
                                      Severity: Major
                                      Found in framework/requirements/YiiRequirementChecker.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return [$pathInfo, []];
                                        Severity: Major
                                        Found in framework/web/UrlManager.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language