railpage/railpagecore

View on GitHub

Showing 1,011 of 9,214 total issues

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 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 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 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 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 Links has an overall complexity of 51 which is very high. The configured complexity threshold is 50.
Open

class Links extends Appcore {
    
    /**
     * Get categories
     */
Severity: Minor
Found in lib/Links/Links.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 Competition has an overall complexity of 134 which is very high. The configured complexity threshold is 50.
Open

class Competition extends AppCore {
    
    /**
     * Registry key
     * @since Version 3.10.0
Severity: Minor
Found in lib/Images/Competition.php by phpmd

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

class Images extends AppCore {
    
    /**
     * Option: Do not load a \Railpage\Place object
     * @since Version 3.9.1
Severity: Minor
Found in lib/Images/Images.php by phpmd

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 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 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 ContentUtility has an overall complexity of 58 which is very high. The configured complexity threshold is 50.
Open

class ContentUtility {
    
    /**
     * Text format parser version
     * Bump this when a change to formatText() has been made to bust previously rendered (and cached) text blocks
Severity: Minor
Found in lib/ContentUtility.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 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 Thread has an overall complexity of 61 which is very high. The configured complexity threshold is 50.
Open

class Thread extends Forums {
    
    /**
     * Thread ID
     * @since Version 3.0.1
Severity: Minor
Found in lib/Forums/Thread.php by phpmd

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

class LocomotiveUtility {

    /**
     * Fetch locomotive data from Memcached/Redis/Database
     * @since Version 3.9.1

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 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 Camera has an overall complexity of 79 which is very high. The configured complexity threshold is 50.
Open

class Camera extends Railcams {
    
    /**
     * Camera ID
     * @since Version 3.4
Severity: Minor
Found in lib/Railcams/Camera.php by phpmd
Severity
Category
Status
Source
Language