yiisoft/yii2

View on GitHub

Showing 787 of 2,467 total issues

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 null;
    Severity: Major
    Found in framework/base/Module.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 $a[0] > $b[0] ? 1 : -1;
        Severity: Major
        Found in framework/web/Request.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

                    return [$route, $params];
            Severity: Major
            Found in framework/web/UrlRule.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 $size * 1024 * 1024;
                Severity: Major
                Found in framework/web/MultipartFormDataParser.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $value < $compareValue;
                  Severity: Major
                  Found in framework/validators/CompareValidator.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 [];
                        Severity: Major
                        Found in framework/db/QueryTrait.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 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 [(string) $route, []];
                              Severity: Major
                              Found in framework/web/UrlManager.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 $data;
                                  Severity: Major
                                  Found in framework/rest/Serializer.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return $this->getNormalizer($manager)->normalizeRoute([$route, $params]);
                                    Severity: Major
                                    Found in framework/web/UrlRule.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return [$this->message, []];
                                      Severity: Major
                                      Found in framework/validators/IpValidator.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

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