XoopsModules25x/mylinks

View on GitHub

Showing 272 of 370 total issues

Method SJISMultiCell has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

function SJISMultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
Severity: Minor
Found in fpdf/japanese.php - About 45 mins to fix

    Method AddCIDFont has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

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

      Method MultiCell has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function MultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
      Severity: Minor
      Found in fpdf/korean.php - About 45 mins to fix

        Function b_system_topposters_edit has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

        function b_system_topposters_edit($options)
        {
            include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
            $inputtag = "<input type='text' name='options[]' value='" . (int)$options[0] . "'>";
            $form     = sprintf(_MB_SYSTEM_DISPLAY, $inputtag);
        Severity: Minor
        Found in extras/XOOPS_2.5.x/htdocs/modules/system/blocks/system_blocks.php - About 45 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

        Method AddCIDFont has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        function AddCIDFont($family,$style,$name,$cw,$CMap,$registry)
        Severity: Minor
        Found in fpdf/chinese.php - About 45 mins to fix

          Method MultiCell has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function MultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
          Severity: Minor
          Found in fpdf/chinese.php - About 45 mins to fix

            Method MultiCell has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function MultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
            Severity: Minor
            Found in fpdf/japanese.php - About 45 mins to fix

              Method MBMultiCell has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function MBMultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
              Severity: Minor
              Found in fpdf/chinese.php - About 45 mins to fix

                Method MBMultiCell has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                function MBMultiCell($w,$h,$txt,$border=0,$align='L',$fill=0)
                Severity: Minor
                Found in fpdf/korean.php - About 45 mins to fix

                  Function deInterlace has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                  Open

                    function deInterlace()
                    {
                      $data = $this->m_data;
                  
                      for($i = 0; $i < 4; $i++) {
                  Severity: Minor
                  Found in fpdf/gif.php - About 45 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

                  Method MultiCell has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  function MultiCell($w,$h,$txt,$border=0,$align='J',$fill=0)
                  Severity: Minor
                  Found in fpdf/fpdf.php - About 45 mins to fix

                    Method AddCIDFont has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

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

                      Avoid deeply nested control flow statements.
                      Open

                                              if ('' == $shotAttribution) {
                                                  $shotAttribution = $shotObj->getAttribution(true);
                                              }
                      Severity: Major
                      Found in viewcat.php - About 45 mins to fix

                        Function __construct has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                                public function __construct()
                                {
                                    global $xoopsConfig;
                        
                                    // language file
                        Severity: Minor
                        Found in include/gtickets.php - About 45 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

                        Avoid deeply nested control flow statements.
                        Open

                                                            if ($pid != 0 && !in_array($pid, array_keys($item_ids))) {
                                                                // one of the parent items were not selected, so skip this item
                                                                $msg[] = sprintf(_MD_AM_PERMADDNG, '<strong>' . $perm_name . '</strong>', '<strong>' . $perm_data['itemname'][$item_id] . '</strong>', '<strong>' . $group_list[$group_id] . '</strong>') . ' (' . _MD_AM_PERMADDNGP . ')';
                                                                continue 2;
                                                            }
                        Severity: Major
                        Found in admin/mygroupperm.php - About 45 mins to fix

                          Function ml_wfd_letters has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function ml_wfd_letters()
                          {
                              global $xoopsDB, $xoopsModule;
                          
                              xoops_loadLanguage('main', $xoopsModule->getVar('dirname'));
                          Severity: Minor
                          Found in include/functions.php - About 45 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 linksConfigMenu has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function linksConfigMenu()
                          {
                              global $xoopsDB, $myts, $myCatTree, $xoopsModule;
                          
                              $mylinksCatHandler = xoops_getModuleHandler('category', $xoopsModule->getVar('dirname'));
                          Severity: Minor
                          Found in admin/main.php - About 45 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 mylinks_get_new has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function mylinks_get_new($param)
                          {
                              $modulename = basename(dirname(__DIR__));
                              include_once XOOPS_ROOT_PATH . "/modules/{$modulename}/include/feeddata.inc.php";
                          
                          
                          Severity: Minor
                          Found in include/feedfunc.new.php - About 45 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 addLink has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function addLink()
                          {
                              global $xoopsDB, $myts, $xoopsUser, $xoopsModule;
                          
                              $cid         = MylinksUtility::mylinks_cleanVars($_POST, 'cid', 0, 'int', array('min' => 0));
                          Severity: Minor
                          Found in admin/main.php - About 45 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 getrank has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function getrank($url)
                          {
                              $pagerank = '0';
                              $ch       = '6' . GoogleCH(strord('info:' . $url));
                          
                          
                          Severity: Minor
                          Found in bookmark.php - About 45 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