railpage/railpagecore

View on GitHub

Showing 1,011 of 9,214 total issues

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

class LocoClass extends Locos {
    
    /**
     * Registry cache key
     * @since Version 3.9.1
Severity: Minor
Found in lib/Locos/LocoClass.php by phpmd

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

class Place extends AppCore {
    
    /**
     * Name
     * @var string $name
Severity: Minor
Found in lib/Place.php by phpmd

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

    class Notification extends AppCore {
        
        /**
         * Notification ID
         * @since Version 3.9.1
Severity: Minor
Found in lib/Notifications/Notification.php by phpmd

The class LocoClass has 11 public methods. Consider refactoring LocoClass to keep number of public methods under 10.
Open

class LocoClass extends Locos {
    
    /**
     * Registry cache key
     * @since Version 3.9.1
Severity: Minor
Found in lib/Locos/LocoClass.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 Locomotive has an overall complexity of 133 which is very high. The configured complexity threshold is 50.
Open

class Locomotive extends Locos {
    
    /**
     * Registry cache key
     * @since Version 3.9.1
Severity: Minor
Found in lib/Locos/Locomotive.php by phpmd

The class Image has 13 public methods. Consider refactoring Image to keep number of public methods under 10.
Open

class Image extends AppCore {

    /**
     * Max age of data before it requires refreshing
     */
Severity: Minor
Found in lib/Images/Image.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 Image has an overall complexity of 194 which is very high. The configured complexity threshold is 50.
Open

class Image extends AppCore {

    /**
     * Max age of data before it requires refreshing
     */
Severity: Minor
Found in lib/Images/Image.php by phpmd

The class Locomotive has 20 public methods. Consider refactoring Locomotive to keep number of public methods under 10.
Open

class Locomotive extends Locos {
    
    /**
     * Registry cache key
     * @since Version 3.9.1
Severity: Minor
Found in lib/Locos/Locomotive.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 AppCore has an overall complexity of 81 which is very high. The configured complexity threshold is 50.
Open

class AppCore {
    
    /**
     * Database object
     * @var object $db An instance of ZendDB or sql_db representing a database connection.
Severity: Minor
Found in lib/AppCore.php by phpmd

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

class Album extends AppCore {
    
    /**
     * On-disk root path
     * @since Version 3.10.0
Severity: Minor
Found in lib/Gallery/Album.php by phpmd

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

    class Article extends Base {
        
        /**
         * Cache key to store and fetch the formatted lead text from the cache
         * @since Version 3.10.0
Severity: Minor
Found in lib/News/Article.php by phpmd

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

class Locomotive extends Locos {
    
    /**
     * Registry cache key
     * @since Version 3.9.1
Severity: Minor
Found in lib/Locos/Locomotive.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 Event has an overall complexity of 62 which is very high. The configured complexity threshold is 50.
Open

class Event extends AppCore {
    
    /**
     * Registry key
     * @since Version 3.9.1
Severity: Minor
Found in lib/Events/Event.php by phpmd

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

class EventDate extends AppCore {
    
    /**
     * Event date status: running
     * @since Version 3.9.1
Severity: Minor
Found in lib/Events/EventDate.php by phpmd

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

class Forums extends AppCore {
    
    /**
     * Auth: list all
     * @const AUTH_LIST_ALL
Severity: Minor
Found in lib/Forums/Forums.php by phpmd

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

class PlaceUtility {
    
    /**
     * Get WoE data for a latitude/longitude lookup
     * @since Version 3.9.1
Severity: Minor
Found in lib/PlaceUtility.php by phpmd

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

class Post extends Forums {
    
    /**
     * Constant: Cache key for edit lookups
     * @since Version 3.11.0
Severity: Minor
Found in lib/Forums/Post.php by phpmd

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

class Locos extends AppCore {
    
    /**
     * Status : Operational
     * @since Version 3.8.7
Severity: Minor
Found in lib/Locos/Locos.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 Locos has 40 public methods. Consider refactoring Locos to keep number of public methods under 10.
Open

class Locos extends AppCore {
    
    /**
     * Status : Operational
     * @since Version 3.8.7
Severity: Minor
Found in lib/Locos/Locos.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 Locos has an overall complexity of 104 which is very high. The configured complexity threshold is 50.
Open

class Locos extends AppCore {
    
    /**
     * Status : Operational
     * @since Version 3.8.7
Severity: Minor
Found in lib/Locos/Locos.php by phpmd
Severity
Category
Status
Source
Language