fossasia/engelsystem

View on GitHub
includes/controller/admin_export_controller.php

Summary

Maintainability
D
1 day
Test Coverage

Showing 2 of 2 total issues

Function admin_export has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
Open

function admin_export() {
// Export User data
if(isset($_REQUEST['download'])){
$filename = tempnam('/tmp', '.csv'); // Temporary File Name
create_temporary_table(); // Create temporary table
Severity: Minor
Found in includes/controller/admin_export_controller.php - About 1 day to fix

Method admin_export has 142 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function admin_export() {
// Export User data
if(isset($_REQUEST['download'])){
$filename = tempnam('/tmp', '.csv'); // Temporary File Name
create_temporary_table(); // Create temporary table
Severity: Major
Found in includes/controller/admin_export_controller.php - About 5 hrs to fix
    Category
    Status