yiisoft/yii2

View on GitHub

Showing 172 of 2,466 total issues

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 $this->_content;
    Severity: Major
    Found in framework/widgets/FragmentCache.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 Yii::t('yii', '{nFormatted} MB', $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 Yii::t('yii', '{nFormatted} TB', $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', '{nFormatted} {n, plural, =1{gigabyte} other{gigabytes}}', $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{terabyte} other{terabytes}}', $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} PB', $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{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 $this->translations[$category] = $this->translations['*'] = Yii::createObject($source);
                        Severity: Major
                        Found in framework/i18n/I18N.php - About 30 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language