codeformunich/Muenchen-Transparent

View on GitHub

Showing 176 of 1,630 total issues

Method actionSuche has 63 lines of code (exceeds 30 allowed). Consider refactoring.
Open

    public function actionSuche($code = "")
    {
        if (AntiXSS::isTokenSet("search_form")) {
            $krits = new RISSucheKrits();
            if (trim($_REQUEST["volltext"]) != "")  $krits->addKrit('volltext',   $_REQUEST["volltext"]);
Severity: Major
Found in protected/controllers/IndexController.php - About 2 hrs to fix

    Function input has 61 lines of code (exceeds 30 allowed). Consider refactoring.
    Open

        "input": function(selector) {
          $((selector) ? selector : this.options.inputElements)
          .filter(":notmdproc")
          .data("mdproc", true)
          .each( function() {
    Severity: Major
    Found in html/js/material/material.js - About 2 hrs to fix

      File StadtraetIn.php has 260 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      /**
       * @property integer $id
       * @property integer $referentIn
      Severity: Minor
      Found in protected/models/StadtraetIn.php - About 2 hrs to fix

        File Termin.php has 259 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

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

          StadtraetIn has 21 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class StadtraetIn extends CActiveRecord implements IRISItem
          {
              public static $GESCHLECHTER = [
                  "weiblich"  => "Weiblich",
                  "maennlich" => "Männlich",
          Severity: Minor
          Found in protected/models/StadtraetIn.php - About 2 hrs to fix

            Method actionTileCache has 58 lines of code (exceeds 30 allowed). Consider refactoring.
            Open

                public function actionTileCache($width, $zoom, $x, $y)
                {
            
                    if ($width == 256) {
                        $boundaries = [
            Severity: Major
            Found in protected/controllers/IndexController.php - About 2 hrs to fix

              Method addKrit has 58 lines of code (exceeds 30 allowed). Consider refactoring.
              Open

                  public function addKrit($name, $value)
                  {
                      switch ($name) {
                          case "betreff":
                              $this->krits[] = [
              Severity: Major
              Found in protected/components/RISSucheKrits.php - About 2 hrs to fix

                Function _create has 57 lines of code (exceeds 30 allowed). Consider refactoring.
                Open

                    _create: function () {
                        var $widget = this;
                
                        // Die eigentliche Karte erstellen
                        $widget.map = L.map($widget.element.attr("id"), {
                Severity: Major
                Found in html/js/antraegekarte.jquery.js - About 2 hrs to fix

                  Method extractAvailalbleFacets has 57 lines of code (exceeds 30 allowed). Consider refactoring.
                  Open

                      private function extractAvailalbleFacets($ergebnisse, $krits, $facet_field_names) {
                          $availalbe_facets = [];
                          $used_factes      = [];
                  
                          foreach ($facet_field_names as $facet_field_name) {
                  Severity: Major
                  Found in protected/controllers/IndexController.php - About 2 hrs to fix

                    Function scrollintoview has 57 lines of code (exceeds 30 allowed). Consider refactoring.
                    Open

                            scrollintoview: function (options) {
                                /// <summary>Scrolls the first element in the set into view by scrolling its closest scrollable parent.</summary>
                                /// <param name="options" type="Object">Additional options that can configure scrolling:
                                ///        duration (default: "fast") - jQuery animation speed (can be a duration string or number of milliseconds)
                                ///        direction (default: "both") - select possible scrollings ("vertical" or "y", "horizontal" or "x", "both")
                    Severity: Major
                    Found in html/js/scrollintoview.js - About 2 hrs to fix

                      Method performLoginActions has 55 lines of code (exceeds 30 allowed). Consider refactoring.
                      Open

                          protected function performLoginActions($code = "")
                          {
                              /** @var CWebUser $user */
                              $user = Yii::app()->getUser();
                      
                      
                      Severity: Major
                      Found in protected/components/RISBaseController.php - About 2 hrs to fix

                        Method updateAgendaItem has 54 lines of code (exceeds 30 allowed). Consider refactoring.
                        Open

                            private function updateAgendaItem(Termin $agenda, CalendarAgendaItem $newItem): string
                            {
                                $top = $this->findAndRemoveMatchingOldItem($newItem);
                                if ($top) {
                                    $oldDataCopy = new Tagesordnungspunkt();
                        Severity: Major
                        Found in protected/RISParser/CalendarAgendaUpdater.php - About 1 hr to fix

                          Method run has 54 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");
                          Severity: Major
                          Found in protected/commands/Update_Ris_DailyCommand.php - About 1 hr to fix

                            Method actionAntraegeAjaxGeo has 53 lines of code (exceeds 30 allowed). Consider refactoring.
                            Open

                                public function actionAntraegeAjaxGeo($lat, $lng, $radius, $seite = 0)
                                {
                                    $krits = new RISSucheKrits();
                                    $krits->addKrit('geo', $lng . '-' . $lat . '-' . $radius);
                            
                            
                            Severity: Major
                            Found in protected/controllers/IndexController.php - About 1 hr to fix

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

                                  public function parse($ris_id)
                                  {
                                      $ris_id = IntVal($ris_id);
                                      echo "- Gremium $ris_id\n";
                              
                              
                              Severity: Major
                              Found in protected/RISParser/StadtratGremiumParser.php - About 1 hr to fix

                                Function spiderfy has 50 lines of code (exceeds 30 allowed). Consider refactoring.
                                Open

                                        p.spiderfy = function (markerData, nonNearbyMarkers) {
                                            var bodyPt, footLl, footPt, footPts, leg, marker, md, mhl, nearestMarkerDatum, numFeet, spiderfiedMarkers;
                                            this.spiderfying = true;
                                            numFeet = markerData.length;
                                            bodyPt = this.ptAverage((function () {
                                Severity: Minor
                                Found in html/js/leaflet.spiderfy.js - About 1 hr to fix

                                  Method person has 50 lines of code (exceeds 30 allowed). Consider refactoring.
                                  Open

                                      private static function person($id) {
                                          /** @var StadtraetIn $stadtraetin */
                                          $stadtraetin = StadtraetIn::model()->findByPk($id);
                                  
                                          $body = 0; // fallback
                                  Severity: Minor
                                  Found in protected/components/OParl10Object.php - About 1 hr to fix

                                    Method getFormattedDiff has 50 lines of code (exceeds 30 allowed). Consider refactoring.
                                    Open

                                        public function getFormattedDiff()
                                        {
                                            $felder = [];
                                            if ($this->antrag_alt->betreff != $this->antrag_neu->betreff) $felder[] = new HistorienEintragFeld(
                                                "Betreff", CHtml::encode($this->antrag_alt->betreff), CHtml::encode($this->antrag_neu->betreff)
                                    Severity: Minor
                                    Found in protected/components/HistorienEintragAntrag.php - About 1 hr to fix

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

                                          public function actionTags()
                                          {
                                              $ich = $this->aktuelleBenutzerIn();
                                              if (!$ich || !$ich->hatBerechtigung(BenutzerIn::BERECHTIGUNG_TAG)) $this->errorMessageAndDie(403, "");
                                      
                                      
                                      Severity: Minor
                                      Found in protected/controllers/AdminController.php - About 1 hr to fix

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

                                            private static function externalList($body, $filter, $type)
                                            {
                                                $criteria = new CDbCriteria();
                                                $filter->add_mandatory_filter($criteria);
                                        
                                        
                                        Severity: Minor
                                        Found in protected/components/OParl10List.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language