yiisoft/yii2

View on GitHub

Showing 172 of 2,467 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

                    return false;
    Severity: Major
    Found in framework/web/UrlRule.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/web/MultipartFormDataParser.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $this->loadDummyBundle($name);
        Severity: Major
        Found in framework/web/AssetManager.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 $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 [$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->normalizer->normalizeRoute([$pathInfo, []]);
                Severity: Major
                Found in framework/web/UrlManager.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return "$baseUrl/{$route}{$anchor}";
                  Severity: Major
                  Found in framework/web/UrlManager.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return [null, null];
                    Severity: Major
                    Found in framework/web/Request.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $url;
                      Severity: Major
                      Found in framework/web/UrlRule.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

                          Avoid too many return statements within this method.
                          Open

                                  return $url . $anchor;
                          Severity: Major
                          Found in framework/web/UrlManager.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

                              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 $this->_secureForwardedHeaderParts;
                                Severity: Major
                                Found in framework/web/Request.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return "$baseUrl/{$url}{$anchor}";
                                  Severity: Major
                                  Found in framework/web/UrlManager.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 $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 false;
                                        Severity: Major
                                        Found in framework/i18n/MessageFormatter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language