Showing 176 of 1,630 total issues
File IndexController.php
has 774 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
class IndexController extends RISBaseController
{
public static $BA_DOKUMENTE_TAGE_PRO_SEITE = 14;
File jquery.autocomplete.js
has 620 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Autocomplete - jQuery plugin 1.1pre
*
* Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
*
Function Autocompleter
has 272 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
$.Autocompleter = function(input, options) {
var KEY = {
UP: 38,
DOWN: 40,
File Dokument.php
has 484 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This is the model class for table "dokumente".
*
Function Select
has 169 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
$.Autocompleter.Select = function (options, input, select, config) {
var CLASSES = {
ACTIVE: "ac_over"
};
File Antrag.php
has 395 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This is the model class for table "antraege".
*
Method parse
has 135 lines of code (exceeds 30 allowed). Consider refactoring. Open
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);
Method parse
has 125 lines of code (exceeds 30 allowed). Consider refactoring. Open
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";
File OParl10Object.php
has 364 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Enthält die Funktionen zum Erzeugen alle OParl-Objekte. Der Zugriff auf die Objekte wird durch die get()-Methode
* abstrahiert.
File RISSucheKrits.php
has 360 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
class RISSucheKrits
{
/** @var array */
File RISTools.php
has 356 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
use Laminas\Mail\Message;
class RISTools
File BenutzerIn.php
has 355 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
use JetBrains\PhpStorm\ArrayShape;
/**
Dokument
has 35 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Dokument extends CActiveRecord implements IRISItem
{
public const TYP_STADTRAT_ANTRAG = "stadtrat_antrag";
public const TYP_STADTRAT_VORLAGE = "stadtrat_vorlage";
BenutzerIn
has 34 functions (exceeds 20 allowed). Consider refactoring. Open
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;
File pdf_embed.php
has 340 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @var string $url
*/
?>
File leaflet.spiderfy.js
has 339 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Method actionIndex
has 105 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function actionIndex($code = "")
{
$this->top_menu = "benachrichtigungen";
$this->requireLogin($this->createUrl("index/benachrichtigungen"), $code);
Method parse
has 104 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function parse(int $id): ?Termin
{
if (SITE_CALL_MODE != "cron") echo "- Termin $id\n";
$parsed = $this->downloadCalendarEntryWithDependencies($id);
Method parseFromHtml
has 101 lines of code (exceeds 30 allowed). Consider refactoring. Open
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');
}
Function Cache
has 97 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
$.Autocompleter.Cache = function(options) {
var data = {};
var length = 0;