mariuz/firebirdwebadmin

View on GitHub
inc/javascript.inc.php

Summary

Maintainability
C
1 day
Test Coverage

File javascript.inc.php has 342 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
// File           javascript.inc.php / FirebirdWebAdmin
// Purpose        inline JavaScript functions
// Author         Lutz Brueckner <irie@gmx.de>
// Copyright      (c) 2000-2006 by Lutz Brueckner,
Severity: Minor
Found in inc/javascript.inc.php - About 4 hrs to fix

    Method js_data_export has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function js_data_export()
    {
        $server_url = xml_http_request_server_url();
    
        $js = <<<EOT
    Severity: Minor
    Found in inc/javascript.inc.php - About 1 hr to fix

      Method js_collations has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function js_collations($charsets)
      {
          static $done = false;
      
          if ($done == true) {
      Severity: Minor
      Found in inc/javascript.inc.php - About 1 hr to fix

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

        function js_checkColConstraint()
        {
            static $done = false;
        
            if ($done == true) {
        Severity: Minor
        Found in inc/javascript.inc.php - About 1 hr to fix

          Method js_refresh_systable has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function js_refresh_systable()
          {
              $js = <<<EOT
              <script language="javascript" type="text/javascript">
              var sttimer;
          Severity: Minor
          Found in inc/javascript.inc.php - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status