XoopsModules25x/mylinks

View on GitHub

Showing 370 of 370 total issues

Method Rect has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function Rect($x,$y,$w,$h,$style='')
Severity: Minor
Found in fpdf/fpdf.php - About 35 mins to fix

    Method AddCIDFonts has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function AddCIDFonts($family,$name,$cw,$CMap,$registry)
    Severity: Minor
    Found in fpdf/japanese.php - About 35 mins to fix

      Method MakeFont has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function MakeFont($fontfile,$afmfile,$enc='cp1252',$patch=array(),$type='TrueType')
      Severity: Minor
      Found in fpdf/font/makefont/makefont.php - About 35 mins to fix

        Method AddCIDFonts has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        function AddCIDFonts($family,$name,$cw,$CMap,$registry)
        Severity: Minor
        Found in fpdf/korean.php - About 35 mins to fix

          Method mylinks_search has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function mylinks_search($queryarray, $andor, $limit, $offset, $userid)
          Severity: Minor
          Found in include/search.inc.php - About 35 mins to fix

            Method _block has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public function _block($xbeg, $xlen, $ybeg, $ylen, &$edits)
            Severity: Minor
            Found in class/Text_Diff_Renderer.php - About 35 mins to fix

              Method _diag has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public function _diag($xoff, $xlim, $yoff, $ylim, $nchunks)
              Severity: Minor
              Found in class/Text_Diff.php - About 35 mins to fix

                Method mylinks_cleanVars has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    public static function mylinks_cleanVars(&$global, $key, $default = '', $type = 'int', $limit = null)
                Severity: Minor
                Found in class/utility.php - About 35 mins to fix

                  Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      public function __construct($total_items, $items_perpage, $current_start, $start_name = 'start', $extra_arg = '')
                  Severity: Minor
                  Found in class/mylinkspagenav.php - About 35 mins to fix

                    Function SetDisplayMode has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function SetDisplayMode($zoom,$layout='continuous')
                    {
                      //Set display mode in viewer
                      if($zoom=='fullpage' || $zoom=='fullwidth' || $zoom=='real' || $zoom=='default' || !is_string($zoom))
                        $this->ZoomMode=$zoom;
                    Severity: Minor
                    Found in fpdf/fpdf.php - About 35 mins 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 encoding has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                      function encoding(&$text, $in_charset)
                      {
                        $out_charset = $GLOBALS['valid_pfd_charset'];
                          if (empty($in_charset) || empty($out_charset) || !strcasecmp($out_charset, $in_charset)) return;
                    
                    
                    Severity: Minor
                    Found in fpdf/language/english.php - About 35 mins 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 encoding has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                      function encoding(&$text, $in_charset)
                      {
                        $out_charset = $GLOBALS['valid_pfd_charset'];
                          if (empty($in_charset) || empty($out_charset) || !strcasecmp($out_charset, $in_charset)) return;
                    
                    
                    Severity: Minor
                    Found in fpdf/language/schinese.php - About 35 mins 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 _encoding has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                      function _encoding(&$text, $in_charset, $out_charset)
                      {
                        if(function_exists('xoopschina_convert_encoding')) {
                          $text = xoopschina_convert_encoding($text, $in_charset, $out_charset);
                    
                    
                    Severity: Minor
                    Found in fpdf/language/schinese.php - About 35 mins 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 CheckTTF has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function CheckTTF($file)
                    {
                      //Check if font license allows embedding
                      $f=fopen($file,'rb');
                      if(!$f)
                    Severity: Minor
                    Found in fpdf/font/makefont/makefont.php - About 35 mins 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 SetDrawColor has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function SetDrawColor($r,$g=-1,$b=-1)
                    {
                      //Set color for all stroking operations
                      if(($r==0 && $g==0 && $b==0) || $g==-1)
                        $this->DrawColor=sprintf('%.3f G',$r/255);
                    Severity: Minor
                    Found in fpdf/fpdf.php - About 35 mins 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 ReadMap has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function ReadMap($enc)
                    {
                      //Read a map file
                      $file=__DIR__.'/'.strtolower($enc).'.map';
                      $a=file($file);
                    Severity: Minor
                    Found in fpdf/font/makefont/makefont.php - About 35 mins 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 encoding has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                      function encoding(&$text, $in_charset)
                      {
                        $out_charset = $GLOBALS['valid_pfd_charset'];
                          if (empty($in_charset) || empty($out_charset) || !strcasecmp($out_charset, $in_charset)) return;
                    
                    
                    Severity: Minor
                    Found in fpdf/language/korean.php - About 35 mins 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 load has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                      function load($lpData, &$hdrLen)
                      {
                        $hdrLen = 0;
                    
                        $this->m_lpVer = substr($lpData, 0, 6);
                    Severity: Minor
                    Found in fpdf/gif.php - About 35 mins 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 SetFillColor has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function SetFillColor($r,$g=-1,$b=-1)
                    {
                      //Set color for all filling operations
                      if(($r==0 && $g==0 && $b==0) || $g==-1)
                        $this->FillColor=sprintf('%.3f g',$r/255);
                    Severity: Minor
                    Found in fpdf/fpdf.php - About 35 mins 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 encoding has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                      function encoding(&$text, $in_charset)
                      {
                        $out_charset = $GLOBALS['valid_pfd_charset'];
                          if (empty($in_charset) || empty($out_charset) || !strcasecmp($out_charset, $in_charset)) return;
                    
                    
                    Severity: Minor
                    Found in fpdf/language/french.php - About 35 mins 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

                    Severity
                    Category
                    Status
                    Source
                    Language