Showing 176 of 1,630 total issues
Method actionSuche
has 63 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function actionSuche($code = "")
{
if (AntiXSS::isTokenSet("search_form")) {
$krits = new RISSucheKrits();
if (trim($_REQUEST["volltext"]) != "") $krits->addKrit('volltext', $_REQUEST["volltext"]);
Function input
has 61 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
"input": function(selector) {
$((selector) ? selector : this.options.inputElements)
.filter(":notmdproc")
.data("mdproc", true)
.each( function() {
File StadtraetIn.php
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @property integer $id
* @property integer $referentIn
File Termin.php
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This is the model class for table "termine".
*
StadtraetIn
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class StadtraetIn extends CActiveRecord implements IRISItem
{
public static $GESCHLECHTER = [
"weiblich" => "Weiblich",
"maennlich" => "Männlich",
Method actionTileCache
has 58 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function actionTileCache($width, $zoom, $x, $y)
{
if ($width == 256) {
$boundaries = [
Method addKrit
has 58 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function addKrit($name, $value)
{
switch ($name) {
case "betreff":
$this->krits[] = [
Function _create
has 57 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
_create: function () {
var $widget = this;
// Die eigentliche Karte erstellen
$widget.map = L.map($widget.element.attr("id"), {
Method extractAvailalbleFacets
has 57 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
private function extractAvailalbleFacets($ergebnisse, $krits, $facet_field_names) {
$availalbe_facets = [];
$used_factes = [];
foreach ($facet_field_names as $facet_field_name) {
Function scrollintoview
has 57 lines of code (exceeds 30 allowed). Consider refactoring. Open
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")
Method performLoginActions
has 55 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
protected function performLoginActions($code = "")
{
/** @var CWebUser $user */
$user = Yii::app()->getUser();
Method updateAgendaItem
has 54 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
private function updateAgendaItem(Termin $agenda, CalendarAgendaItem $newItem): string
{
$top = $this->findAndRemoveMatchingOldItem($newItem);
if ($top) {
$oldDataCopy = new Tagesordnungspunkt();
Method run
has 54 lines of code (exceeds 30 allowed). Consider refactoring. Open
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");
Method actionAntraegeAjaxGeo
has 53 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function actionAntraegeAjaxGeo($lat, $lng, $radius, $seite = 0)
{
$krits = new RISSucheKrits();
$krits->addKrit('geo', $lng . '-' . $lat . '-' . $radius);
Method parse
has 52 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function parse($ris_id)
{
$ris_id = IntVal($ris_id);
echo "- Gremium $ris_id\n";
Function spiderfy
has 50 lines of code (exceeds 30 allowed). Consider refactoring. Open
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 () {
Method person
has 50 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
private static function person($id) {
/** @var StadtraetIn $stadtraetin */
$stadtraetin = StadtraetIn::model()->findByPk($id);
$body = 0; // fallback
Method getFormattedDiff
has 50 lines of code (exceeds 30 allowed). Consider refactoring. Open
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)
Method actionTags
has 48 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function actionTags()
{
$ich = $this->aktuelleBenutzerIn();
if (!$ich || !$ich->hatBerechtigung(BenutzerIn::BERECHTIGUNG_TAG)) $this->errorMessageAndDie(403, "");
Method externalList
has 48 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
private static function externalList($body, $filter, $type)
{
$criteria = new CDbCriteria();
$filter->add_mandatory_filter($criteria);