yiisoft/yii2

View on GitHub

Showing 787 of 2,467 total issues

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 Yii::t('yii', 'in {delta, plural, =1{an hour} other{# hours}}', ['delta' => $interval->h], $this->language);
    Severity: Major
    Found in framework/i18n/Formatter.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return Yii::t('yii', '{nFormatted} {n, plural, =1{tebibyte} other{tebibytes}}', $params, $this->language);
      Severity: Major
      Found in framework/i18n/Formatter.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return Yii::t('yii', '{nFormatted} GB', $params, $this->language);
        Severity: Major
        Found in framework/i18n/Formatter.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 [
                                $timestamp,
                                !($info['hour'] === false && $info['minute'] === false && $info['second'] === false),
                                !($info['year'] === false && $info['month'] === false && $info['day'] === false && empty($info['zone'])),
                            ];
            Severity: Major
            Found in framework/i18n/Formatter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

                            return Yii::t('yii', 'just now', [], $this->language);
                Severity: Major
                Found in framework/i18n/Formatter.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                      return Yii::t('yii', '{nFormatted} PiB', $params, $this->language);
                  Severity: Major
                  Found in framework/i18n/Formatter.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                        return Yii::t('yii', '{nFormatted} {n, plural, =1{pebibyte} other{pebibytes}}', $params, $this->language);
                    Severity: Major
                    Found in framework/i18n/Formatter.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

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

                        Avoid too many return statements within this method.
                        Open

                                            return Yii::t('yii', '{nFormatted} B', $params, $this->language);
                        Severity: Major
                        Found in framework/i18n/Formatter.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

                                            return [$this->tooBig, ['max' => $this->max]];
                            Severity: Major
                            Found in framework/validators/NumberValidator.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return Html::tag($tag, Yii::$app->getI18n()->format($summaryContent, [
                                          'begin' => $begin,
                                          'end' => $end,
                                          'count' => $count,
                                          'totalCount' => $totalCount,
                              Severity: Major
                              Found in framework/widgets/BaseListView.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return self::TYPE_TIME;
                                Severity: Major
                                Found in framework/data/DataFilter.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 false;
                                    Severity: Major
                                    Found in framework/i18n/MessageFormatter.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return new DateTime($value, new DateTimeZone($this->defaultTimeZone));
                                      Severity: Major
                                      Found in framework/i18n/Formatter.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

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