codeformunich/Muenchen-Transparent

View on GitHub

Showing 176 of 1,630 total issues

Method sucheBenachrichtigungenAnmelden has 48 lines of code (exceeds 30 allowed). Consider refactoring.
Open

    protected function sucheBenachrichtigungenAnmelden($curr_krits, $code)
    {
        $user = Yii::app()->getUser();

        $correct_person      = null;
Severity: Minor
Found in protected/controllers/IndexController.php - About 1 hr to fix

    Method parse has 47 lines of code (exceeds 30 allowed). Consider refactoring.
    Open

        public function parse($fraktion_id, $wahlperiode_id)
        {
    
            $fraktion_id    = IntVal($fraktion_id);
            $wahlperiode_id = IntVal($wahlperiode_id);
    Severity: Minor
    Found in protected/RISParser/StadtratsfraktionParser.php - About 1 hr to fix

      Method run has 47 lines of code (exceeds 30 allowed). Consider refactoring.
      Open

          public function run($args)
          {
              if (posix_getuid() === 0) die("This command cannot be run as root");
      
              echo "Gestartet: " . date("Y-m-d H:i:s") . "\n";
      Severity: Minor
      Found in protected/commands/Update_Ris_HourlyCommand.php - About 1 hr to fix

        Method create_if_necessary has 46 lines of code (exceeds 30 allowed). Consider refactoring.
        Open

            public static function create_if_necessary(string $typ, $antrag_termin_tagesordnungspunkt, DokumentLink $dok): string
            {
                /** @var Dokument|null $dokument */
                $dokument = Dokument::model()->disableDefaultScope()->findByPk($dok->id);
                if ($dokument) {
        Severity: Minor
        Found in protected/models/Dokument.php - About 1 hr to fix

          Function init has 45 lines of code (exceeds 30 allowed). Consider refactoring.
          Open

              "init": function() {
                if ($.fn.ripples && this.options.ripples) {
                  this.ripples();
                }
                if (this.options.input) {
          Severity: Minor
          Found in html/js/material/material.js - About 1 hr to fix

            Method run has 44 lines of code (exceeds 30 allowed). Consider refactoring.
            Open

                public function run($args)
                {
                    if (count($args) != 2) {
                        die("./yiic benachrichtigungen_debug [e@mail] [tage]\n");
                    }
            Severity: Minor
            Found in protected/commands/Benachrichtigungen_DebugCommand.php - About 1 hr to fix

              Method suche_strassen has 43 lines of code (exceeds 30 allowed). Consider refactoring.
              Open

                  public static function suche_strassen($str)
                  {
                      static::init_streets();
                      $antragtext    = static::ris_street_cleanstring($str);
                      $streets_found = [];
              Severity: Minor
              Found in protected/components/RISGeo.php - About 1 hr to fix

                Method run has 42 lines of code (exceeds 30 allowed). Consider refactoring.
                Open

                    public function run($args)
                    {
                        // Etwas eigene Statistik
                        $start_time = microtime(true);
                        $rows_imported = 0;
                Severity: Minor
                Found in protected/commands/ImportStatistikCommand.php - About 1 hr to fix

                  Method parseFromHtml has 41 lines of code (exceeds 30 allowed). Consider refactoring.
                  Open

                      public static function parseFromHtml(string $html, int $pos, bool $public, string $lastHeadingTopNr): ?self
                      {
                          $entry = new self();
                          $entry->position = $pos;
                          $entry->public = $public;
                  Severity: Minor
                  Found in protected/RISParser/CalendarAgendaItem.php - About 1 hr to fix

                    Method getJSGeodata has 40 lines of code (exceeds 30 allowed). Consider refactoring.
                    Open

                        protected function getJSGeodata($krits, $ergebnisse)
                        {
                            $geo = $krits->getGeoKrit();
                            /** @var RISSolrDocument[] $solr_dokumente */
                            $solr_dokumente = $ergebnisse->getDocuments();
                    Severity: Minor
                    Found in protected/controllers/IndexController.php - About 1 hr to fix

                      Method actionAnzeigen has 40 lines of code (exceeds 30 allowed). Consider refactoring.
                      Open

                          public function actionAnzeigen($id)
                          {
                              $this->performLoginActions();
                      
                              /** @var Antrag $antrag */
                      Severity: Minor
                      Found in protected/controllers/AntraegeController.php - About 1 hr to fix

                        Method solrIndex_antrag_do has 40 lines of code (exceeds 30 allowed). Consider refactoring.
                        Open

                            private function solrIndex_antrag_do(\Solarium\QueryType\Update\Query\Query $update): void
                            {
                                if (!$this->antrag) return;
                        
                                $max_datum = "";
                        Severity: Minor
                        Found in protected/models/Dokument.php - About 1 hr to fix

                          Method mitgliederMitFunktionen has 39 lines of code (exceeds 30 allowed). Consider refactoring.
                          Open

                              public function mitgliederMitFunktionen()
                              {
                                  $vollgremium = null;
                                  foreach ($this->gremien as $gremium) {
                                      if ($gremium->gremientyp == "BA-Vollgremium") {
                          Severity: Minor
                          Found in protected/models/Bezirksausschuss.php - About 1 hr to fix

                            Method legislativeterm has 39 lines of code (exceeds 30 allowed). Consider refactoring.
                            Open

                                private static function legislativeterm($id) {
                                    $data = [
                                        [
                                            'type'      => self::TYPE_LEGISLATIVETERM,
                                            'name'      => 'Unbekannt',
                            Severity: Minor
                            Found in protected/components/OParl10Object.php - About 1 hr to fix

                              Method ba_dokumente_nach_datum has 39 lines of code (exceeds 30 allowed). Consider refactoring.
                              Open

                                  private function ba_dokumente_nach_datum($ba_nr, $datum_max, $tage = null)
                                  {
                                      if ($tage === null) $tage = static::$BA_DOKUMENTE_TAGE_PRO_SEITE;
                              
                                      if (preg_match("/^[0-9]{4}\-[0-9]{2}\-[0-9]{2}$/siu", $datum_max)) {
                              Severity: Minor
                              Found in protected/controllers/IndexController.php - About 1 hr to fix

                                Method geo_extract has 37 lines of code (exceeds 30 allowed). Consider refactoring.
                                Open

                                    public function geo_extract(): void
                                    {
                                        $text              = $this->text_ocr_corrected . $this->text_pdf;
                                        $strassen_gefunden = RISGeo::suche_strassen($text);
                                
                                
                                Severity: Minor
                                Found in protected/models/Dokument.php - About 1 hr to fix

                                  Method parseByURL has 37 lines of code (exceeds 30 allowed). Consider refactoring.
                                  Open

                                      public function parseByURL($url_base, $titel, $id)
                                      {
                                          echo "Lese ein: " . $titel . "\n";
                                  
                                          $index = ris_download_string($url_base . "/css/" . $id . "_index.htm");
                                  Severity: Minor
                                  Found in protected/RISParser/StadtrechtParser.php - About 1 hr to fix

                                    Method download_file has 36 lines of code (exceeds 30 allowed). Consider refactoring.
                                    Open

                                        public static function download_file($url_to_read, $filename, $username = "", $password = "", $timeout = 30)
                                        {
                                            $ch = curl_init();
                                    
                                            if ($username != "" || $password != "") {
                                    Severity: Minor
                                    Found in protected/components/RISTools.php - About 1 hr to fix

                                      Method actionBuergerInnenversammlungen has 36 lines of code (exceeds 30 allowed). Consider refactoring.
                                      Open

                                          public function actionBuergerInnenversammlungen()
                                          {
                                              if (!$this->binContentAdmin()) $this->errorMessageAndDie(403, "");
                                      
                                              $this->top_menu = "admin";
                                      Severity: Minor
                                      Found in protected/controllers/AdminController.php - About 1 hr to fix

                                        Function init has 36 lines of code (exceeds 30 allowed). Consider refactoring.
                                        Open

                                          Ripples.prototype.init = function() {
                                            var $element  = this.element;
                                        
                                            $element.on("mousedown touchstart", function(event) {
                                              /**
                                        Severity: Minor
                                        Found in html/js/material/ripples.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language