amtgard/ORK3

View on GitHub

Showing 1,733 of 2,354 total issues

File jquery-ui-1.8.18.custom.js has 8844 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery UI 1.8.18
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.

    File jquery-1.7.1.js has 6373 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery JavaScript Library v1.7.1
     * http://jquery.com/
     *
     * Copyright 2011, John Resig
    Severity: Major
    Found in orkui/template/default/script/development-bundle/jquery-1.7.1.js - About 2 wks to fix

      File nusoap.php has 5359 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      /*
      $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
      
      
      Severity: Major
      Found in system/lib/nusoap/nusoap.php - About 2 wks to fix

        File phpqrcode.php has 2160 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        /*
         * PHP QR Code encoder
         *
        Severity: Major
        Found in system/lib/phpqrcode/phpqrcode.php - About 5 days to fix

          File qrcode.php has 1688 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          //============================================================+
          // File name   : qrcode.php
          // Begin       : 2010-03-22
          // Last Update : 2010-03-29
          Severity: Major
          Found in system/lib/phpqrcode/bindings/tcpdf/qrcode.php - About 4 days to fix

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

                public function send() {   
                    if (!$this->to) {
                        exit('Error: E-Mail to required!');
                    }
                
            Severity: Minor
            Found in system/lib/mail.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 getResponse has a Cognitive Complexity of 201 (exceeds 5 allowed). Consider refactoring.
            Open

                function getResponse(){
                    $this->incoming_payload = '';
                    
                  if ($this->io_method() == 'socket') {
                    // loop until headers have been retrieved
            Severity: Minor
            Found in system/lib/nusoap/nusoap.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 getResponse has a Cognitive Complexity of 201 (exceeds 5 allowed). Consider refactoring.
            Open

                function getResponse(){
                    $this->incoming_payload = '';
                    
                  if ($this->io_method() == 'socket') {
                    // loop until headers have been retrieved
            Severity: Minor
            Found in system/lib/nusoap/class.soap_transport_http.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

            File jquery.sceditor.js has 1520 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * SCEditor v1.3.3
             * http://www.samclarke.com/2011/07/sceditor/ 
             *
             * Copyright (C) 2011-2012, Sam Clarke (samclarke.com)
            Severity: Major
            Found in orkui/template/default/script/js/SCEditor/jquery.sceditor.js - About 4 days to fix

              Function serializeType has a Cognitive Complexity of 197 (exceeds 5 allowed). Consider refactoring.
              Open

                  function serializeType($name, $type, $value, $use='encoded', $encodingStyle=false, $unqualified=false)
                  {
                      $this->debug("in serializeType: name=$name, type=$type, use=$use, encodingStyle=$encodingStyle, unqualified=" . ($unqualified ? "unqualified" : "qualified"));
                      $this->appendDebug("value=" . $this->varDump($value));
                      if($use == 'encoded' && $encodingStyle) {
              Severity: Minor
              Found in system/lib/nusoap/class.wsdl.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 serializeType has a Cognitive Complexity of 197 (exceeds 5 allowed). Consider refactoring.
              Open

                  function serializeType($name, $type, $value, $use='encoded', $encodingStyle=false, $unqualified=false)
                  {
                      $this->debug("in serializeType: name=$name, type=$type, use=$use, encodingStyle=$encodingStyle, unqualified=" . ($unqualified ? "unqualified" : "qualified"));
                      $this->appendDebug("value=" . $this->varDump($value));
                      if($use == 'encoded' && $encodingStyle) {
              Severity: Minor
              Found in system/lib/nusoap/nusoap.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

              File jquery.ui.datepicker.js has 1505 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*
               * jQuery UI Datepicker 1.8.18
               *
               * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
               * Dual licensed under the MIT or GPL Version 2 licenses.

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

                <?php
                
                
                
                
                
                Severity: Major
                Found in system/lib/nusoap/class.wsdl.php - About 4 days to fix

                  File controller.Admin.php has 1425 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  
                  class Controller_Admin extends Controller {
                  
                      public function __construct($call=null, $id=null) {
                  Severity: Major
                  Found in orkui/controller/controller.Admin.php - About 3 days to fix

                    File jquery-ui-i18n.js has 1373 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /* Afrikaans initialisation for the jQuery UI date picker plugin. */
                    /* Written by Renier Pretorius. */
                    jQuery(function($){
                        $.datepicker.regional['af'] = {
                            closeText: 'Selekteer',

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

                      <?php
                      
                      class Player extends Ork3 {
                      
                          public function __construct() {
                      Severity: Major
                      Found in system/lib/ork3/class.Player.php - About 3 days to fix

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

                        <?php
                        
                        /*************************************************************************
                        
                        Here be dragons.
                        Severity: Major
                        Found in system/lib/ork3/class.Report.php - About 3 days to fix

                          Function connect has a Cognitive Complexity of 153 (exceeds 5 allowed). Consider refactoring.
                          Open

                              function connect($connection_timeout=0,$response_timeout=30){
                                    // For PHP 4.3 with OpenSSL, change https scheme to ssl, then treat like
                                    // "regular" socket.
                                    // TODO: disabled for now because OpenSSL must be *compiled* in (not just
                                    //       loaded), and until PHP5 stream_get_wrappers is not available.
                          Severity: Minor
                          Found in system/lib/nusoap/nusoap.php - About 3 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 connect has a Cognitive Complexity of 153 (exceeds 5 allowed). Consider refactoring.
                          Open

                              function connect($connection_timeout=0,$response_timeout=30){
                                    // For PHP 4.3 with OpenSSL, change https scheme to ssl, then treat like
                                    // "regular" socket.
                                    // TODO: disabled for now because OpenSSL must be *compiled* in (not just
                                    //       loaded), and until PHP5 stream_get_wrappers is not available.
                          Severity: Minor
                          Found in system/lib/nusoap/class.soap_transport_http.php - About 3 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 jQuery has 592 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var jQuery = (function() {
                          
                          // Define a local copy of jQuery
                          var jQuery = function( selector, context ) {
                                  // The jQuery object is actually just the init constructor 'enhanced'
                          Severity: Major
                          Found in orkui/template/default/script/development-bundle/jquery-1.7.1.js - About 2 days to fix
                            Severity
                            Category
                            Status
                            Source
                            Language