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
- Exclude checks
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
*/
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
*/
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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.
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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
- Exclude checks
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
- Exclude checks