mambax7/pedigree

View on GitHub

Showing 702 of 1,100 total issues

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

    public function Crop(&$gdimg, $left = 0, $right = 0, $top = 0, $bottom = 0)
    {
        if (!$left && !$right && !$top && !$bottom) {
            return true;
        }
Severity: Minor
Found in phpthumb/phpthumb.filters.php - About 1 hr to fix

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

        public static function ImageTypeToMIMEtype($imagetype)
        {
            if (function_exists('image_type_to_mime_type') && ($imagetype >= 1) && ($imagetype <= 18)) {
                // PHP v4.3.0+
                return image_type_to_mime_type($imagetype);
    Severity: Minor
    Found in phpthumb/phpthumb.functions.php - About 1 hr to fix

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

              getAjax: function(item) {
      
                  if(_ajaxCur) {
                      $(document.body).addClass(_ajaxCur);
                  }
      Severity: Minor
      Found in assets/js/jquery.magnific-popup.js - About 1 hr to fix

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

        function TCGenerateMac() {
            var s = '';
            var c = 0, n = 1;
            var r, g, b;
            for (j = 0; j < 15; j++) {
        Severity: Minor
        Found in assets/js/picker.js - About 1 hr to fix

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

              updateItemHTML: function() {
                  var item = mfp.items[mfp.index];
          
                  // Detach and perform modifications
                  mfp.contentContainer.detach();
          Severity: Minor
          Found in assets/js/jquery.magnific-popup.js - About 1 hr to fix

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

            function output_animal($ind, $gen, $class)
            {
                global $depth, $IDs, $fathers, $mothers, $nl;
                if ($gen > $depth) {
                    return 0;
            Severity: Minor
            Found in coi.php - About 1 hr to fix

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

                  public function getRange($degrees = 2)
                  {
                      if (0 == $degrees) {
                          $degrees = 1;
                      }
              Severity: Minor
              Found in class/ImageColor.php - About 1 hr to fix

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

                    public function deInterlace()
                    {
                        $data = $this->m_data;
                        $s    = 0;
                        $y    = 0;
                Severity: Minor
                Found in phpthumb/phpthumb.gif.php - About 1 hr to fix

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

                      public static function lettersChoice($myObject, $activeObject, $criteria, $name, $link, $link2 = null)
                      {
                          /*
                          $pedigree = Helper::getInstance();
                          xoops_load('XoopsLocal');
                  Severity: Minor
                  Found in 0old/pedigreeUtilities0.php - About 1 hr to fix

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

                        public function RenderToFile($filename)
                        {
                            if (preg_match('#^[a-z0-9]+://#i', $filename)) {
                                $this->DebugMessage('RenderToFile() failed because $filename (' . $filename . ') is a URL', __FILE__, __LINE__);
                                return false;
                    Severity: Minor
                    Found in phpthumb/phpthumb.class.php - About 1 hr to fix

                      Method updateBlock has 9 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          function updateBlock($bid, $btitle, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups)
                      Severity: Major
                      Found in admin/blocksadmin.php - About 1 hr to fix

                        Method HistogramOverlay has 9 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public function HistogramOverlay(&$gdimg, $bands = '*', $colors = '', $width = 0.25, $height = 0.25, $alignment = 'BR', $opacity = 50, $margin_x = 5, $margin_y = null)
                        Severity: Major
                        Found in phpthumb/phpthumb.filters.php - About 1 hr to fix

                          Method ImageCopyRespectAlpha has 9 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public static function ImageCopyRespectAlpha(&$dst_im, &$src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $opacity_pct = 100)
                          Severity: Major
                          Found in phpthumb/phpthumb.functions.php - About 1 hr to fix

                            Method FixedAspectRatio has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function FixedAspectRatio()
                                {
                                    // optional fixed-dimension images (regardless of aspect ratio)
                            
                                    if (!$this->far) {
                            Severity: Minor
                            Found in 0old/phpthumb/phpthumb.class.php - About 1 hr to fix

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

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

                                Method ImageMagickSwitchAvailable has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function ImageMagickSwitchAvailable($switchname)
                                    {
                                        static $IMoptions = null;
                                        if (null === $IMoptions) {
                                            $IMoptions   = [];
                                Severity: Minor
                                Found in 0old/phpthumb/phpthumb.class.php - About 1 hr to fix

                                  Method RenderToFile has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function RenderToFile($filename)
                                      {
                                          if (preg_match('#^[a-z0-9]+://#i', $filename)) {
                                              $this->DebugMessage('RenderToFile() failed because $filename (' . $filename . ') is a URL', __FILE__, __LINE__);
                                  
                                  
                                  Severity: Minor
                                  Found in 0old/phpthumb/phpthumb.class.php - About 1 hr to fix

                                    Method lookupmove has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function lookupmove($field, $id, $move)
                                    {
                                        //find next id
                                        $sql    = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_lookup' . $field) . ' ORDER BY `order`';
                                        $result = $GLOBALS['xoopsDB']->query($sql);
                                    Severity: Minor
                                    Found in tools.php - About 1 hr to fix

                                      Method ImageMagickVersion has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function ImageMagickVersion($returnRAW = false)
                                          {
                                              static $versionstring = null;
                                              if (null === $versionstring) {
                                                  $versionstring = [0 => false, 1 => false];
                                      Severity: Minor
                                      Found in phpthumb/phpthumb.class.php - About 1 hr to fix

                                        Method ImageMagickSwitchAvailable has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function ImageMagickSwitchAvailable($switchname)
                                            {
                                                static $IMoptions = null;
                                                if (null === $IMoptions) {
                                                    $IMoptions   = [];
                                        Severity: Minor
                                        Found in phpthumb/phpthumb.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language