fossasia/engelsystem

View on GitHub
includes/sys_menu.php

Summary

Maintainability
C
1 day
Test Coverage

Showing 4 of 4 total issues

Function header_toolbar has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
Open

function header_toolbar() {
global $p, $privileges, $user, $enable_tshirt_size, $max_freeloadable_shifts;
$settings = array();
$no_migrated = "";
if (test_import()) {
Severity: Minor
Found in includes/sys_menu.php - About 5 hrs to fix

Method header_toolbar has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function header_toolbar() {
global $p, $privileges, $user, $enable_tshirt_size, $max_freeloadable_shifts;
$settings = array();
$no_migrated = "";
if (test_import()) {
Severity: Major
Found in includes/sys_menu.php - About 2 hrs to fix

    Method make_navigation has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function make_navigation() {
    global $p, $privileges;
     
    $menu = array();
    $pages = array(
    Severity: Minor
    Found in includes/sys_menu.php - About 1 hr to fix

      Function make_navigation has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      function make_navigation() {
      global $p, $privileges;
       
      $menu = array();
      $pages = array(
      Severity: Minor
      Found in includes/sys_menu.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status