mariuz/firebirdwebadmin

View on GitHub

Showing 162 of 204 total issues

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

<?php
// Purpose        collection of little helpers etc.
// Author         Lutz Brueckner <irie@gmx.de>
// Copyright      (c) 2000-2006 by Lutz Brueckner,
//                published under the terms of the GNU General Public Licence v.2,
Severity: Major
Found in inc/functions.inc.php - About 2 days to fix

    File accessories.php has 616 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    // Purpose        working with generators, triggers, domains, indexes, views,
    //                stored procedures, user defined functions and exceptions
    // Author         Lutz Brueckner <irie@gmx.de>
    // Copyright      (c) 2000-2006 by Lutz Brueckner,
    Severity: Major
    Found in accessories.php - About 1 day to fix

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

      <?php
      // File           panel_elements.inc.php / FirebirdWebAdmin
      // Purpose        functions for generating html-code that is needed in various panels
      // Author         Lutz Brueckner <irie@gmx.de>
      // Copyright      (c) 2000, 2001, 2002, 2003, 2004, 2005 by Lutz Brueckner,
      Severity: Major
      Found in inc/panel_elements.inc.php - About 1 day to fix

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

        <?php
        // Purpose        functions for the data export panel
        // Author         Lutz Brueckner <irie@gmx.de>
        // Copyright      (c) 2000-2006 by Lutz Brueckner,
        //                published under the terms of the GNU General Public Licence v.2,
        Severity: Major
        Found in inc/export.inc.php - About 1 day to fix

          Method initialize_session has 205 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function initialize_session()
          {
              global $ptitle_strings, $adm_strings;
          
              $session_vars =
          Severity: Major
          Found in inc/session.inc.php - About 1 day to fix

            Function get_tables has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring.
            Open

            function get_tables()
            {
                global $dbhandle, $fb_error, $s_tables, $s_fields, $s_foreigns, $s_primaries, $s_uniques, $s_login;
                global $s_charsets, $s_tables_counts, $s_views_counts, $s_tables_def, $s_tables_comp;
            
            
            Severity: Minor
            Found in inc/get_tables.inc.php - About 7 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

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

            <?php
            // Purpose        Language strings definitions
            // Author         Lutz Brueckner <irie@gmx.de>
            // Copyright      (c) 2000-2006 by Lutz Brueckner,
            //                published under the terms of the GNU General Public Licence v.2,
            Severity: Minor
            Found in lang/german.inc.php - About 7 hrs to fix

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

              <?php
              // Purpose        Language strings definitions
              // Author         Lutz Brueckner <irie@gmx.de>
              // Copyright      (c) 2000-2006 by Lutz Brueckner,
              //                published under the terms of the GNU General Public Licence v.2,
              Severity: Minor
              Found in lang/dutch.inc.php - About 7 hrs to fix

                File Portuguese, Brazilian.inc.php has 490 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                // Purpose        Language strings definitions
                // Author         Lutz Brueckner <irie@gmx.de>
                // Copyright      (c) 2000-2006 by Lutz Brueckner,
                //                published under the terms of the GNU General Public Licence v.2,
                Severity: Minor
                Found in lang/Portuguese, Brazilian.inc.php - About 7 hrs to fix

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

                  <?php
                  // Purpose        Language strings definitions
                  // Author         Lutz Brueckner <irie@gmx.de>
                  // Copyright      (c) 2000-2006 by Lutz Brueckner,
                  //                published under the terms of the GNU General Public Licence v.2,
                  Severity: Minor
                  Found in lang/spanish.inc.php - About 7 hrs to fix

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

                    <?php
                    // Purpose        Language strings definitions
                    // Author         Lutz Brueckner <irie@gmx.de>
                    // Copyright      (c) 2000-2006 by Lutz Brueckner,
                    //                published under the terms of the GNU General Public Licence v.2,
                    Severity: Minor
                    Found in lang/Czech.inc.php - About 7 hrs to fix

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

                      <?php
                      // Purpose        Language strings definitions
                      // Author         Lutz Brueckner <irie@gmx.de>
                      // Copyright      (c) 2000-2006 by Lutz Brueckner,
                      //                published under the terms of the GNU General Public Licence v.2,
                      Severity: Minor
                      Found in lang/Russian.inc.php - About 7 hrs to fix

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

                        <?php
                        // Purpose        Language strings definitions
                        // Author         Lutz Brueckner <irie@gmx.de>
                        // Copyright      (c) 2000-2006 by Lutz Brueckner,
                        //                published under the terms of the GNU General Public Licence v.2,
                        Severity: Minor
                        Found in lang/hungarian.inc.php - About 7 hrs to fix

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

                          <?php
                          // Purpose        Language strings definitions
                          // Author         Lutz Brueckner <irie@gmx.de>
                          // Copyright      (c) 2000-2006 by Lutz Brueckner,
                          //                published under the terms of the GNU General Public Licence v.2,
                          Severity: Minor
                          Found in lang/english.inc.php - About 7 hrs to fix

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

                            <?php
                            // Purpose        Language strings definitions
                            // Author         Lutz Brueckner <irie@gmx.de>
                            // Copyright      (c) 2000-2006 by Lutz Brueckner,
                            //                published under the terms of the GNU General Public Licence v.2,
                            Severity: Minor
                            Found in lang/polish.inc.php - About 7 hrs to fix

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

                              <?php
                              // Purpose        Language strings definitions
                              // Author         Lutz Brueckner <irie@gmx.de>
                              // Copyright      (c) 2000-2006 by Lutz Brueckner,
                              //                published under the terms of the GNU General Public Licence v.2,
                              Severity: Minor
                              Found in lang/Romanian.inc.php - About 7 hrs to fix

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

                                <?php
                                // Purpose        Language strings definitions
                                // Author         Lutz Brueckner <irie@gmx.de>
                                // Copyright      (c) 2000-2006 by Lutz Brueckner,
                                //                published under the terms of the GNU General Public Licence v.2,
                                Severity: Minor
                                Found in lang/japanese.inc.php - About 7 hrs to fix

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

                                  <?php
                                  // File           inc/handle_watchtable.inc.php / FirebirdWebAdmin
                                  // Purpose        provides the watch table handling for sql.php and data.php
                                  // Author         Lutz Brueckner <irie@gmx.de>
                                  // Copyright      (c) 2000-2006 by Lutz Brueckner,
                                  Severity: Minor
                                  Found in inc/handle_watchtable.inc.php - About 7 hrs to fix

                                    Method get_tables has 188 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function get_tables()
                                    {
                                        global $dbhandle, $fb_error, $s_tables, $s_fields, $s_foreigns, $s_primaries, $s_uniques, $s_login;
                                        global $s_charsets, $s_tables_counts, $s_views_counts, $s_tables_def, $s_tables_comp;
                                    
                                    
                                    Severity: Major
                                    Found in inc/get_tables.inc.php - About 7 hrs to fix

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

                                      <?php
                                      // File           session.inc.php / FirebirdWebAdmin
                                      // Purpose        session and fallback related functions, define all session variables
                                      // Author         Lutz Brueckner <irie@gmx.de>
                                      // Copyright      (c) 2000-2006 by Lutz Brueckner,
                                      Severity: Minor
                                      Found in inc/session.inc.php - About 6 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language