amtgard/ORK3

View on GitHub
system/lib/nusoap/class.soapclient.php

Summary

Maintainability
F
1 mo
Test Coverage

File class.soapclient.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php




Severity: Major
Found in system/lib/nusoap/class.soapclient.php - About 1 day to fix

    Function call has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring.
    Open

        function call($operation,$params=array(),$namespace='http://tempuri.org',$soapAction='',$headers=false,$rpcParams=null,$style='rpc',$use='encoded'){
            $this->operation = $operation;
            $this->fault = false;
            $this->setError('');
            $this->request = '';
    Severity: Minor
    Found in system/lib/nusoap/class.soapclient.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 call has 153 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function call($operation,$params=array(),$namespace='http://tempuri.org',$soapAction='',$headers=false,$rpcParams=null,$style='rpc',$use='encoded'){
            $this->operation = $operation;
            $this->fault = false;
            $this->setError('');
            $this->request = '';
    Severity: Major
    Found in system/lib/nusoap/class.soapclient.php - About 6 hrs to fix

      Function UpdateCookies has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
      Open

          function UpdateCookies($cookies) {
              if (sizeof($this->cookies) == 0) {
                  // no existing cookies: take whatever is new
                  if (sizeof($cookies) > 0) {
                      $this->debug('Setting new cookie(s)');
      Severity: Minor
      Found in system/lib/nusoap/class.soapclient.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

      nusoap_client has 30 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class nusoap_client extends nusoap_base  {
      
          var $username = '';                // Username for HTTP authentication
          var $password = '';                // Password for HTTP authentication
          var $authtype = '';                // Type of HTTP authentication
      Severity: Minor
      Found in system/lib/nusoap/class.soapclient.php - About 3 hrs to fix

        Function send has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
        Open

            function send($msg, $soapaction = '', $timeout=0, $response_timeout=30) {
                $this->checkCookies();
                // detect transport
                switch(true){
                    // http(s)
        Severity: Minor
        Found in system/lib/nusoap/class.soapclient.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 send has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function send($msg, $soapaction = '', $timeout=0, $response_timeout=30) {
                $this->checkCookies();
                // detect transport
                switch(true){
                    // http(s)
        Severity: Major
        Found in system/lib/nusoap/class.soapclient.php - About 2 hrs to fix

          Function _getProxyClassCode has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
          Open

              function _getProxyClassCode($r) {
                  $this->debug("in getProxy endpointType=$this->endpointType");
                  $this->appendDebug("wsdl=" . $this->varDump($this->wsdl));
                  if ($this->endpointType != 'wsdl') {
                      $evalStr = 'A proxy can only be created for a WSDL client';
          Severity: Minor
          Found in system/lib/nusoap/class.soapclient.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 UpdateCookies has 51 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function UpdateCookies($cookies) {
                  if (sizeof($this->cookies) == 0) {
                      // no existing cookies: take whatever is new
                      if (sizeof($cookies) > 0) {
                          $this->debug('Setting new cookie(s)');
          Severity: Major
          Found in system/lib/nusoap/class.soapclient.php - About 2 hrs to fix

            Method _getProxyClassCode has 49 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _getProxyClassCode($r) {
                    $this->debug("in getProxy endpointType=$this->endpointType");
                    $this->appendDebug("wsdl=" . $this->varDump($this->wsdl));
                    if ($this->endpointType != 'wsdl') {
                        $evalStr = 'A proxy can only be created for a WSDL client';
            Severity: Minor
            Found in system/lib/nusoap/class.soapclient.php - About 1 hr to fix

              Function checkCookies has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
              Open

                  function checkCookies() {
                      if (sizeof($this->cookies) == 0) {
                          return true;
                      }
                      $this->debug('checkCookie: check ' . sizeof($this->cookies) . ' cookies');
              Severity: Minor
              Found in system/lib/nusoap/class.soapclient.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 parseResponse has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function parseResponse($headers, $data) {
                      $this->debug('Entering parseResponse() for data of length ' . strlen($data) . ' headers:');
                      $this->appendDebug($this->varDump($headers));
                      if (!isset($headers['content-type'])) {
                          $this->setError('Response not of type text/xml (no content-type header)');
              Severity: Minor
              Found in system/lib/nusoap/class.soapclient.php - About 1 hr to fix

                Method getProxy has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function getProxy() {
                        $r = rand();
                        $evalStr = $this->_getProxyClassCode($r);
                        //$this->debug("proxy class: $evalStr");
                        if ($this->getError()) {
                Severity: Minor
                Found in system/lib/nusoap/class.soapclient.php - About 1 hr to fix

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

                      function nusoap_client($endpoint,$wsdl = false,$proxyhost = false,$proxyport = false,$proxyusername = false, $proxypassword = false, $timeout = 0, $response_timeout = 30, $portName = ''){
                  Severity: Major
                  Found in system/lib/nusoap/class.soapclient.php - About 1 hr to fix

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

                        function nusoap_client($endpoint,$wsdl = false,$proxyhost = false,$proxyport = false,$proxyusername = false, $proxypassword = false, $timeout = 0, $response_timeout = 30, $portName = ''){
                            parent::nusoap_base();
                            $this->endpoint = $endpoint;
                            $this->proxyhost = $proxyhost;
                            $this->proxyport = $proxyport;
                    Severity: Minor
                    Found in system/lib/nusoap/class.soapclient.php - About 1 hr to fix

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

                          function call($operation,$params=array(),$namespace='http://tempuri.org',$soapAction='',$headers=false,$rpcParams=null,$style='rpc',$use='encoded'){
                      Severity: Major
                      Found in system/lib/nusoap/class.soapclient.php - About 1 hr to fix

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

                            function parseResponse($headers, $data) {
                                $this->debug('Entering parseResponse() for data of length ' . strlen($data) . ' headers:');
                                $this->appendDebug($this->varDump($headers));
                                if (!isset($headers['content-type'])) {
                                    $this->setError('Response not of type text/xml (no content-type header)');
                        Severity: Minor
                        Found in system/lib/nusoap/class.soapclient.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

                        Avoid too many return statements within this method.
                        Open

                                            return "";
                        Severity: Major
                        Found in system/lib/nusoap/class.soapclient.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return false;
                          Severity: Major
                          Found in system/lib/nusoap/class.soapclient.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return false;
                            Severity: Major
                            Found in system/lib/nusoap/class.soapclient.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return $return;
                              Severity: Major
                              Found in system/lib/nusoap/class.soapclient.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                       return $return;
                                Severity: Major
                                Found in system/lib/nusoap/class.soapclient.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                          return $return;
                                  Severity: Major
                                  Found in system/lib/nusoap/class.soapclient.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return $return;
                                    Severity: Major
                                    Found in system/lib/nusoap/class.soapclient.php - About 30 mins to fix

                                      Function nusoap_client has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          function nusoap_client($endpoint,$wsdl = false,$proxyhost = false,$proxyport = false,$proxyusername = false, $proxypassword = false, $timeout = 0, $response_timeout = 30, $portName = ''){
                                              parent::nusoap_base();
                                              $this->endpoint = $endpoint;
                                              $this->proxyhost = $proxyhost;
                                              $this->proxyport = $proxyport;
                                      Severity: Minor
                                      Found in system/lib/nusoap/class.soapclient.php - About 25 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

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

                                              if($this->endpointType == 'wsdl' && $opData = $this->getOperationData($operation)){
                                                  // use WSDL for operation
                                                  $this->opData = $opData;
                                                  $this->debug("found operation");
                                                  $this->appendDebug('opData=' . $this->varDump($opData));
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 4 days to fix
                                      system/lib/nusoap/nusoap.php on lines 7337..7416

                                      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 744.

                                      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

                                          function send($msg, $soapaction = '', $timeout=0, $response_timeout=30) {
                                              $this->checkCookies();
                                              // detect transport
                                              switch(true){
                                                  // http(s)
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 3 days to fix
                                      system/lib/nusoap/nusoap.php on lines 7571..7640

                                      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 589.

                                      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

                                          function _getProxyClassCode($r) {
                                              $this->debug("in getProxy endpointType=$this->endpointType");
                                              $this->appendDebug("wsdl=" . $this->varDump($this->wsdl));
                                              if ($this->endpointType != 'wsdl') {
                                                  $evalStr = 'A proxy can only be created for a WSDL client';
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 2 days to fix
                                      system/lib/nusoap/nusoap.php on lines 7906..7957

                                      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 513.

                                      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

                                          function UpdateCookies($cookies) {
                                              if (sizeof($this->cookies) == 0) {
                                                  // no existing cookies: take whatever is new
                                                  if (sizeof($cookies) > 0) {
                                                      $this->debug('Setting new cookie(s)');
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 2 days to fix
                                      system/lib/nusoap/nusoap.php on lines 8082..8138

                                      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 449.

                                      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

                                          function parseResponse($headers, $data) {
                                              $this->debug('Entering parseResponse() for data of length ' . strlen($data) . ' headers:');
                                              $this->appendDebug($this->varDump($headers));
                                              if (!isset($headers['content-type'])) {
                                                  $this->setError('Response not of type text/xml (no content-type header)');
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 1 day to fix
                                      system/lib/nusoap/nusoap.php on lines 7650..7697

                                      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 398.

                                      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

                                          function nusoap_client($endpoint,$wsdl = false,$proxyhost = false,$proxyport = false,$proxyusername = false, $proxypassword = false, $timeout = 0, $response_timeout = 30, $portName = ''){
                                              parent::nusoap_base();
                                              $this->endpoint = $endpoint;
                                              $this->proxyhost = $proxyhost;
                                              $this->proxyport = $proxyport;
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 1 day to fix
                                      system/lib/nusoap/nusoap.php on lines 7255..7287

                                      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 345.

                                      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

                                          function getProxy() {
                                              $r = rand();
                                              $evalStr = $this->_getProxyClassCode($r);
                                              //$this->debug("proxy class: $evalStr");
                                              if ($this->getError()) {
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 1 day to fix
                                      system/lib/nusoap/nusoap.php on lines 7858..7898

                                      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 341.

                                      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

                                          function checkWSDL() {
                                              $this->appendDebug($this->wsdl->getDebug());
                                              $this->wsdl->clearDebug();
                                              $this->debug('checkWSDL');
                                              // catch errors
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 1 day to fix
                                      system/lib/nusoap/nusoap.php on lines 7496..7523

                                      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 341.

                                      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($errstr = $this->getError()){
                                                  $this->debug('Error: '.$errstr);
                                                  return false;
                                              } else {
                                                  $this->return = $return;
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 1 day to fix
                                      system/lib/nusoap/nusoap.php on lines 7448..7488

                                      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 279.

                                      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

                                          function checkCookies() {
                                              if (sizeof($this->cookies) == 0) {
                                                  return true;
                                              }
                                              $this->debug('checkCookie: check ' . sizeof($this->cookies) . ' cookies');
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 7 hrs to fix
                                      system/lib/nusoap/nusoap.php on lines 8049..8073

                                      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 227.

                                      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 ($style == 'rpc') {
                                                  if ($use == 'literal') {
                                                      $this->debug("wrapping RPC request with literal method element");
                                                      if ($namespace) {
                                                          // http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html R2735 says rpc/literal accessor elements should not be in a namespace
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 4 hrs to fix
                                      system/lib/nusoap/nusoap.php on lines 7418..7441

                                      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 163.

                                      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

                                          function loadWSDL() {
                                              $this->debug('instantiating wsdl class with doc: '.$this->wsdlFile);
                                              $this->wsdl = new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
                                              $this->wsdl->setCredentials($this->username, $this->password, $this->authtype, $this->certRequest);
                                              $this->wsdl->fetchWSDL($this->wsdlFile);
                                      Severity: Major
                                      Found in system/lib/nusoap/class.soapclient.php and 1 other location - About 2 hrs to fix
                                      system/lib/nusoap/nusoap.php on lines 7530..7536

                                      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

                                      There are no issues that match your filters.

                                      Category
                                      Status