mambax7/extgallery

View on GitHub

Showing 701 of 9,653 total issues

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

    public function admin_footer()
    {
        global $pagenow;

        // Only run in post/page creation and edit screens
Severity: Minor
Found in assets/js/ml-slider/ml-slider.php - About 1 hr to fix

    Function magnificPopup has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    $.fn.magnificPopup = function(options) {
        _checkInstance();
    
        var jqEl = $(this);
    
    
    Severity: Minor
    Found in assets/js/magnific_popup/jquery.magnific-popup.js - About 1 hr to fix

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

          public function _resize($new_x, $new_y, $options = null)
          {
              // there's no technical reason why resize can't be called multiple
              // times...it's just silly to do so
              $scaleMethod = $this->_getOption('scaleMethod', $options, 'smooth');
      Severity: Minor
      Found in class/pear/Image/Transform/Driver/NetPBM.php - About 1 hr to fix

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

        function image_type_to_mime_type($type)
        {
            switch ($type) {
                case IMAGETYPE_GIF:
                    return 'image/gif';
        Severity: Minor
        Found in class/pear/Image/Transform/Driver/image_type_to_mime_type.php - About 1 hr to fix

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

              public function rebuild()
              {
                  $data = $this->getTreeWithChildren();
          
                  $n     = 0; // need a variable to hold the running n tally
          Severity: Minor
          Found in class/CategoryHandler.php - About 1 hr to fix

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

                    bindControls: function() {
            
                        var i;
            
                        carousel.next.on( 'click:fast', function(e) {
            Severity: Minor
            Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

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

                      rescale: function(event) {
              
                          // calculate
                           var width = M.min( $win.width()-40, lightbox.width ),
                              height = M.min( $win.height()-60, lightbox.height ),
              Severity: Minor
              Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

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

                        bindControls: function() {
                
                            var i;
                
                            carousel.next.on( 'click:fast', function(e) {
                Severity: Minor
                Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix

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

                          rescale: function(event) {
                  
                              // calculate
                               var width = M.min( $win.width()-40, lightbox.width ),
                                  height = M.min( $win.height()-60, lightbox.height ),
                  Severity: Minor
                  Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix

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

                        historyLoad: function(hash){
                            var newhash;
                            hash = decodeURIComponent(hash.replace(/\?.*$/, ''));
                    
                            if (jQuery.browser.safari) {
                    Severity: Minor
                    Found in assets/js/galleriffic/jquery.history.js - About 1 hr to fix

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

                          function scaleButtons( $btns, $capt, timeout )
                          {
                              if ( _viewScale )
                              {
                                  var scale = _viewScale.getScale();
                      Severity: Minor
                      Found in assets/js/TosRUs/src/js/jquery.tosrus.js - About 1 hr to fix

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

                        function loadTableFromArrayWithReplace($table, $data, $search, $replace)
                        {
                            /** @var \XoopsMySQLDatabase $db */
                            $db = \XoopsDatabaseFactory::getDatabaseConnection();
                        
                        
                        Severity: Minor
                        Found in testdata/index.php - About 1 hr to fix

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

                              private function resize_image($orig_size, $dest_size, $dest_file_name)
                              {
                                  // load image
                                  $image = wp_get_image_editor($this->path);
                          
                          
                          Severity: Minor
                          Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php - About 1 hr to fix

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

                                function updateBlock($bid, $btitle, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups)
                                {
                                    $myblock = new \XoopsBlock($bid);
                                    $myblock->setVar('title', $btitle);
                                    $myblock->setVar('weight', $bweight);
                            Severity: Minor
                            Found in admin/blocksadmin.php - About 1 hr to fix

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

                                  public static function getServerStats()
                                  {
                                      //mb    $wfdownloads = WfdownloadsWfdownloads::getInstance();
                                      $moduleDirName      = \basename(\dirname(__DIR__, 2));
                                      $moduleDirNameUpper = mb_strtoupper($moduleDirName);
                              Severity: Minor
                              Found in class/Common/ServerStats.php - About 1 hr to fix

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

                                    public function makeSelect($cats, $name, $selectMode, $addEmpty, $selected, $extra, $displayWeight)
                                    {
                                        $ret = '<select name="' . $name . '" id="' . $name . '"' . $extra . '>';
                                        if ($addEmpty) {
                                            $ret .= '<option value="0">-----</option>';
                                Severity: Minor
                                Found in class/CategoryHandler.php - About 1 hr to fix

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

                                      public function DrawCharacters()
                                      {
                                          $iShadowColour = '';
                                          // loop through and write out selected number of characters
                                          for ($i = 0, $iMax = mb_strlen($this->sCode); $i < $iMax; ++$i) {
                                  Severity: Minor
                                  Found in class/PhpCaptcha.php - About 1 hr to fix

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

                                    $.fn.galleria = function( options ) {
                                    
                                        var selector = this.selector;
                                    
                                        // try domReady if element not found
                                    Severity: Minor
                                    Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

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

                                                      complete: function( next ) {
                                      
                                                          Utils.show( next.container );
                                      
                                                          // toggle low quality for IE
                                      Severity: Minor
                                      Found in assets/js/galleria/galleria-1.1.js - About 1 hr to fix

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

                                                    show : function( elem, speed, callback ) {
                                        
                                                        callback = callback || F;
                                        
                                                        var $elem = $(elem);
                                        Severity: Minor
                                        Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language