mambax7/adslight

View on GitHub

Showing 573 of 5,122 total issues

Method __construct has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __construct()
    {
        parent::__construct();
        /** @var Helper $helper */
        $this->helper     = Helper::getInstance();
Severity: Minor
Found in class/Listing.php - About 1 hr to fix

    Function set has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            set: function( elem, value, extra ) {
                var matches,
                    styles = getStyles( elem ),
    
                    // Only read styles.position if the test has a chance to fail
    Severity: Minor
    Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 1 hr to fix

      Function speed has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      jQuery.speed = function( speed, easing, fn ) {
          var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
              complete: fn || !fn && easing ||
                  isFunction( speed ) && speed,
              duration: speed,
      Severity: Minor
      Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 1 hr to fix

        Function removeClass has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            removeClass: function( value ) {
                var classes, elem, cur, curValue, clazz, j, finalValue,
                    i = 0;
        
                if ( isFunction( value ) ) {
        Severity: Minor
        Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 1 hr to fix

          Function operators has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      operators: function( c, data ) {
                          // ignore empty strings... because '' < 10 is true
                          if ( tsfRegex.operTest.test( data.iFilter ) && data.iExact !== '' ) {
                              var cachedValue, result, txt,
                                  table = c.table,
          Severity: Minor
          Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

            Function filterInitComplete has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    filterInitComplete: function( c ) {
                        var indx, len,
                            wo = c.widgetOptions,
                            count = 0,
                            completed = function() {
            Severity: Minor
            Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

              Function detectParserForColumn has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      detectParserForColumn : function( c, rows, rowIndex, cellIndex ) {
                          var cur, $node, row,
                              indx = ts.parsers.length,
                              node = false,
                              nodeValue = '',
              Severity: Minor
              Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

                Function operators has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            operators: function( c, data ) {
                                // ignore empty strings... because '' < 10 is true
                                if ( tsfRegex.operTest.test( data.iFilter ) && data.iExact !== '' ) {
                                    var cachedValue, result, txt,
                                        table = c.table,
                Severity: Minor
                Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

                  Function filterInitComplete has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          filterInitComplete: function( c ) {
                              var indx, len,
                                  wo = c.widgetOptions,
                                  count = 0,
                                  completed = function() {
                  Severity: Minor
                  Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

                    Function detectParserForColumn has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            detectParserForColumn : function( c, rows, rowIndex, cellIndex ) {
                                var cur, $node, row,
                                    indx = ts.parsers.length,
                                    node = false,
                                    nodeValue = '',
                    Severity: Minor
                    Found in assets/js/tablesorter/js/jquery.tablesorter.js - About 1 hr to fix

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

                      function listingModPrice($id_price): void
                      {
                          global $xoopsDB, $myts;
                      
                          //    require_once __DIR__ . '/admin_header.php';
                      Severity: Minor
                      Found in admin/options.php - About 1 hr to fix

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

                        function listingAddPrice(string $nom_price): void
                        {
                            global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                            $helper = Helper::getInstance();
                            $sql    = 'SELECT  COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
                        Severity: Minor
                        Found in admin/options.php - About 1 hr to fix

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

                          function listingAddType($type): void
                          {
                              global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                              $helper = Helper::getInstance();
                          
                          
                          Severity: Minor
                          Found in admin/options.php - About 1 hr to fix

                            Function attr has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                attr: function( elem, name, value ) {
                                    var ret, hooks,
                                        nType = elem.nodeType;
                            
                                    // Don't get/set attributes on text, comment and attribute nodes
                            Severity: Minor
                            Found in assets/js/lightbox/js/lightbox-plus-jquery.js - About 1 hr to fix

                              Function mouseMove has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      mouseMove : function( c, wo, event ) {
                                          if ( wo.resizable_vars.mouseXPosition === 0 || !wo.resizable_vars.$target ) { return; }
                                          // resize columns
                                          var column,
                                              total = 0,
                              Severity: Minor
                              Found in assets/js/tablesorter/js/jquery.tablesorter.combined.js - About 1 hr to fix

                                Function mouseMove has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        mouseMove : function( c, wo, event ) {
                                            if ( wo.resizable_vars.mouseXPosition === 0 || !wo.resizable_vars.$target ) { return; }
                                            // resize columns
                                            var column,
                                                total = 0,
                                Severity: Minor
                                Found in assets/js/tablesorter/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

                                  function listingDel($lid, $photo): void
                                  {
                                      global $xoopsDB, $admin_lang;
                                      $helper = Helper::getInstance();
                                  
                                  
                                  Severity: Minor
                                  Found in admin/view_ads.php - About 1 hr to fix

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

                                    function listingModType($id_type): void
                                    {
                                        global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
                                        //    require_once __DIR__ . '/admin_header.php';
                                        xoops_cp_header();
                                    Severity: Minor
                                    Found in admin/options.php - About 1 hr to fix

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

                                      function listingDel($lid, $photo): void
                                      {
                                          global $xoopsDB, $admin_lang;
                                          $helper  = Helper::getInstance();
                                          $lid     = (int)$lid;
                                      Severity: Minor
                                      Found in admin/validate_ads.php - About 1 hr to fix

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

                                        function listingModcondition($id_condition): void
                                        {
                                            global $xoopsDB, $myts;
                                        
                                            //    require_once __DIR__ . '/admin_header.php';
                                        Severity: Minor
                                        Found in admin/options.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language