XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

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

        setPosition: function (pos, offset, vis, dur, easing) {
Severity: Minor
Found in assets/images/js/highslide/highslide-with-gallery.js - About 35 mins to fix

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

        public function _block($xbeg, $xlen, $ybeg, $ylen, &$edits)
    Severity: Minor
    Found in include/Text_Diff_Renderer.php - About 35 mins to fix

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

              public function startElementHandler($fname, $tagname, $attributes, $line, $lineno)
      Severity: Minor
      Found in include/patTemplate.php - About 35 mins to fix

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

            public function _diag($xoff, $xlim, $yoff, $ylim, $nchunks)
        Severity: Minor
        Found in include/Text_Diff.php - About 35 mins to fix

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

                  public function get_xoops_search_result($keywords, $andor, $limit, $offset, $uid)
          Severity: Minor
          Found in class/APCal_xoops.php - About 35 mins to fix

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

                        $event,
                        $tzoffset,
                        $border_for_2400,
                        $justify = true,
                        $admission = true
            Severity: Minor
            Found in class/APCal.php - About 35 mins to fix

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

                  public function ImageBorder(&$gdimg, $border_width, $radius_x, $radius_y, $hexcolor_border)
              Severity: Minor
              Found in thumbs/phpthumb.filters.php - About 35 mins to fix

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

                    public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                Severity: Minor
                Found in thumbs/phpthumb.functions.php - About 35 mins to fix

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

                      public function Crop(&$gdimg, $left = 0, $right = 0, $top = 0, $bottom = 0)
                  Severity: Minor
                  Found in thumbs/phpthumb.filters.php - About 35 mins to fix

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

                            &$gdimg_source,
                            $rotate_angle = 0,
                            $config_background_hexcolor = 'FFFFFF',
                            $bg = null,
                            &$phpThumbObject
                    Severity: Minor
                    Found in thumbs/phpthumb.filters.php - About 35 mins to fix

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

                                  if (up) hs.setStyles(this.wrapper, {
                                      width: x.t + 'px',
                                      height: y.t + 'px'
                                  });
                      Severity: Major
                      Found in assets/images/js/highslide/highslide-with-html.js and 3 other locations - About 35 mins to fix
                      assets/images/js/highslide/highslide-full.js on lines 2059..2062
                      assets/images/js/highslide/highslide-with-gallery.js on lines 1589..1592
                      assets/images/js/highslide/highslide.js on lines 1341..1344

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

                      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 4 locations. Consider refactoring.
                      Open

                                  if (up) hs.setStyles(this.wrapper, {
                                      width: x.t + 'px',
                                      height: y.t + 'px'
                                  });
                      Severity: Major
                      Found in assets/images/js/highslide/highslide-full.js and 3 other locations - About 35 mins to fix
                      assets/images/js/highslide/highslide-with-gallery.js on lines 1589..1592
                      assets/images/js/highslide/highslide-with-html.js on lines 1754..1757
                      assets/images/js/highslide/highslide.js on lines 1341..1344

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

                      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 4 locations. Consider refactoring.
                      Open

                                  if (up) hs.setStyles(this.wrapper, {
                                      width: x.t + 'px',
                                      height: y.t + 'px'
                                  });
                      Severity: Major
                      Found in assets/images/js/highslide/highslide-with-gallery.js and 3 other locations - About 35 mins to fix
                      assets/images/js/highslide/highslide-full.js on lines 2059..2062
                      assets/images/js/highslide/highslide-with-html.js on lines 1754..1757
                      assets/images/js/highslide/highslide.js on lines 1341..1344

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

                      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 4 locations. Consider refactoring.
                      Open

                                  if (up) hs.setStyles(this.wrapper, {
                                      width: x.t + 'px',
                                      height: y.t + 'px'
                                  });
                      Severity: Major
                      Found in assets/images/js/highslide/highslide.js and 3 other locations - About 35 mins to fix
                      assets/images/js/highslide/highslide-full.js on lines 2059..2062
                      assets/images/js/highslide/highslide-with-gallery.js on lines 1589..1592
                      assets/images/js/highslide/highslide-with-html.js on lines 1754..1757

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

                      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

                      Calendar._DN = new Array
                      ("Domingo",
                          "Lunes",
                          "Martes",
                          "Miércoles",
                      Severity: Minor
                      Found in assets/js/jscalendar/lang/calendar-es.js and 2 other locations - About 35 mins to fix
                      assets/js/jscalendar/lang/calendar-ko-utf8.js on lines 16..24
                      assets/js/jscalendar/lang/calendar-ko.js on lines 16..24

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

                      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

                      Calendar._DN = new Array
                      ("일요일",
                          "월요일",
                          "화요일",
                          "수요일",
                      Severity: Minor
                      Found in assets/js/jscalendar/lang/calendar-ko-utf8.js and 2 other locations - About 35 mins to fix
                      assets/js/jscalendar/lang/calendar-es.js on lines 15..23
                      assets/js/jscalendar/lang/calendar-ko.js on lines 16..24

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

                      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

                      Calendar._DN = new Array
                      ("일요일",
                          "월요일",
                          "화요일",
                          "수요일",
                      Severity: Minor
                      Found in assets/js/jscalendar/lang/calendar-ko.js and 2 other locations - About 35 mins to fix
                      assets/js/jscalendar/lang/calendar-es.js on lines 15..23
                      assets/js/jscalendar/lang/calendar-ko-utf8.js on lines 16..24

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

                      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

                                  foreach ($phpinfo_array as $line) {
                                      $line = trim(strip_tags($line));
                                      foreach ($exif_info as $key => $value) {
                                          if (strpos($line, $key) === 0) {
                                              $newvalue        = trim(str_replace($key, '', $line));
                      Severity: Minor
                      Found in thumbs/phpthumb.functions.php and 1 other location - About 35 mins to fix
                      thumbs/phpthumb.functions.php on lines 1283..1292

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

                      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 ($event->gmlat > 0 || $event->gmlong > 0) {
                                              $this->gmPoints[] = array(
                                                  'summary'   => $event->summary,
                                                  'gmlat'     => $event->gmlat,
                                                  'gmlong'    => $event->gmlong,
                      Severity: Minor
                      Found in class/APCal.php and 1 other location - About 35 mins to fix
                      class/APCal_xoops.php on lines 903..913

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

                      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

                                          case 'sep': // Sepia
                                              if (phpthumb_functions::gd_version() < 2) {
                                                  $this->DebugMessage('Skipping Sepia() because gd_version is "' . phpthumb_functions::gd_version() . '"', __FILE__, __LINE__);
                                                  break;
                                              }
                      Severity: Minor
                      Found in thumbs/phpthumb.class.php and 1 other location - About 35 mins to fix
                      thumbs/phpthumb.class.php on lines 3029..3036

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

                      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

                      Severity
                      Category
                      Status
                      Source
                      Language