Showing 176 of 1,630 total issues
Method sucheBenachrichtigungenAnmelden
has 48 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
protected function sucheBenachrichtigungenAnmelden($curr_krits, $code)
{
$user = Yii::app()->getUser();
$correct_person = null;
Method parse
has 47 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function parse($fraktion_id, $wahlperiode_id)
{
$fraktion_id = IntVal($fraktion_id);
$wahlperiode_id = IntVal($wahlperiode_id);
Method run
has 47 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") . "\n";
Method create_if_necessary
has 46 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public static function create_if_necessary(string $typ, $antrag_termin_tagesordnungspunkt, DokumentLink $dok): string
{
/** @var Dokument|null $dokument */
$dokument = Dokument::model()->disableDefaultScope()->findByPk($dok->id);
if ($dokument) {
Function init
has 45 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
"init": function() {
if ($.fn.ripples && this.options.ripples) {
this.ripples();
}
if (this.options.input) {
Method run
has 44 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function run($args)
{
if (count($args) != 2) {
die("./yiic benachrichtigungen_debug [e@mail] [tage]\n");
}
Method suche_strassen
has 43 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public static function suche_strassen($str)
{
static::init_streets();
$antragtext = static::ris_street_cleanstring($str);
$streets_found = [];
Method run
has 42 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function run($args)
{
// Etwas eigene Statistik
$start_time = microtime(true);
$rows_imported = 0;
Method parseFromHtml
has 41 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public static function parseFromHtml(string $html, int $pos, bool $public, string $lastHeadingTopNr): ?self
{
$entry = new self();
$entry->position = $pos;
$entry->public = $public;
Method getJSGeodata
has 40 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
protected function getJSGeodata($krits, $ergebnisse)
{
$geo = $krits->getGeoKrit();
/** @var RISSolrDocument[] $solr_dokumente */
$solr_dokumente = $ergebnisse->getDocuments();
Method actionAnzeigen
has 40 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function actionAnzeigen($id)
{
$this->performLoginActions();
/** @var Antrag $antrag */
Method solrIndex_antrag_do
has 40 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
private function solrIndex_antrag_do(\Solarium\QueryType\Update\Query\Query $update): void
{
if (!$this->antrag) return;
$max_datum = "";
Method mitgliederMitFunktionen
has 39 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function mitgliederMitFunktionen()
{
$vollgremium = null;
foreach ($this->gremien as $gremium) {
if ($gremium->gremientyp == "BA-Vollgremium") {
Method legislativeterm
has 39 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
private static function legislativeterm($id) {
$data = [
[
'type' => self::TYPE_LEGISLATIVETERM,
'name' => 'Unbekannt',
Method ba_dokumente_nach_datum
has 39 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
private function ba_dokumente_nach_datum($ba_nr, $datum_max, $tage = null)
{
if ($tage === null) $tage = static::$BA_DOKUMENTE_TAGE_PRO_SEITE;
if (preg_match("/^[0-9]{4}\-[0-9]{2}\-[0-9]{2}$/siu", $datum_max)) {
Method geo_extract
has 37 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function geo_extract(): void
{
$text = $this->text_ocr_corrected . $this->text_pdf;
$strassen_gefunden = RISGeo::suche_strassen($text);
Method parseByURL
has 37 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function parseByURL($url_base, $titel, $id)
{
echo "Lese ein: " . $titel . "\n";
$index = ris_download_string($url_base . "/css/" . $id . "_index.htm");
Method download_file
has 36 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public static function download_file($url_to_read, $filename, $username = "", $password = "", $timeout = 30)
{
$ch = curl_init();
if ($username != "" || $password != "") {
Method actionBuergerInnenversammlungen
has 36 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
public function actionBuergerInnenversammlungen()
{
if (!$this->binContentAdmin()) $this->errorMessageAndDie(403, "");
$this->top_menu = "admin";
Function init
has 36 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
Ripples.prototype.init = function() {
var $element = this.element;
$element.on("mousedown touchstart", function(event) {
/**