codeformunich/Muenchen-Transparent

View on GitHub

Showing 176 of 1,630 total issues

File IndexController.php has 774 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

class IndexController extends RISBaseController
{
    public static $BA_DOKUMENTE_TAGE_PRO_SEITE = 14;
Severity: Major
Found in protected/controllers/IndexController.php - About 1 day to fix

    File jquery.autocomplete.js has 620 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * Autocomplete - jQuery plugin 1.1pre
     *
     * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
     *
    Severity: Major
    Found in docs/solr-core/conf/velocity/jquery.autocomplete.js - About 1 day to fix

      Function Autocompleter has 272 lines of code (exceeds 30 allowed). Consider refactoring.
      Open

      $.Autocompleter = function(input, options) {
      
          var KEY = {
              UP: 38,
              DOWN: 40,
      Severity: Major
      Found in docs/solr-core/conf/velocity/jquery.autocomplete.js - About 1 day to fix

        File Dokument.php has 484 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        /**
         * This is the model class for table "dokumente".
         *
        Severity: Minor
        Found in protected/models/Dokument.php - About 7 hrs to fix

          Function Select has 169 lines of code (exceeds 30 allowed). Consider refactoring.
          Open

          $.Autocompleter.Select = function (options, input, select, config) {
              var CLASSES = {
                  ACTIVE: "ac_over"
              };
              
          Severity: Major
          Found in docs/solr-core/conf/velocity/jquery.autocomplete.js - About 6 hrs to fix

            File Antrag.php has 395 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            
            /**
             * This is the model class for table "antraege".
             *
            Severity: Minor
            Found in protected/models/Antrag.php - About 5 hrs to fix

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

                  public function parse(int $id): ?Antrag
                  {
                      if (SITE_CALL_MODE != "cron") echo "- Beschlussvorlage $id\n";
              
                      $html = $this->curlBasedDownloader->loadUrl(RIS_URL_PREFIX . 'sitzungsvorlage/detail/' . $id);
              Severity: Major
              Found in protected/RISParser/StadtratsvorlageParser.php - About 5 hrs to fix

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

                    public function parse($gremien_id, $wahlperiode_id = 0): ?Gremium
                    {
                        $wahlperiode_id = IntVal($wahlperiode_id > 0 ? $wahlperiode_id : static::$WAHLPERIODE_ID);
                        $gremien_id     = IntVal($gremien_id);
                        if (SITE_CALL_MODE != "cron") echo "- Gremium $gremien_id\n";
                Severity: Major
                Found in protected/RISParser/BAGremienParser.php - About 4 hrs to fix

                  File OParl10Object.php has 364 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  
                  /**
                   * Enthält die Funktionen zum Erzeugen alle OParl-Objekte. Der Zugriff auf die Objekte wird durch die get()-Methode
                   * abstrahiert.
                  Severity: Minor
                  Found in protected/components/OParl10Object.php - About 4 hrs to fix

                    File RISSucheKrits.php has 360 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    class RISSucheKrits
                    {
                        /** @var array */
                    Severity: Minor
                    Found in protected/components/RISSucheKrits.php - About 4 hrs to fix

                      File RISTools.php has 356 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      
                      use Laminas\Mail\Message;
                      
                      class RISTools
                      Severity: Minor
                      Found in protected/components/RISTools.php - About 4 hrs to fix

                        File BenutzerIn.php has 355 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        
                        use JetBrains\PhpStorm\ArrayShape;
                        
                        /**
                        Severity: Minor
                        Found in protected/models/BenutzerIn.php - About 4 hrs to fix

                          Dokument has 35 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class Dokument extends CActiveRecord implements IRISItem
                          {
                          
                              public const TYP_STADTRAT_ANTRAG    = "stadtrat_antrag";
                              public const TYP_STADTRAT_VORLAGE   = "stadtrat_vorlage";
                          Severity: Minor
                          Found in protected/models/Dokument.php - About 4 hrs to fix

                            BenutzerIn has 34 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class BenutzerIn extends CActiveRecord
                            {
                                // Hinweis: Müssen 2er-Potenzen sein, also 32, 64, 128, ...
                                public const BERECHTIGUNG_USER = 1;
                                public const BERECHTIGUNG_CONTENT = 2;
                            Severity: Minor
                            Found in protected/models/BenutzerIn.php - About 4 hrs to fix

                              File pdf_embed.php has 340 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              /**
                               * @var string $url
                               */
                              ?>
                              Severity: Minor
                              Found in protected/views/index/pdf_embed.php - About 4 hrs to fix

                                File leaflet.spiderfy.js has 339 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /** @preserve OverlappingMarkerSpiderfier
                                 https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet
                                 Copyright (c) 2011 - 2012 George MacKerron
                                 Released under the MIT licence: http://opensource.org/licenses/mit-license
                                 Note: The Leaflet maps API must be included *before* this code
                                Severity: Minor
                                Found in html/js/leaflet.spiderfy.js - About 4 hrs to fix

                                  Method actionIndex has 105 lines of code (exceeds 30 allowed). Consider refactoring.
                                  Open

                                      public function actionIndex($code = "")
                                      {
                                          $this->top_menu = "benachrichtigungen";
                                  
                                          $this->requireLogin($this->createUrl("index/benachrichtigungen"), $code);
                                  Severity: Major
                                  Found in protected/controllers/BenachrichtigungenController.php - About 4 hrs to fix

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

                                        public function parse(int $id): ?Termin
                                        {
                                            if (SITE_CALL_MODE != "cron") echo "- Termin $id\n";
                                    
                                            $parsed = $this->downloadCalendarEntryWithDependencies($id);
                                    Severity: Major
                                    Found in protected/RISParser/TerminParser.php - About 3 hrs to fix

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

                                          public static function parseFromHtml(string $html, ?int $idFallback = null): ?self
                                          {
                                              if (!preg_match('/<section class="card">.*<div><h2>Betreff<\/h2><\/div>.*<div class="card-body">\s*<div[^>]*>(?<title>[^<]*)<\/div>/siuU', $html, $match)) {
                                                  throw new ParsingException('Not found: title');
                                              }
                                      Severity: Major
                                      Found in protected/RISParser/AntragData.php - About 3 hrs to fix

                                        Function Cache has 97 lines of code (exceeds 30 allowed). Consider refactoring.
                                        Open

                                        $.Autocompleter.Cache = function(options) {
                                        
                                            var data = {};
                                            var length = 0;
                                            
                                        Severity: Major
                                        Found in docs/solr-core/conf/velocity/jquery.autocomplete.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language