yiisoft/yii2

View on GitHub

Showing 172 of 2,466 total issues

Avoid too many return statements within this method.
Open

                return $number . 'th';
Severity: Major
Found in framework/helpers/BaseInflector.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return $default;
    Severity: Major
    Found in framework/helpers/BaseArrayHelper.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return $array->$key;
      Severity: Major
      Found in framework/helpers/BaseArrayHelper.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $nullCondition;
        Severity: Major
        Found in framework/db/conditions/InConditionBuilder.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

                            return !file_exists($path);
            Severity: Major
            Found in framework/helpers/BaseFileHelper.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return $operator === 'IN' ? '0=1' : '';
              Severity: Major
              Found in framework/db/conditions/InConditionBuilder.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return $size = false;
                Severity: Major
                Found in framework/helpers/BaseConsole.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return true;
                  Severity: Major
                  Found in framework/helpers/BaseFileHelper.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return [$object];
                    Severity: Major
                    Found in framework/helpers/BaseArrayHelper.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return $size = [$width, $height];
                      Severity: Major
                      Found in framework/helpers/BaseConsole.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return $size = [$width, $height];
                        Severity: Major
                        Found in framework/helpers/BaseConsole.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                              return $default;
                          Severity: Major
                          Found in framework/helpers/BaseArrayHelper.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

                                                  return $size = [(int) $matches[2], (int) $matches[1]];
                              Severity: Major
                              Found in framework/helpers/BaseConsole.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return $nullCondition !== null && $nullConditionOperator !== null
                                            ? sprintf('%s %s %s', $sql, $nullConditionOperator, $nullCondition)
                                            : $sql;
                                Severity: Major
                                Found in framework/db/conditions/InConditionBuilder.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                      return $value;
                                  Severity: Major
                                  Found in framework/db/ColumnSchema.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return (bool) $value && $value !== "\0" && strtolower($value) !== 'false';
                                    Severity: Major
                                    Found in framework/db/ColumnSchema.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 $this->typecast($value);
                                        Severity: Major
                                        Found in framework/db/pgsql/ColumnSchema.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language