mambax7/smartobject

View on GitHub

Showing 646 of 1,188 total issues

File prototype.js has 2128 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*  Prototype JavaScript framework, version 1.5.0
 *  (c) 2005-2007 Sam Stephenson
 *
 *  Prototype is freely distributable under the terms of an MIT-style license.
 *  For details, see the Prototype web site: http://prototype.conio.net/
Severity: Major
Found in include/projax_/js/prototype.js - About 5 days to fix

    File prototype.js has 2128 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*  Prototype JavaScript framework, version 1.5.0
     *  (c) 2005-2007 Sam Stephenson
     *
     *  Prototype is freely distributable under the terms of an MIT-style license.
     *  For details, see the Prototype web site: http://prototype.conio.net/
    Severity: Major
    Found in include/projax/js/prototype.js - About 5 days to fix

      File prototype_b.js has 1889 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*  Prototype JavaScript framework, version 1.5.0_rc1
       *  (c) 2005 Sam Stephenson <sam@conio.net>
       *
       *  Prototype is freely distributable under the terms of an MIT-style license.
       *  For details, see the Prototype web site: http://prototype.conio.net/
      Severity: Major
      Found in include/projax_/js/prototype_b.js - About 5 days to fix

        File prototype_b.js has 1889 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*  Prototype JavaScript framework, version 1.5.0_rc1
         *  (c) 2005 Sam Stephenson <sam@conio.net>
         *
         *  Prototype is freely distributable under the terms of an MIT-style license.
         *  For details, see the Prototype web site: http://prototype.conio.net/
        Severity: Major
        Found in include/projax/js/prototype_b.js - About 5 days to fix

          File prototype.js has 1889 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*  Prototype JavaScript framework, version 1.5.0_rc1
           *  (c) 2005 Sam Stephenson <sam@conio.net>
           *
           *  Prototype is freely distributable under the terms of an MIT-style license.
           *  For details, see the Prototype web site: http://prototype.conio.net/
          Severity: Major
          Found in include/scriptaculous/lib/prototype.js - About 5 days to fix

            File effects.js has 969 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // script.aculo.us effects.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
            
            // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
            // Contributors:
            //  Justin Palmer (http://encytemedia.com/)
            Severity: Major
            Found in include/projax_/js/effects.js - About 2 days to fix

              File effects.js has 969 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              // script.aculo.us effects.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
              
              // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
              // Contributors:
              //  Justin Palmer (http://encytemedia.com/)
              Severity: Major
              Found in include/projax/js/effects.js - About 2 days to fix

                File effects.js has 969 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                // script.aculo.us effects.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
                
                // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                // Contributors:
                //  Justin Palmer (http://encytemedia.com/)
                Severity: Major
                Found in include/scriptaculous/src/effects.js - About 2 days to fix

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

                  <?php namespace XoopsModules\Smartobject;
                  
                  /**
                   * Contains the basis classes for managing any objects derived from SmartObjects
                   *
                  Severity: Major
                  Found in class/BaseSmartObject.php - About 2 days to fix

                    File dragdrop.js has 808 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    // script.aculo.us dragdrop.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
                    
                    // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                    //           (c) 2005 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
                    //
                    Severity: Major
                    Found in include/projax_/js/dragdrop.js - About 1 day to fix

                      File dragdrop.js has 808 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      // script.aculo.us dragdrop.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
                      
                      // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                      //           (c) 2005 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
                      //
                      Severity: Major
                      Found in include/projax/js/dragdrop.js - About 1 day to fix

                        File dragdrop.js has 808 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        // script.aculo.us dragdrop.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
                        
                        // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                        //           (c) 2005 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
                        //
                        Severity: Major
                        Found in include/scriptaculous/src/dragdrop.js - About 1 day to fix

                          File Utility.php has 807 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php namespace XoopsModules\Smartobject;
                          
                          use Xmf\Request;
                          use XoopsModules\Smartobject;
                          use XoopsModules\Smartobject\Common;
                          Severity: Major
                          Found in class/Utility.php - About 1 day to fix

                            File controls.js has 671 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            // script.aculo.us controls.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
                            
                            // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                            //           (c) 2005 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
                            //           (c) 2005 Jon Tirsen (http://www.tirsen.com)
                            Severity: Major
                            Found in include/projax_/js/controls.js - About 1 day to fix

                              File controls.js has 671 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              // script.aculo.us controls.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
                              
                              // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                              //           (c) 2005 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
                              //           (c) 2005 Jon Tirsen (http://www.tirsen.com)
                              Severity: Major
                              Found in include/scriptaculous/src/controls.js - About 1 day to fix

                                File controls.js has 671 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                // script.aculo.us controls.js v1.6.4, Wed Sep 06 11:30:58 CEST 2006
                                
                                // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                                //           (c) 2005 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
                                //           (c) 2005 Jon Tirsen (http://www.tirsen.com)
                                Severity: Major
                                Found in include/projax/js/controls.js - About 1 day to fix

                                  Function insert has a Cognitive Complexity of 75 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      public function insert(\XoopsObject $obj, $force = false, $checkObject = true, $debug = false)
                                      {
                                          if (false !== $checkObject) {
                                              if (!is_object($obj)) {
                                                  return false;
                                  Severity: Minor
                                  Found in class/PersistableObjectHandler.php - About 1 day 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

                                  Function cleanVars has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      public function cleanVars()
                                      {
                                          $ts              = \MyTextSanitizer::getInstance();
                                          $existing_errors = $this->getErrors();
                                          $this->_errors   = [];
                                  Severity: Minor
                                  Found in class/BaseSmartObject.php - About 1 day 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 PersistableObjectHandler.php has 583 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php namespace XoopsModules\Smartobject;
                                  
                                  /**
                                   * Contains the basis classes for managing any objects derived from SmartObjects
                                   *
                                  Severity: Major
                                  Found in class/PersistableObjectHandler.php - About 1 day to fix

                                    File SmartObjectForm.php has 583 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php namespace XoopsModules\Smartobject\Form;
                                    
                                    /**
                                     * Contains the class responsible for providing forms related to a SmartObject
                                     *
                                    Severity: Major
                                    Found in class/Form/SmartObjectForm.php - About 1 day to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language