Showing 235 of 1,769 total issues

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

class Context extends RawMinkContext implements BehatContext
{
    use JsCoverageContextTrait;
    use RwDemosContextTrait;
    use WarnDynamicPropertyTrait;
Severity: Minor
Found in src/Behat/Context.php by phpmd

The class Context has 42 public methods. Consider refactoring Context to keep number of public methods under 10.
Open

class Context extends RawMinkContext implements BehatContext
{
    use JsCoverageContextTrait;
    use RwDemosContextTrait;
    use WarnDynamicPropertyTrait;
Severity: Minor
Found in src/Behat/Context.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 Crud has an overall complexity of 50 which is very high. The configured complexity threshold is 50.
Open

class Crud extends Grid
{
    /** @var array of fields to display in Grid */
    public $displayFields;

Severity: Minor
Found in src/Crud.php by phpmd

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

class Table extends Lister
{
    public $ui = 'table';

    public $defaultTemplate = 'table.html';
Severity: Minor
Found in src/Table.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 HtmlTemplate has 17 public methods. Consider refactoring HtmlTemplate to keep number of public methods under 10.
Open

class HtmlTemplate
{
    use WarnDynamicPropertyTrait;

    public const TOP_TAG = '_top';
Severity: Minor
Found in src/HtmlTemplate.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 Ui has an overall complexity of 64 which is very high. The configured complexity threshold is 50.
Open

class Ui extends Persistence
{
    /** @var string */
    public $locale = 'en';

Severity: Minor
Found in src/Persistence/Ui.php by phpmd

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

class Table extends Lister
{
    public $ui = 'table';

    public $defaultTemplate = 'table.html';
Severity: Minor
Found in src/Table.php by phpmd

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

class Console extends View implements LoggerInterface
{
    public $ui = 'inverted black segment';

    /**
Severity: Minor
Found in src/Console.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 Grid has 27 non-getter- and setter-methods. Consider refactoring Grid to keep number of methods under 25.
Open

class Grid extends View
{
    use HookTrait;

    /** @var Menu|array|false Will be initialized to Menu object, however you can set this to false to disable menu. */
Severity: Minor
Found in src/Grid.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 Multiline has an overall complexity of 121 which is very high. The configured complexity threshold is 50.
Open

class Multiline extends Form\Control
{
    /** @var HtmlTemplate|null The template needed for the multiline view. */
    public $multiLineTemplate;

Severity: Minor
Found in src/Form/Control/Multiline.php by phpmd

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

class Form extends View
{
    use HookTrait;

    /** Executed when form is submitted */
Severity: Minor
Found in src/Form.php by phpmd

The class App has 26 public methods. Consider refactoring App to keep number of public methods under 10.
Open

class App
{
    use AppScopeTrait;
    use DiContainerTrait;
    use DynamicMethodTrait;
Severity: Minor
Found in src/App.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 ScopeBuilder has an overall complexity of 71 which is very high. The configured complexity threshold is 50.
Open

class ScopeBuilder extends Form\Control
{
    public $renderLabel = false;

    public array $options = [
Severity: Minor
Found in src/Form/Control/ScopeBuilder.php by phpmd

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

class HtmlTemplate
{
    use WarnDynamicPropertyTrait;

    public const TOP_TAG = '_top';
Severity: Minor
Found in src/HtmlTemplate.php by phpmd

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

class App
{
    use AppScopeTrait;
    use DiContainerTrait;
    use DynamicMethodTrait;
Severity: Minor
Found in src/App.php by phpmd

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

class App
{
    use AppScopeTrait;
    use DiContainerTrait;
    use DynamicMethodTrait;
Severity: Minor
Found in src/App.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 Grid has an overall complexity of 79 which is very high. The configured complexity threshold is 50.
Open

class Grid extends View
{
    use HookTrait;

    /** @var Menu|array|false Will be initialized to Menu object, however you can set this to false to disable menu. */
Severity: Minor
Found in src/Grid.php by phpmd

The class Grid has 22 public methods. Consider refactoring Grid to keep number of public methods under 10.
Open

class Grid extends View
{
    use HookTrait;

    /** @var Menu|array|false Will be initialized to Menu object, however you can set this to false to disable menu. */
Severity: Minor
Found in src/Grid.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 Context has 53 non-getter- and setter-methods. Consider refactoring Context to keep number of methods under 25.
Open

class Context extends RawMinkContext implements BehatContext
{
    use JsCoverageContextTrait;
    use RwDemosContextTrait;
    use WarnDynamicPropertyTrait;
Severity: Minor
Found in src/Behat/Context.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 View has 22 public methods. Consider refactoring View to keep number of public methods under 10.
Open

class View extends AbstractView
{
    /**
     * When you call render() this will be populated with JavaScript chains.
     *
Severity: Minor
Found in src/View.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

Severity
Category
Status
Source
Language