symphonycms/symphony-2

View on GitHub

Showing 714 of 844 total issues

Avoid too many return statements within this method.
Open

                return $this->buildWhereClauseFromArray($c);
Severity: Major
Found in symphony/lib/toolkit/trait.databasewheredefinition.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return "MATCH ($tk) AGAINST ($pk IN BOOLEAN MODE)";
    Severity: Major
    Found in symphony/lib/toolkit/trait.databasewheredefinition.php - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                      return Symphony.Language.get('about {$hours} hours ago', {
                          'hours': Math.floor(time / 60)
                      });
      Severity: Major
      Found in symphony/assets/js/src/symphony.timeago.js - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return "$tk $op $k";
        Severity: Major
        Found in symphony/lib/toolkit/trait.databasewheredefinition.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return ['e.id' => [$op => $v]];
          Severity: Major
          Found in symphony/lib/toolkit/class.entryquery.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return $ip === -1 ? $this->asTickedString($p) : "$ip";
            Severity: Major
            Found in symphony/lib/toolkit/class.databasestatement.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return false;
              Severity: Major
              Found in symphony/lib/toolkit/class.general.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return $this->asTickedList(explode(self::VALUES_DELIMITER, $value));
                Severity: Major
                Found in symphony/lib/toolkit/class.databasestatement.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $value;
                  Severity: Major
                  Found in symphony/lib/toolkit/class.databasestatement.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return $value;
                    Severity: Major
                    Found in symphony/lib/toolkit/class.databasestatement.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return "($value) AS $alias";
                      Severity: Major
                      Found in symphony/lib/toolkit/class.databasestatement.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return $value;
                        Severity: Major
                        Found in symphony/lib/toolkit/class.databasestatement.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return array_merge($memo, array_map(function ($val) {
                                              $val = General::intval($val);
                          
                                              // General::intval can return -1, so reset that to 0
                                              // so there are no side effects for the following
                          Severity: Major
                          Found in symphony/lib/toolkit/class.entryquery.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return $this;
                            Severity: Major
                            Found in symphony/lib/toolkit/class.entryquery.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return PDO::PARAM_STR;
                              Severity: Major
                              Found in symphony/lib/toolkit/class.database.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return $fxCall;
                                Severity: Major
                                Found in symphony/lib/toolkit/class.databasestatement.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return $this->where($conditions);
                                  Severity: Major
                                  Found in symphony/lib/toolkit/class.entryquery.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return true;
                                    Severity: Major
                                    Found in symphony/lib/toolkit/class.general.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return "$value AS $alias";
                                      Severity: Major
                                      Found in symphony/lib/toolkit/class.databasestatement.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return $this;
                                        Severity: Major
                                        Found in symphony/lib/toolkit/class.entryquery.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language