XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

Function easeOutBounce has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

            easeOutBounce: function (x, t, b, c, d) {
Severity: Minor
Found in assets/js/jquery-ui-1.8.11.custom.js - About 35 mins to fix

    Function easeInBounce has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                easeInBounce: function (x, t, b, c, d) {
    Severity: Minor
    Found in assets/js/jquery-ui-1.8.11.custom.js - About 35 mins to fix

      Function easeInOutBounce has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

                  easeInOutBounce: function (x, t, b, c, d) {
      Severity: Minor
      Found in assets/js/jquery-ui-1.8.11.custom.js - About 35 mins to fix

        Function easeOutElastic has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                    easeOutElastic: function (x, t, b, c, d) {
        Severity: Minor
        Found in assets/js/jquery-ui-1.8.11.custom.js - About 35 mins to fix

          Function easeInOutElastic has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                      easeInOutElastic: function (x, t, b, c, d) {
          Severity: Minor
          Found in assets/js/jquery-ui-1.8.11.custom.js - About 35 mins to fix

            Function easeInElastic has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                        easeInElastic: function (x, t, b, c, d) {
            Severity: Minor
            Found in assets/js/jquery-ui-1.8.11.custom.js - About 35 mins to fix

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

                  private function handle_file_upload($uploaded_file, $name, $size, $type, $error)
              Severity: Minor
              Found in class/uploadclass.php - About 35 mins to fix

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

                    public function getSharingDiv($id, $priv, $permalink, $desc, $username)
                Severity: Minor
                Found in class/WallUpdates.php - About 35 mins to fix

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

                      private function handle_file_upload($uploaded_file, $name, $size, $type, $error)
                  Severity: Minor
                  Found in class/SwUploadHandler.php - About 35 mins to fix

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

                        public function input($name, $id, $class, $size = null, $preset = null)
                    Severity: Minor
                    Found in class/Form.php - About 35 mins to fix

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

                          public function sendMails($fromUserId, $toUserId, $event, $link, array $data)
                      Severity: Minor
                      Found in class/Mail.php - About 35 mins to fix

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

                            public function retrieveRadio($name, $options, $valuearray, $selected = null, $sep = '<br>')
                        Severity: Minor
                        Found in class/Form.php - About 35 mins to fix

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

                              public static function truncateHtml($text, $length = 100, $ending = '...', $exact = false, $considerHtml = true)
                          Severity: Minor
                          Found in class/Common/SysUtility.php - About 35 mins to fix

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

                                public function getSharingDiv($id, $priv, $permalink, $desc, $username)
                            Severity: Minor
                            Found in class/PublicWallUpdates.php - About 35 mins to fix

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

                                  public function flatten($array)
                                  {
                                      $return = [];
                                      while (count($array)) {
                                          $value = array_shift($array);
                              Severity: Minor
                              Found in class/Admin.php - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

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

                                  public function doCheckUpdate()
                                  {
                                      global $pathIcon16;
                                      $version  = $this->ModuleInstallVersion();
                                      $critical = false;
                              Severity: Minor
                              Found in class/Admin.php - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

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

                                  public static function getDirectoryStatus($path, $mode = 0777, $redirectFile = null)
                                  {
                                      global $pathIcon16;
                              
                                      if (empty($path)) {
                              Severity: Minor
                              Found in class/Common/DirectoryChecker.php - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

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

                                  public function mostactiveusers_today()
                                  {
                                      $sql = 'SELECT uid_fk, COUNT( * ) as cnt ';
                                      $sql .= 'FROM ( ';
                                      $sql .= 'SELECT uid_fk ';
                              Severity: Minor
                              Found in class/Admin.php - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

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

                                  public static function getEditor($helper = null, $options = null)
                                  {
                                      /** @var Helper $helper */
                                      if (null === $options) {
                                          $options           = [];
                              Severity: Minor
                              Found in class/Common/SysUtility.php - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

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

                                  protected function orient_image($file_path)
                                  {
                                      if (!function_exists('exif_read_data')) {
                                          return false;
                                      }
                              Severity: Minor
                              Found in class/UploadHandler.php - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Severity
                              Category
                              Status
                              Source
                              Language