fossasia/engelsystem

View on GitHub
includes/view/Questions_view.php

Summary

Maintainability
A
1 hr
Test Coverage

Method Questions_view has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Questions_view($open_questions, $answered_questions, $ask_action) {
  foreach ($open_questions as &$question) {
    $question['actions'] = '<a href="' . page_link_to("user_questions") . '&action=delete&id=' . $question['QID'] . '">' . _("delete") . '</a>';
    $question['Question'] = str_replace("\n", '<br />', $question['Question']);
  }
Severity: Minor
Found in includes/view/Questions_view.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status