mambax7/extcal

View on GitHub
class/pcltar.lib.php

Summary

Maintainability
F
1 mo
Test Coverage

File pcltar.lib.php has 1780 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
// --------------------------------------------------------------------------------
// PhpConcept Library - Tar Module 1.3.1
// --------------------------------------------------------------------------------
// License GNU/GPL - Vincent Blavet - January 2003
Severity: Major
Found in class/pcltar.lib.php - About 4 days to fix

    Function PclTarHandleExtract has a Cognitive Complexity of 211 (exceeds 5 allowed). Consider refactoring.
    Open

        function PclTarHandleExtract(
            $p_tarname,
            $p_file_list,
            &$p_list_detail,
            $p_mode,
    Severity: Minor
    Found in class/pcltar.lib.php - About 4 days 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 PclTarHandleUpdate has a Cognitive Complexity of 130 (exceeds 5 allowed). Consider refactoring.
    Open

        function PclTarHandleUpdate($p_tarname, $p_file_list, &$p_list_detail, $p_tar_mode, $p_add_dir, $p_remove_dir)
        {
            TrFctStart(__FILE__, __LINE__, 'PclTarHandleUpdate', "archive='$p_tarname', list, tar_mode=$p_tar_mode");
            $v_result     = 1;
            $v_nb         = 0;
    Severity: Minor
    Found in class/pcltar.lib.php - About 2 days 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 PclTarMerge has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
    Open

        function PclTarMerge($p_tarname, $p_tarname_add, $p_mode = '', $p_mode_add = '')
        {
            TrFctStart(__FILE__, __LINE__, 'PclTarMerge', "tar='$p_tarname', tar_add='$p_tarname_add', mode='$p_mode', mode_add='$p_mode_add'");
            $v_result = 1;
    
    
    Severity: Minor
    Found in class/pcltar.lib.php - About 1 day 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 PclTarHandleDelete has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring.
    Open

        function PclTarHandleDelete($p_tarname, $p_file_list, &$p_list_detail, $p_tar_mode)
        {
            TrFctStart(__FILE__, __LINE__, 'PclTarHandleDelete', "archive='$p_tarname', list, tar_mode=$p_tar_mode");
            $v_result = 1;
            $v_nb     = 0;
    Severity: Minor
    Found in class/pcltar.lib.php - About 1 day 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 PclTarHandleExtractFile has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
    Open

        function PclTarHandleExtractFile($p_tar, &$v_header, $p_path, $p_remove_path, $p_tar_mode)
        {
            TrFctStart(__FILE__, __LINE__, 'PclTarHandleExtractFile', "archive_descr='$p_tar', path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode");
            $v_result = 1;
    
    
    Severity: Minor
    Found in class/pcltar.lib.php - About 1 day 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 PclTarHandleExtract has 237 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function PclTarHandleExtract(
            $p_tarname,
            $p_file_list,
            &$p_list_detail,
            $p_mode,
    Severity: Major
    Found in class/pcltar.lib.php - About 1 day to fix

      Function PclTarHandleAddFile has a Cognitive Complexity of 53 (exceeds 5 allowed). Consider refactoring.
      Open

          function PclTarHandleAddFile($p_tar, $p_filename, $p_mode, &$p_header, $p_add_dir, $p_remove_dir)
          {
              TrFctStart(__FILE__, __LINE__, 'PclTarHandleAddFile', "tar='$p_tar', filename='$p_filename', p_mode='$p_mode', add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
              $v_result = 1;
      
      
      Severity: Minor
      Found in class/pcltar.lib.php - About 1 day 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 PclTarHandleUpdate has 201 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function PclTarHandleUpdate($p_tarname, $p_file_list, &$p_list_detail, $p_tar_mode, $p_add_dir, $p_remove_dir)
          {
              TrFctStart(__FILE__, __LINE__, 'PclTarHandleUpdate', "archive='$p_tarname', list, tar_mode=$p_tar_mode");
              $v_result     = 1;
              $v_nb         = 0;
      Severity: Major
      Found in class/pcltar.lib.php - About 1 day to fix

        Function PclTarHandleExtractByIndex has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
        Open

            function PclTarHandleExtractByIndex(
                $p_tar,
                &$p_index_current,
                $p_index_start,
                $p_index_stop,
        Severity: Minor
        Found in class/pcltar.lib.php - About 7 hrs 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 PclTarHandleAddList has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
        Open

            function PclTarHandleAddList($p_tar, $p_list, $p_mode, &$p_list_detail, $p_add_dir, $p_remove_dir)
            {
                TrFctStart(__FILE__, __LINE__, 'PclTarHandleAddList', "tar='$p_tar', list, mode='$p_mode', add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
                $v_result = 1;
                $v_header = [];
        Severity: Minor
        Found in class/pcltar.lib.php - About 6 hrs 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 PclTarMerge has 158 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function PclTarMerge($p_tarname, $p_tarname_add, $p_mode = '', $p_mode_add = '')
            {
                TrFctStart(__FILE__, __LINE__, 'PclTarMerge', "tar='$p_tarname', tar_add='$p_tarname_add', mode='$p_mode', mode_add='$p_mode_add'");
                $v_result = 1;
        
        
        Severity: Major
        Found in class/pcltar.lib.php - About 6 hrs to fix

          Function PclTarHandleAppend has a Cognitive Complexity of 39 (exceeds 5 allowed). Consider refactoring.
          Open

              function PclTarHandleAppend($p_tarname, $p_list, $p_mode, &$p_list_detail, $p_add_dir, $p_remove_dir)
              {
                  TrFctStart(__FILE__, __LINE__, 'PclTarHandleAppend', "tar=$p_tarname, list, mode=$p_mode");
                  $v_result = 1;
          
          
          Severity: Minor
          Found in class/pcltar.lib.php - About 5 hrs 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 PclTarHandleDelete has 132 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function PclTarHandleDelete($p_tarname, $p_file_list, &$p_list_detail, $p_tar_mode)
              {
                  TrFctStart(__FILE__, __LINE__, 'PclTarHandleDelete', "archive='$p_tarname', list, tar_mode=$p_tar_mode");
                  $v_result = 1;
                  $v_nb     = 0;
          Severity: Major
          Found in class/pcltar.lib.php - About 5 hrs to fix

            Method PclTarHandleExtractFile has 117 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function PclTarHandleExtractFile($p_tar, &$v_header, $p_path, $p_remove_path, $p_tar_mode)
                {
                    TrFctStart(__FILE__, __LINE__, 'PclTarHandleExtractFile', "archive_descr='$p_tar', path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode");
                    $v_result = 1;
            
            
            Severity: Major
            Found in class/pcltar.lib.php - About 4 hrs to fix

              Function PclTarHandlePathReduction has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
              Open

                  function PclTarHandlePathReduction($p_dir)
                  {
                      TrFctStart(__FILE__, __LINE__, 'PclTarHandlePathReduction', "dir='$p_dir'");
                      $v_result = '';
              
              
              Severity: Minor
              Found in class/pcltar.lib.php - About 3 hrs 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 PclTarHandleExtractByIndexList has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
              Open

                  function PclTarHandleExtractByIndexList(
                      $p_tarname,
                      $p_index_string,
                      &$p_list_detail,
                      $p_path,
              Severity: Minor
              Found in class/pcltar.lib.php - About 3 hrs 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 PclTarHandleHeader has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
              Open

                  function PclTarHandleHeader($p_tar, $p_filename, $p_mode, &$p_header, $p_stored_filename)
                  {
                      TrFctStart(__FILE__, __LINE__, 'PclTarHandleHeader', "tar=$p_tar, file='$p_filename', mode='$p_mode', stored_filename='$p_stored_filename'");
                      $v_result = 1;
              
              
              Severity: Minor
              Found in class/pcltar.lib.php - About 3 hrs 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 PclTarHandleCreate has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
              Open

                  function PclTarHandleCreate($p_tarname, $p_list, $p_mode, $p_add_dir = '', $p_remove_dir = '')
                  {
                      TrFctStart(__FILE__, __LINE__, 'PclTarHandleCreate', "tar=$p_tarname, list, mode=$p_mode, add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
                      $v_result      = 1;
                      $v_list_detail = [];
              Severity: Minor
              Found in class/pcltar.lib.php - About 3 hrs 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 PclTarHandleAppend has 81 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function PclTarHandleAppend($p_tarname, $p_list, $p_mode, &$p_list_detail, $p_add_dir, $p_remove_dir)
                  {
                      TrFctStart(__FILE__, __LINE__, 'PclTarHandleAppend', "tar=$p_tarname, list, mode=$p_mode");
                      $v_result = 1;
              
              
              Severity: Major
              Found in class/pcltar.lib.php - About 3 hrs to fix

                Method PclTarHandleHeader has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function PclTarHandleHeader($p_tar, $p_filename, $p_mode, &$p_header, $p_stored_filename)
                    {
                        TrFctStart(__FILE__, __LINE__, 'PclTarHandleHeader', "tar=$p_tar, file='$p_filename', mode='$p_mode', stored_filename='$p_stored_filename'");
                        $v_result = 1;
                
                
                Severity: Major
                Found in class/pcltar.lib.php - About 3 hrs to fix

                  Method PclTarHandleAddFile has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function PclTarHandleAddFile($p_tar, $p_filename, $p_mode, &$p_header, $p_add_dir, $p_remove_dir)
                      {
                          TrFctStart(__FILE__, __LINE__, 'PclTarHandleAddFile', "tar='$p_tar', filename='$p_filename', p_mode='$p_mode', add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
                          $v_result = 1;
                  
                  
                  Severity: Major
                  Found in class/pcltar.lib.php - About 3 hrs to fix

                    Function PclTarExtractList has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                    Open

                        function PclTarExtractList($p_tarname, $p_filelist, $p_path = './', $p_remove_path = '', $p_mode = '')
                        {
                            TrFctStart(__FILE__, __LINE__, 'PclTarExtractList', "tar=$p_tarname, list, path=$p_path, remove_path='$p_remove_path', mode='$p_mode'");
                            $v_result = 1;
                    
                    
                    Severity: Minor
                    Found in class/pcltar.lib.php - About 2 hrs 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 PclTarDelete has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                    Open

                        function PclTarDelete($p_tarname, $p_filelist, $p_mode = '')
                        {
                            TrFctStart(__FILE__, __LINE__, 'PclTarDelete', "tar='$p_tarname', list='$p_filelist', mode='$p_mode'");
                            $v_result = 1;
                    
                    
                    Severity: Minor
                    Found in class/pcltar.lib.php - About 2 hrs 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 PclTarUpdate has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                    Open

                        function PclTarUpdate($p_tarname, $p_filelist, $p_mode = '', $p_add_dir = '', $p_remove_dir = '')
                        {
                            TrFctStart(__FILE__, __LINE__, 'PclTarUpdate', "tar='$p_tarname', list='$p_filelist', mode='$p_mode'");
                            $v_result = 1;
                    
                    
                    Severity: Minor
                    Found in class/pcltar.lib.php - About 2 hrs 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 PclTarExtractIndex has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                    Open

                        function PclTarExtractIndex($p_tarname, $p_index, $p_path = './', $p_remove_path = '', $p_mode = '')
                        {
                            TrFctStart(__FILE__, __LINE__, 'PclTarExtractIndex', "tar=$p_tarname, index='$p_index', path=$p_path, remove_path='$p_remove_path', mode='$p_mode'");
                            $v_result = 1;
                    
                    
                    Severity: Minor
                    Found in class/pcltar.lib.php - About 2 hrs 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 PclTarHandleExtractByIndex has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function PclTarHandleExtractByIndex(
                            $p_tar,
                            &$p_index_current,
                            $p_index_start,
                            $p_index_stop,
                    Severity: Major
                    Found in class/pcltar.lib.php - About 2 hrs to fix

                      Method PclTarHandleAddList has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function PclTarHandleAddList($p_tar, $p_list, $p_mode, &$p_list_detail, $p_add_dir, $p_remove_dir)
                          {
                              TrFctStart(__FILE__, __LINE__, 'PclTarHandleAddList', "tar='$p_tar', list, mode='$p_mode', add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
                              $v_result = 1;
                              $v_header = [];
                      Severity: Major
                      Found in class/pcltar.lib.php - About 2 hrs to fix

                        Method PclTarHandleReadHeader has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function PclTarHandleReadHeader($v_binary_data, &$v_header)
                            {
                                TrFctStart(__FILE__, __LINE__, 'PclTarHandleReadHeader', '');
                                $v_result = 1;
                        
                        
                        Severity: Major
                        Found in class/pcltar.lib.php - About 2 hrs to fix

                          Function PclTarHandleReadHeader has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                          Open

                              function PclTarHandleReadHeader($v_binary_data, &$v_header)
                              {
                                  TrFctStart(__FILE__, __LINE__, 'PclTarHandleReadHeader', '');
                                  $v_result = 1;
                          
                          
                          Severity: Minor
                          Found in class/pcltar.lib.php - About 2 hrs 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 PclTarHandlerDirCheck has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                          Open

                              function PclTarHandlerDirCheck($p_dir)
                              {
                                  $v_result = 1;
                          
                                  TrFctStart(__FILE__, __LINE__, 'PclTarHandlerDirCheck', (string)$p_dir);
                          Severity: Minor
                          Found in class/pcltar.lib.php - About 2 hrs 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 PclTarAddList has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                          Open

                              function PclTarAddList($p_tarname, $p_filelist, $p_add_dir = '', $p_remove_dir = '', $p_mode = '')
                              {
                                  TrFctStart(__FILE__, __LINE__, 'PclTarAddList', "tar=$p_tarname, file=$p_filelist, p_add_dir='$p_add_dir', p_remove_dir='$p_remove_dir', mode=$p_mode");
                                  $v_result      = 1;
                                  $p_list_detail = [];
                          Severity: Minor
                          Found in class/pcltar.lib.php - About 2 hrs 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 PclTarHandleExtractByIndexList has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function PclTarHandleExtractByIndexList(
                                  $p_tarname,
                                  $p_index_string,
                                  &$p_list_detail,
                                  $p_path,
                          Severity: Minor
                          Found in class/pcltar.lib.php - About 1 hr to fix

                            Function PclTarCreate has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                            Open

                                function PclTarCreate($p_tarname, $p_filelist = '', $p_mode = '', $p_add_dir = '', $p_remove_dir = '')
                                {
                                    TrFctStart(__FILE__, __LINE__, 'PclTarCreate', "tar=$p_tarname, file='$p_filelist', mode=$p_mode, add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
                                    $v_result = 1;
                            
                            
                            Severity: Minor
                            Found in class/pcltar.lib.php - About 1 hr 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 PclTarHandleCreate has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function PclTarHandleCreate($p_tarname, $p_list, $p_mode, $p_add_dir = '', $p_remove_dir = '')
                                {
                                    TrFctStart(__FILE__, __LINE__, 'PclTarHandleCreate', "tar=$p_tarname, list, mode=$p_mode, add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
                                    $v_result      = 1;
                                    $v_list_detail = [];
                            Severity: Minor
                            Found in class/pcltar.lib.php - About 1 hr to fix

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

                                  function PclTarDelete($p_tarname, $p_filelist, $p_mode = '')
                                  {
                                      TrFctStart(__FILE__, __LINE__, 'PclTarDelete', "tar='$p_tarname', list='$p_filelist', mode='$p_mode'");
                                      $v_result = 1;
                              
                              
                              Severity: Minor
                              Found in class/pcltar.lib.php - About 1 hr to fix

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

                                    function PclTarExtractList($p_tarname, $p_filelist, $p_path = './', $p_remove_path = '', $p_mode = '')
                                    {
                                        TrFctStart(__FILE__, __LINE__, 'PclTarExtractList', "tar=$p_tarname, list, path=$p_path, remove_path='$p_remove_path', mode='$p_mode'");
                                        $v_result = 1;
                                
                                
                                Severity: Minor
                                Found in class/pcltar.lib.php - About 1 hr to fix

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

                                      function PclTarUpdate($p_tarname, $p_filelist, $p_mode = '', $p_add_dir = '', $p_remove_dir = '')
                                      {
                                          TrFctStart(__FILE__, __LINE__, 'PclTarUpdate', "tar='$p_tarname', list='$p_filelist', mode='$p_mode'");
                                          $v_result = 1;
                                  
                                  
                                  Severity: Minor
                                  Found in class/pcltar.lib.php - About 1 hr to fix

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

                                        function PclTarExtractIndex($p_tarname, $p_index, $p_path = './', $p_remove_path = '', $p_mode = '')
                                        {
                                            TrFctStart(__FILE__, __LINE__, 'PclTarExtractIndex', "tar=$p_tarname, index='$p_index', path=$p_path, remove_path='$p_remove_path', mode='$p_mode'");
                                            $v_result = 1;
                                    
                                    
                                    Severity: Minor
                                    Found in class/pcltar.lib.php - About 1 hr to fix

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

                                          function PclTarAddList($p_tarname, $p_filelist, $p_add_dir = '', $p_remove_dir = '', $p_mode = '')
                                          {
                                              TrFctStart(__FILE__, __LINE__, 'PclTarAddList', "tar=$p_tarname, file=$p_filelist, p_add_dir='$p_add_dir', p_remove_dir='$p_remove_dir', mode=$p_mode");
                                              $v_result      = 1;
                                              $p_list_detail = [];
                                      Severity: Minor
                                      Found in class/pcltar.lib.php - About 1 hr to fix

                                        Method PclTarHandleExtractByIndex has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                $p_tar,
                                                &$p_index_current,
                                                $p_index_start,
                                                $p_index_stop,
                                                &$p_list_detail,
                                        Severity: Major
                                        Found in class/pcltar.lib.php - About 1 hr to fix

                                          Function PclTarAdd has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                          Open

                                              function PclTarAdd($p_tarname, $p_filelist)
                                              {
                                                  TrFctStart(__FILE__, __LINE__, 'PclTarAdd', "tar=$p_tarname, file=$p_filelist");
                                                  $v_result      = 1;
                                                  $v_list_detail = [];
                                          Severity: Minor
                                          Found in class/pcltar.lib.php - About 55 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 PclTarExtract has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                          Open

                                              function PclTarExtract($p_tarname, $p_path = './', $p_remove_path = '', $p_mode = '')
                                              {
                                                  TrFctStart(__FILE__, __LINE__, 'PclTarExtract', "tar='$p_tarname', path='$p_path', remove_path='$p_remove_path', mode='$p_mode'");
                                                  $v_result = 1;
                                          
                                          
                                          Severity: Minor
                                          Found in class/pcltar.lib.php - About 55 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 PclTarList has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                          Open

                                              function PclTarList($p_tarname, $p_mode = '')
                                              {
                                                  TrFctStart(__FILE__, __LINE__, 'PclTarList', "tar=$p_tarname, mode='$p_mode'");
                                                  $v_result = 1;
                                          
                                          
                                          Severity: Minor
                                          Found in class/pcltar.lib.php - About 55 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 PclTarHandleExtract has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                                  $p_tarname,
                                                  $p_file_list,
                                                  &$p_list_detail,
                                                  $p_mode,
                                                  $p_path,
                                          Severity: Major
                                          Found in class/pcltar.lib.php - About 50 mins to fix

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

                                                function PclTarHandleAddList($p_tar, $p_list, $p_mode, &$p_list_detail, $p_add_dir, $p_remove_dir)
                                            Severity: Minor
                                            Found in class/pcltar.lib.php - About 45 mins to fix

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

                                                      $p_tarname,
                                                      $p_index_string,
                                                      &$p_list_detail,
                                                      $p_path,
                                                      $p_remove_path,
                                              Severity: Minor
                                              Found in class/pcltar.lib.php - About 45 mins to fix

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

                                                    function PclTarHandleExtension($p_tarname)
                                                    {
                                                        TrFctStart(__FILE__, __LINE__, 'PclTarHandleExtension', "tar=$p_tarname");
                                                
                                                        // ----- Look for file extension
                                                Severity: Minor
                                                Found in class/pcltar.lib.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 ('/' === mb_substr($v_header['filename'], mb_strlen($p_file_list[$i]), 1)) {
                                                                            TrFctMessage(__FILE__, __LINE__, 3, '' . $v_header['filename'] . " is a file in $p_file_list[$i]");
                                                                            $v_delete_file = true;
                                                                        }
                                                Severity: Major
                                                Found in class/pcltar.lib.php - About 45 mins to fix

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

                                                      function PclTarHandleAddFile($p_tar, $p_filename, $p_mode, &$p_header, $p_add_dir, $p_remove_dir)
                                                  Severity: Minor
                                                  Found in class/pcltar.lib.php - About 45 mins to fix

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

                                                        function PclTarHandleAppend($p_tarname, $p_list, $p_mode, &$p_list_detail, $p_add_dir, $p_remove_dir)
                                                    Severity: Minor
                                                    Found in class/pcltar.lib.php - About 45 mins to fix

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

                                                          function PclTarHandleUpdate($p_tarname, $p_file_list, &$p_list_detail, $p_tar_mode, $p_add_dir, $p_remove_dir)
                                                      Severity: Minor
                                                      Found in class/pcltar.lib.php - About 45 mins to fix

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

                                                            function PclTarExtractList($p_tarname, $p_filelist, $p_path = './', $p_remove_path = '', $p_mode = '')
                                                        Severity: Minor
                                                        Found in class/pcltar.lib.php - About 35 mins to fix

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

                                                              function PclTarCreate($p_tarname, $p_filelist = '', $p_mode = '', $p_add_dir = '', $p_remove_dir = '')
                                                          Severity: Minor
                                                          Found in class/pcltar.lib.php - About 35 mins to fix

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

                                                                function PclTarExtractIndex($p_tarname, $p_index, $p_path = './', $p_remove_path = '', $p_mode = '')
                                                            Severity: Minor
                                                            Found in class/pcltar.lib.php - About 35 mins to fix

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

                                                                  function PclTarHandleExtractFile($p_tar, &$v_header, $p_path, $p_remove_path, $p_tar_mode)
                                                              Severity: Minor
                                                              Found in class/pcltar.lib.php - About 35 mins to fix

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

                                                                    function PclTarHandleHeader($p_tar, $p_filename, $p_mode, &$p_header, $p_stored_filename)
                                                                Severity: Minor
                                                                Found in class/pcltar.lib.php - About 35 mins to fix

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

                                                                      function PclTarUpdate($p_tarname, $p_filelist, $p_mode = '', $p_add_dir = '', $p_remove_dir = '')
                                                                  Severity: Minor
                                                                  Found in class/pcltar.lib.php - About 35 mins to fix

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

                                                                        function PclTarAddList($p_tarname, $p_filelist, $p_add_dir = '', $p_remove_dir = '', $p_mode = '')
                                                                    Severity: Minor
                                                                    Found in class/pcltar.lib.php - About 35 mins to fix

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

                                                                          function PclTarHandleCreate($p_tarname, $p_list, $p_mode, $p_add_dir = '', $p_remove_dir = '')
                                                                      Severity: Minor
                                                                      Found in class/pcltar.lib.php - About 35 mins to fix

                                                                        Avoid too many return statements within this method.
                                                                        Open

                                                                                            return PclErrorCode();
                                                                        Severity: Major
                                                                        Found in class/pcltar.lib.php - About 30 mins to fix

                                                                          Avoid too many return statements within this method.
                                                                          Open

                                                                                  return $v_result;
                                                                          Severity: Major
                                                                          Found in class/pcltar.lib.php - About 30 mins to fix

                                                                            Avoid too many return statements within this method.
                                                                            Open

                                                                                            return PclErrorCode();
                                                                            Severity: Major
                                                                            Found in class/pcltar.lib.php - About 30 mins to fix

                                                                              Avoid too many return statements within this method.
                                                                              Open

                                                                                      return $v_result;
                                                                              Severity: Major
                                                                              Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                Avoid too many return statements within this method.
                                                                                Open

                                                                                        return $p_list;
                                                                                Severity: Major
                                                                                Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                  Avoid too many return statements within this method.
                                                                                  Open

                                                                                          return $v_result;
                                                                                  Severity: Major
                                                                                  Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                    Avoid too many return statements within this method.
                                                                                    Open

                                                                                                    return PclErrorCode();
                                                                                    Severity: Major
                                                                                    Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                      Avoid too many return statements within this method.
                                                                                      Open

                                                                                              return $v_result;
                                                                                      Severity: Major
                                                                                      Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                        Avoid too many return statements within this method.
                                                                                        Open

                                                                                                            return $v_result;
                                                                                        Severity: Major
                                                                                        Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                          Avoid too many return statements within this method.
                                                                                          Open

                                                                                                  return $v_result;
                                                                                          Severity: Major
                                                                                          Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                            Avoid too many return statements within this method.
                                                                                            Open

                                                                                                                return PclErrorCode();
                                                                                            Severity: Major
                                                                                            Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                              Avoid too many return statements within this method.
                                                                                              Open

                                                                                                              return $v_result;
                                                                                              Severity: Major
                                                                                              Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                Avoid too many return statements within this method.
                                                                                                Open

                                                                                                                return $v_result;
                                                                                                Severity: Major
                                                                                                Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                  Avoid too many return statements within this method.
                                                                                                  Open

                                                                                                                  return $v_result;
                                                                                                  Severity: Major
                                                                                                  Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                    Avoid too many return statements within this method.
                                                                                                    Open

                                                                                                                return PclErrorCode();
                                                                                                    Severity: Major
                                                                                                    Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                      Avoid too many return statements within this method.
                                                                                                      Open

                                                                                                                  return $v_result;
                                                                                                      Severity: Major
                                                                                                      Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                        Avoid too many return statements within this method.
                                                                                                        Open

                                                                                                                    return PclErrorCode();
                                                                                                        Severity: Major
                                                                                                        Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                          Avoid too many return statements within this method.
                                                                                                          Open

                                                                                                                                      return $v_result;
                                                                                                          Severity: Major
                                                                                                          Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                            Avoid too many return statements within this method.
                                                                                                            Open

                                                                                                                        return PclErrorCode();
                                                                                                            Severity: Major
                                                                                                            Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                              Avoid too many return statements within this method.
                                                                                                              Open

                                                                                                                      return $p_list;
                                                                                                              Severity: Major
                                                                                                              Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                Avoid too many return statements within this method.
                                                                                                                Open

                                                                                                                                return PclErrorCode();
                                                                                                                Severity: Major
                                                                                                                Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                  Avoid too many return statements within this method.
                                                                                                                  Open

                                                                                                                              return $v_result;
                                                                                                                  Severity: Major
                                                                                                                  Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                    Avoid too many return statements within this method.
                                                                                                                    Open

                                                                                                                                    return PclErrorCode();
                                                                                                                    Severity: Major
                                                                                                                    Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                      Avoid too many return statements within this method.
                                                                                                                      Open

                                                                                                                              return $v_result;
                                                                                                                      Severity: Major
                                                                                                                      Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                        Avoid too many return statements within this method.
                                                                                                                        Open

                                                                                                                                return $v_result;
                                                                                                                        Severity: Major
                                                                                                                        Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                          Avoid too many return statements within this method.
                                                                                                                          Open

                                                                                                                                          return PclErrorCode();
                                                                                                                          Severity: Major
                                                                                                                          Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                            Avoid too many return statements within this method.
                                                                                                                            Open

                                                                                                                                    return $p_list;
                                                                                                                            Severity: Major
                                                                                                                            Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                              Avoid too many return statements within this method.
                                                                                                                              Open

                                                                                                                                              return PclErrorCode();
                                                                                                                              Severity: Major
                                                                                                                              Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                                Avoid too many return statements within this method.
                                                                                                                                Open

                                                                                                                                            return PclErrorCode();
                                                                                                                                Severity: Major
                                                                                                                                Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                                  Avoid too many return statements within this method.
                                                                                                                                  Open

                                                                                                                                                      return $v_result;
                                                                                                                                  Severity: Major
                                                                                                                                  Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                                    Avoid too many return statements within this method.
                                                                                                                                    Open

                                                                                                                                            return $p_list;
                                                                                                                                    Severity: Major
                                                                                                                                    Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                                      Avoid too many return statements within this method.
                                                                                                                                      Open

                                                                                                                                                      return PclErrorCode();
                                                                                                                                      Severity: Major
                                                                                                                                      Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                                        Avoid too many return statements within this method.
                                                                                                                                        Open

                                                                                                                                                return $v_result;
                                                                                                                                        Severity: Major
                                                                                                                                        Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                                          Avoid too many return statements within this method.
                                                                                                                                          Open

                                                                                                                                                          return $v_result;
                                                                                                                                          Severity: Major
                                                                                                                                          Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                                            Avoid too many return statements within this method.
                                                                                                                                            Open

                                                                                                                                                            return $v_result;
                                                                                                                                            Severity: Major
                                                                                                                                            Found in class/pcltar.lib.php - About 30 mins to fix

                                                                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                          if (0 == ($v_dest_file = @fopen($v_header['filename'], 'wb'))) {
                                                                                                                                                              TrFctMessage(__FILE__, __LINE__, 2, 'Error while opening ' . $v_header['filename'] . ' in write binary mode');
                                                                                                                                              
                                                                                                                                                              // ----- Change the file status
                                                                                                                                                              $v_header['status'] = 'write_error';
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 days to fix
                                                                                                                                              class/pcltar.lib.php on lines 2141..2184

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 505.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                                  if (0 == ($v_dest_file = @fopen($v_header['filename'], 'wb'))) {
                                                                                                                                                                      TrFctMessage(__FILE__, __LINE__, 2, 'Error while opening ' . $v_header['filename'] . ' in write binary mode');
                                                                                                                                              
                                                                                                                                                                      // ----- Change the file status
                                                                                                                                                                      $v_header['status'] = 'write_error';
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 days to fix
                                                                                                                                              class/pcltar.lib.php on lines 2655..2698

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 505.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      if ('tar' === $p_tar_mode) {
                                                                                                                                                          // ----- Open file
                                                                                                                                                          TrFctMessage(__FILE__, __LINE__, 3, 'Open file in binary read mode');
                                                                                                                                                          if (0 == ($v_tar = @fopen($p_tarname, 'rb'))) {
                                                                                                                                                              // ----- Error log
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 days to fix
                                                                                                                                              class/pcltar.lib.php on lines 2755..2812

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 474.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      if ('tar' === $p_tar_mode) {
                                                                                                                                                          // ----- Open file
                                                                                                                                                          TrFctMessage(__FILE__, __LINE__, 3, 'Open file in binary read mode');
                                                                                                                                                          if (0 == ($v_tar = @fopen($p_tarname, 'rb'))) {
                                                                                                                                                              // ----- Error log
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 days to fix
                                                                                                                                              class/pcltar.lib.php on lines 2993..3050

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 474.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                          if ($v_extract_file && (!$v_listing)) {
                                                                                                                                                              // ----- Look for path to remove
                                                                                                                                                              if (('' != $p_remove_path) && (0 === mb_strpos($v_header['filename'], $p_remove_path))) {
                                                                                                                                                                  TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file " . $v_header['filename'] . '');
                                                                                                                                                                  // ----- Remove the path
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 1 day to fix
                                                                                                                                              class/pcltar.lib.php on lines 2475..2496

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 251.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                          if ($v_extract_file) {
                                                                                                                                                              if (1 != ($v_result = PclTarHandleExtractFile($v_tar, $v_header, $p_path, $p_remove_path, $p_tar_mode))) {
                                                                                                                                                                  // ----- Return
                                                                                                                                                                  TrFctEnd(__FILE__, __LINE__, $v_result);
                                                                                                                                              
                                                                                                                                              
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 1 day to fix
                                                                                                                                              class/pcltar.lib.php on lines 2047..2232

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 251.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                              if (('./' !== $p_path) && ('/' !== $p_path)) {
                                                                                                                                                                  // ----- Look for the path end '/'
                                                                                                                                                                  while ('/' === mb_substr($p_path, -1)) {
                                                                                                                                                                      TrFctMessage(__FILE__, __LINE__, 3, "Destination path [$p_path] ends by '/'");
                                                                                                                                                                      $p_path = mb_substr($p_path, 0, -1);
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 4 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2570..2584

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 173.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      if (('./' !== $p_path) && ('/' !== $p_path)) {
                                                                                                                                                          // ----- Look for the path end '/'
                                                                                                                                                          while ('/' === mb_substr($p_path, -1)) {
                                                                                                                                                              TrFctMessage(__FILE__, __LINE__, 3, "Destination path [$p_path] ends by '/'");
                                                                                                                                                              $p_path = mb_substr($p_path, 0, -1);
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 4 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2057..2071

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 173.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                              if (file_exists($v_header['filename'])) {
                                                                                                                                                                  TrFctMessage(__FILE__, __LINE__, 2, 'File ' . $v_header['filename'] . ' already exists');
                                                                                                                                              
                                                                                                                                                                  // ----- Look if file is a directory
                                                                                                                                                                  if (is_dir($v_header['filename'])) {
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 3 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2590..2650

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 160.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      if (file_exists($v_header['filename'])) {
                                                                                                                                                          TrFctMessage(__FILE__, __LINE__, 2, 'File ' . $v_header['filename'] . ' already exists');
                                                                                                                                              
                                                                                                                                                          // ----- Look if file is a directory
                                                                                                                                                          if (is_dir($v_header['filename'])) {
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 3 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2077..2136

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 160.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      if ($v_extract_file && ('5' != $v_header['typeflag'])) {
                                                                                                                                                          // ----- Open the destination file in write mode
                                                                                                                                                          if (0 == ($v_dest_file = @fopen($v_header['filename'], 'wb'))) {
                                                                                                                                                              TrFctMessage(__FILE__, __LINE__, 2, 'Error while opening ' . $v_header['filename'] . ' in write binary mode');
                                                                                                                                              
                                                                                                                                              
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 3 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2139..2217

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 151.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                              if ($v_extract_file && ('5' != $v_header['typeflag'])) {
                                                                                                                                                                  // ----- Open the destination file in write mode
                                                                                                                                                                  if (0 == ($v_dest_file = @fopen($v_header['filename'], 'wb'))) {
                                                                                                                                                                      TrFctMessage(__FILE__, __LINE__, 2, 'Error while opening ' . $v_header['filename'] . ' in write binary mode');
                                                                                                                                              
                                                                                                                                              
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 3 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2653..2724

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 151.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      if ((!is_file($p_tarname)) || ((0 != (($v_size = filesize($p_tarname)) % 512)) && ('tar' === $p_mode))) {
                                                                                                                                                          // ----- Error log
                                                                                                                                                          if (!is_file($p_tarname)) {
                                                                                                                                                              PclErrorLog(-4, "Archive '$p_tarname' does not exist");
                                                                                                                                                          } else {
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 2 other locations - About 3 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 834..848
                                                                                                                                              class/pcltar.lib.php on lines 1204..1216

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 149.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                          if (!gzeof($p_tar)) {
                                                                                                                                                              TrFctMessage(__FILE__, __LINE__, 3, 'More than one 512 block file');
                                                                                                                                                              $i = 1;
                                                                                                                                              
                                                                                                                                                              // ----- Read new 512 block and write the already read
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 3 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 1251..1269

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 149.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                          if (!gzeof($p_tar)) {
                                                                                                                                                              TrFctMessage(__FILE__, __LINE__, 3, 'More than one 512 block file');
                                                                                                                                                              $i = 1;
                                                                                                                                              
                                                                                                                                                              // ----- Read new 512 block and write the already read
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 3 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 883..901

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 149.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      if ((!is_file($p_tarname)) || ((0 != (($v_size = filesize($p_tarname)) % 512)) && ('tar' === $p_mode))) {
                                                                                                                                                          // ----- Error log
                                                                                                                                                          if (!is_file($p_tarname)) {
                                                                                                                                                              PclErrorLog(-4, "Archive '$p_tarname' does not exist");
                                                                                                                                                          } else {
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 2 other locations - About 3 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 821..833
                                                                                                                                              class/pcltar.lib.php on lines 834..848

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 149.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      if ((!is_file($p_tarname_add))
                                                                                                                                                          || ((0 != (($v_size_add = filesize($p_tarname_add)) % 512))
                                                                                                                                                              && ('tar' === $p_mode_add))) {
                                                                                                                                                          // ----- Error log
                                                                                                                                                          if (!is_file($p_tarname_add)) {
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 2 other locations - About 3 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 821..833
                                                                                                                                              class/pcltar.lib.php on lines 1204..1216

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 149.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                              for ($i = 0; $i < $n; ++$i) {
                                                                                                                                                                  TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number ' . ($i + 1));
                                                                                                                                                                  if ('tar' === $p_tar_mode) {
                                                                                                                                                                      $v_content = fread($v_tar, 512);
                                                                                                                                                                      fwrite($v_temp_tar, $v_content, 512);
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 3173..3182

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 123.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                              for ($j = 0; $j < $n; ++$j) {
                                                                                                                                                                  TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number ' . ($j + 1));
                                                                                                                                                                  if ('tar' === $p_tar_mode) {
                                                                                                                                                                      $v_content = fread($v_tar, 512);
                                                                                                                                                                      fwrite($v_temp_tar, $v_content, 512);
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2888..2897

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 123.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                              if (('' != $p_remove_path) && (0 === mb_strpos($v_header['filename'], $p_remove_path))) {
                                                                                                                                                                  TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file " . $v_header['filename'] . '');
                                                                                                                                                                  // ----- Remove the path
                                                                                                                                                                  $v_header['filename'] = mb_substr($v_header['filename'], $p_remove_path_size);
                                                                                                                                                                  TrFctMessage(__FILE__, __LINE__, 3, 'Reslting file is ' . $v_header['filename'] . '');
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2562..2567

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 122.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      if (('' != $p_remove_path) && (0 === mb_strpos($v_header['filename'], $p_remove_path))) {
                                                                                                                                                          TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file " . $v_header['filename'] . '');
                                                                                                                                                          // ----- Remove the path
                                                                                                                                                          $v_header['filename'] = mb_substr($v_header['filename'], $p_remove_path_size);
                                                                                                                                                          TrFctMessage(__FILE__, __LINE__, 3, 'Resulting file is ' . $v_header['filename'] . '');
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2049..2054

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 122.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                          if ($v_listing || $v_extract_file || $v_extraction_stopped) {
                                                                                                                                                              TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file ' . $v_header['filename'] . '');
                                                                                                                                              
                                                                                                                                                              // ----- Log extracted files
                                                                                                                                                              if (($v_file_dir = \dirname($v_header['filename'])) == $v_header['filename']) {
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2505..2521

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 121.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                          if ($v_extract_file) {
                                                                                                                                                              TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file ' . $v_header['filename'] . '');
                                                                                                                                              
                                                                                                                                                              // ----- Log extracted files
                                                                                                                                                              if (($v_file_dir = \dirname($v_header['filename'])) == $v_header['filename']) {
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 2 hrs to fix
                                                                                                                                              class/pcltar.lib.php on lines 2241..2257

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 121.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                          if (1 != ($v_result = PclTarHandleReadHeader($v_binary_data, $v_header))) {
                                                                                                                                                              // ----- Close the archive file
                                                                                                                                                              if ('tar' === $p_tar_mode) {
                                                                                                                                                                  fclose($v_tar);
                                                                                                                                                                  fclose($v_temp_tar);
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 1 hr to fix
                                                                                                                                              class/pcltar.lib.php on lines 3105..3120

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 106.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                          if (1 != ($v_result = PclTarHandleReadHeader($v_binary_data, $v_header))) {
                                                                                                                                                              // ----- Close the archive file
                                                                                                                                                              if ('tar' === $p_tar_mode) {
                                                                                                                                                                  fclose($v_tar);
                                                                                                                                                                  fclose($v_temp_tar);
                                                                                                                                              Severity: Major
                                                                                                                                              Found in class/pcltar.lib.php and 1 other location - About 1 hr to fix
                                                                                                                                              class/pcltar.lib.php on lines 2832..2847

                                                                                                                                              Duplicated Code

                                                                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                              Tuning

                                                                                                                                              This issue has a mass of 106.

                                                                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                              Refactorings

                                                                                                                                              Further Reading

                                                                                                                                              There are no issues that match your filters.

                                                                                                                                              Category
                                                                                                                                              Status