web/admin/edit_silverbullet.php

Summary

Maintainability
D
1 day
Test Coverage

File edit_silverbullet.php has 641 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/*
 * Contributions to this work were made on behalf of the GÉANT project, a 
 * project that has received funding from the European Union’s Horizon 2020 
 * research and innovation programme under Grant Agreement No. 731122 (GN4-2).
Severity: Major
Found in web/admin/edit_silverbullet.php - About 1 day to fix

    Avoid deeply nested control flow statements.
    Open

                        if ($oneLine === FALSE) {
                            break;
                        }
    Severity: Major
    Found in web/admin/edit_silverbullet.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ($number === FALSE) { // invalid input received, default to sane
                              $number = 5;
                          }
      Severity: Major
      Found in web/admin/edit_silverbullet.php - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if (count($elements) < 2) {
                                break;
                            }
        Severity: Major
        Found in web/admin/edit_silverbullet.php - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status