Showing 176 of 1,630 total issues
Method getBeschreibungDerSuche
has 97 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function getBeschreibungDerSuche($dokument = null)
{
if (count($this->krits) == 1) switch ($this->krits[0]["typ"]) {
case "betreff":
$such = $this->krits[0]["suchbegriff"];
File anzeige.php
has 318 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @var Antrag $antrag
* @var AntraegeController $this
* @var bool $tag_mode
Method parse
has 95 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function parse(int $id): StadtraetIn
{
if (SITE_CALL_MODE != "cron") echo "- StadträtIn $id\n";
$htmlFraktionen = $this->curlBasedDownloader->loadUrl(RIS_URL_PREFIX . 'person/detail/' . $id . '?tab=fraktionen');
Method run
has 93 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function run($args)
{
$sitemap_files = [];
Antrag
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Antrag extends CActiveRecord implements IRISItemHasDocuments
{
public const TYP_STADTRAT_ANTRAG = "stadtrat_antrag";
public const TYP_STADTRAT_VORLAGE = "stadtrat_vorlage";
File index.php
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @var $this IndexController
* @var $error array
* @var string $code
Method parse
has 86 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function parse(int $id): ?Antrag
{
if (SITE_CALL_MODE != "cron") echo "- Antrag $id\n";
$html = $this->curlBasedDownloader->loadUrl(RIS_URL_PREFIX . 'antrag/detail/' . $id);
Method parse
has 85 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function parse($ba_nr): mixed
{
$ba_nr = IntVal($ba_nr);
if (SITE_CALL_MODE != "cron") echo "- BA $ba_nr\n";
Function initBAsWidget
has 83 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
initBAsWidget: function () {
function geojson_show(e) {
var layer = e.target;
layer.setStyle({
File antraegekarte.jquery.js
has 296 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"use strict";
$.widget("muenchen-transparent.AntraegeKarte", {
options: {
lat: 48.15509285476017,
Method parse
has 81 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function parse(int $id): ?Antrag
{
if (SITE_CALL_MODE != "cron") echo "- Antrag $id\n";
$html = $this->curlBasedDownloader->loadUrl(RIS_URL_PREFIX . 'antrag/detail/' . $id);
IndexController
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class IndexController extends RISBaseController
{
public static $BA_DOKUMENTE_TAGE_PRO_SEITE = 14;
/**
Method korrigiereDokumentenTitel
has 80 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public static function korrigiereDokumentenTitel($titel)
{
$titel = trim(str_replace("_", " ", $titel));
if (preg_match("/^[0-9]+to[0-9]+$/siu", $titel)) {
Method actionGeojsonSuche
has 77 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function actionGeojsonSuche()
{
$krits = new RISSucheKrits();
$solr = RISSolrHelper::getSolrClient();
Method benachrichtigungsErgebnisse
has 77 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
#[ArrayShape(["antraege" => "array", "termine" => "array", "vorgaenge" => "array"])]
public function benachrichtigungsErgebnisse(int $zeitspanne): array
{
$benachrichtigungen = $this->getBenachrichtigungen();
Method parse
has 76 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function parse(int $id): ?Antrag
{
if (SITE_CALL_MODE != "cron") echo "- Initiative $id\n";
$html = $this->curlBasedDownloader->loadUrl(RIS_URL_PREFIX . 'antrag/detail/' . $id);
Method parseFromHtml
has 74 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public static function parseFromHtml(string $html): ?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');
}
Method parseFromHtml
has 69 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public static function parseFromHtml(string $html, int $id): ?self
{
if (!preg_match('/<h1[^>]*>\s*<span[^>]*>(?<date>[^<]*)<span[^>]*><span[^>]*>(?<status>[^>]*)<\/span>/siuU', $html, $match)) {
throw new ParsingException('Not found: date/status');
}
Termin
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Termin extends CActiveRecord implements IRISItemHasDocuments
{
public const CANCELED_STR = 'Entfällt';
public const TYP_AUTO = 0;
Method actionFraktionantraege
has 65 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function actionFraktionantraege($fraktion_id, $limit = 30, $offset = 0) {
Header("Content-Type: application/json; charset=UTF-8");
/** @var Fraktion $fraktion */
$fraktion = Fraktion::model()->findByPk( $fraktion_id );