XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

The class APCal has 29 public methods. Consider refactoring APCal to keep number of public methods under 10.
Open

    class APCal
    {
        // SKELTON (they will be defined in language files)
        public $holidays           = array();
        public $date_short_names   = array();
Severity: Minor
Found in class/APCal.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class APCal_xoops has an overall complexity of 146 which is very high. The configured complexity threshold is 50.
Open

    class APCal_xoops extends APCal
    {
        /**
         * @param $data
         * @return mixed
Severity: Minor
Found in class/APCal_xoops.php by phpmd

The class iCal_parser has 15 public methods. Consider refactoring iCal_parser to keep number of public methods under 10.
Open

class iCal_parser
{
    public $week_start_day = 'Sunday';
    public $timezone       = '+0900';
    public $events         = array();
Severity: Minor
Found in class/iCal_parser.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class iCal_parser has an overall complexity of 109 which is very high. The configured complexity threshold is 50.
Open

class iCal_parser
{
    public $week_start_day = 'Sunday';
    public $timezone       = '+0900';
    public $events         = array();
Severity: Minor
Found in class/iCal_parser.php by phpmd

The class phpthumb_bmp has an overall complexity of 131 which is very high. The configured complexity threshold is 50.
Open

class phpthumb_bmp
{

    // removed for XOOPS
    //function phpthumb_bmp() {
Severity: Minor
Found in thumbs/phpthumb.bmp.php by phpmd

The class phpthumb_bmp has 15 public methods. Consider refactoring phpthumb_bmp to keep number of public methods under 10.
Open

class phpthumb_bmp
{

    // removed for XOOPS
    //function phpthumb_bmp() {
Severity: Minor
Found in thumbs/phpthumb.bmp.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class phpthumb has 48 non-getter- and setter-methods. Consider refactoring phpthumb to keep number of methods under 25.
Open

class phpthumb
{

    // public:
    // START PARAMETERS (for object mode and phpThumb.php)
Severity: Minor
Found in thumbs/phpthumb.class.php by phpmd

TooManyMethods

Since: 0.1

A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

The default was changed from 10 to 25 in PHPMD 2.3.

Example

Source https://phpmd.org/rules/codesize.html#toomanymethods

The class phpthumb has 48 public methods. Consider refactoring phpthumb to keep number of public methods under 10.
Open

class phpthumb
{

    // public:
    // START PARAMETERS (for object mode and phpThumb.php)
Severity: Minor
Found in thumbs/phpthumb.class.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class phpthumb has an overall complexity of 1109 which is very high. The configured complexity threshold is 50.
Open

class phpthumb
{

    // public:
    // START PARAMETERS (for object mode and phpThumb.php)
Severity: Minor
Found in thumbs/phpthumb.class.php by phpmd

The class phpthumb_filters has 37 non-getter- and setter-methods. Consider refactoring phpthumb_filters to keep number of methods under 25.
Open

class phpthumb_filters
{
    public $phpThumbObject = null;

    // removed for XOOPS
Severity: Minor
Found in thumbs/phpthumb.filters.php by phpmd

TooManyMethods

Since: 0.1

A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

The default was changed from 10 to 25 in PHPMD 2.3.

Example

Source https://phpmd.org/rules/codesize.html#toomanymethods

The class phpthumb_filters has 37 public methods. Consider refactoring phpthumb_filters to keep number of public methods under 10.
Open

class phpthumb_filters
{
    public $phpThumbObject = null;

    // removed for XOOPS
Severity: Minor
Found in thumbs/phpthumb.filters.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class phpthumb_filters has an overall complexity of 331 which is very high. The configured complexity threshold is 50.
Open

class phpthumb_filters
{
    public $phpThumbObject = null;

    // removed for XOOPS
Severity: Minor
Found in thumbs/phpthumb.filters.php by phpmd

The class phpthumb_functions has 41 public methods. Consider refactoring phpthumb_functions to keep number of public methods under 10.
Open

class phpthumb_functions
{

    /**
     * @param $functionname
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class phpthumb_functions has 41 non-getter- and setter-methods. Consider refactoring phpthumb_functions to keep number of methods under 25.
Open

class phpthumb_functions
{

    /**
     * @param $functionname
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

TooManyMethods

Since: 0.1

A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

The default was changed from 10 to 25 in PHPMD 2.3.

Example

Source https://phpmd.org/rules/codesize.html#toomanymethods

The class phpthumb_functions has an overall complexity of 217 which is very high. The configured complexity threshold is 50.
Open

class phpthumb_functions
{

    /**
     * @param $functionname
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

The class CGIF has an overall complexity of 67 which is very high. The configured complexity threshold is 50.
Open

class CGIF
{
    public $m_gfh;
    public $m_lpData;
    public $m_img;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

File myblocksadmin2.php has 305 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
// ------------------------------------------------------------------------- //
//                     myblocksadmin_for_2.2.php                             //
//                - XOOPS block admin for each modules -                     //
//                          GIJOE <http://www.peak.ne.jp/>                   //
Severity: Minor
Found in admin/myblocksadmin2.php - About 3 hrs to fix

    Method ImageCreateFromFilename has 83 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function ImageCreateFromFilename($filename)
        {
            // try to create GD image source directly via GD, if possible,
            // rather than buffering to memory and creating with ImageCreateFromString
            $ImageCreateWasAttempted = false;
    Severity: Major
    Found in thumbs/phpthumb.class.php - About 3 hrs to fix

      Method WatermarkOverlay has 83 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function WatermarkOverlay(
              &$gdimg_dest,
              &$img_watermark,
              $alignment = '*',
              $opacity = 50,
      Severity: Major
      Found in thumbs/phpthumb.filters.php - About 3 hrs to fix

        File events.php has 304 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /*
         * You may not change or alter any portion of this comment or credits
         * of supporting developers from this source code or any supporting source code
         * which is considered copyrighted (c) material of the original comment or credit authors.
        Severity: Minor
        Found in admin/events.php - About 3 hrs to fix
          Severity
          Category
          Status
          Source
          Language