codeformunich/Muenchen-Transparent

View on GitHub

Showing 176 of 1,630 total issues

Avoid too many return statements within this method.
Open

        return trim($titel);
Severity: Major
Found in protected/components/RISTools.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return $matches['tag'] . '.' . $matches['monat'] . '.' . $matches['jahr'];
    Severity: Major
    Found in protected/components/RISTools.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return "Niederschrift";
      Severity: Major
      Found in protected/components/RISTools.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return ['error' => 'No such object type ' . $type];
        Severity: Major
        Found in protected/components/OParl10Object.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $name;
          Severity: Major
          Found in protected/models/Dokument.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return 1;
            Severity: Major
            Found in protected/models/Bezirksausschuss.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          if ($this->id == 3312427) return "FDP - HUT";
              Severity: Major
              Found in protected/models/Fraktion.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            if ($this->id == 5986278) return "SPD / Volt";
                Severity: Major
                Found in protected/models/Fraktion.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          else if ($type == 'system'         ) return self::system();
                  Severity: Major
                  Found in protected/components/OParl10Object.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                if (strlen($name) > 20 && $this->antrag && strlen($this->antrag->getName()) <= 255 && levenshtein($name, $this->antrag->getName()) < 4) return "Dokument";
                    Severity: Major
                    Found in protected/models/Dokument.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $tos[0];
                      Severity: Major
                      Found in protected/models/Termin.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return "Nachtrag";
                        Severity: Major
                        Found in protected/components/RISTools.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  else if ($type == 'organization'   ) return self::organization($id, $subtype);
                          Severity: Major
                          Found in protected/components/OParl10Object.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    else if ($type == 'person'         ) return self::person($id);
                            Severity: Major
                            Found in protected/components/OParl10Object.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      else if ($type == 'consultation'   ) return self::consultation($id);
                              Severity: Major
                              Found in protected/components/OParl10Object.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return 10;
                                Severity: Major
                                Found in protected/models/Bezirksausschuss.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return -1;
                                  Severity: Major
                                  Found in protected/models/Bezirksausschuss.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return $matches['tag'] . '.' . $matches['monat'] . '.' . $matches['jahr'];
                                    Severity: Major
                                    Found in protected/components/RISTools.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return $matches["anfang"] . " (" . trim($matches["name"]) . ")";
                                      Severity: Major
                                      Found in protected/components/RISTools.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                else if ($type == 'paper'          ) return self::paper($id);
                                        Severity: Major
                                        Found in protected/components/OParl10Object.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language