fossasia/engelsystem

View on GitHub
includes/model/Events_model.php

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 3 of 3 total issues

Method event_update has 9 arguments (exceeds 4 allowed). Consider refactoring.
Open

function event_update($event_id, $name, $description, $organizer, $start_date, $start_time, $end_date, $end_time, $venue) {
Severity: Major
Found in includes/model/Events_model.php - About 1 hr to fix

    Method event_create has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function event_create($name, $description, $organizer, $start_date, $start_time, $end_date, $end_time, $venue) {
    Severity: Major
    Found in includes/model/Events_model.php - About 1 hr to fix

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      function event_validate_name($name, $event) {
      $name = strip_item($name);
      if ($name == "")
      return array(
      false,
      Severity: Major
      Found in includes/model/Events_model.php and 1 other location - About 3 hrs to fix
      includes/model/AngelType_model.php on lines 62..88
      Category
      Status