yiisoft/yii2

View on GitHub

Showing 787 of 2,467 total issues

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 (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 $serializedArray;
      Severity: Major
      Found in framework/rest/Serializer.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

          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 $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 [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 false;
                Severity: Major
                Found in framework/web/UrlRule.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 null;
                    Severity: Major
                    Found in framework/validators/StringValidator.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

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

                        Avoid too many return statements within this method.
                        Open

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

                          Avoid too many return statements within this method.
                          Open

                                              return $this->fallbackFormat($message, $args, $locale);
                          Severity: Major
                          Found in framework/i18n/MessageFormatter.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->overHeight, ['file' => $image->name, 'limit' => $this->maxHeight]];
                              Severity: Major
                              Found in framework/validators/ImageValidator.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

                                                  return [$this->tooBig, [
                                                      'file' => $value->name,
                                                      'limit' => $this->getSizeLimit(),
                                                      'formattedLimit' => Yii::$app->formatter->asShortSize($this->getSizeLimit()),
                                                  ]];
                                  Severity: Major
                                  Found in framework/validators/FileValidator.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

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                return Yii::t('yii', '{delta, plural, =1{a second} other{# seconds}} ago', ['delta' => $interval->s], $this->language);
                                        Severity: Major
                                        Found in framework/i18n/Formatter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language