steeffeen/FancyManiaLinks

View on GitHub

Showing 2,233 of 2,233 total issues

Constant SUBSTYLE_TitleBg should be defined in uppercase
Open

    const SUBSTYLE_TitleBg      = 'TitleBg';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_BgFloat should be defined in uppercase
Open

    const SUBSTYLE_BgFloat        = 'BgFloat';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_Events should be defined in uppercase
Open

    const SUBSTYLE_Events         = 'Events';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_SphereFull should be defined in uppercase
Open

    const SUBSTYLE_SphereFull        = 'SphereFull';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_AuthorTime should be defined in uppercase
Open

    const SUBSTYLE_AuthorTime           = 'AuthorTime';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_Left should be defined in uppercase
Open

    const SUBSTYLE_Left                 = 'Left';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_Cut should be defined in uppercase
Open

    const SUBSTYLE_Cut         = 'Cut';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_GhostBlocks should be defined in uppercase
Open

    const SUBSTYLE_GhostBlocks = 'GhostBlocks';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_PlayerSlotCenter should be defined in uppercase
Open

    CONST SUBSTYLE_PlayerSlotCenter   = 'PlayerSlotCenter';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant FORMAT_NewPassword should be defined in uppercase
Open

    const FORMAT_NewPassword = "NewPassword";
Severity: Minor
Found in FML/Controls/TextEdit.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

The method __construct() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
Open

    public function __construct($control = null, $keyNameOrCode = null, $rememberState = true)
    {
        if ($control && !$control instanceof Control) {
            // backwards-compatibility - control parameter has been introduced later on
            $rememberState = $keyNameOrCode;

CyclomaticComplexity

Since: 0.1

Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

Example

// Cyclomatic Complexity = 11
class Foo {
1   public function example() {
2       if ($a == $b) {
3           if ($a1 == $b1) {
                fiddle();
4           } elseif ($a2 == $b2) {
                fiddle();
            } else {
                fiddle();
            }
5       } elseif ($c == $d) {
6           while ($c == $d) {
                fiddle();
            }
7        } elseif ($e == $f) {
8           for ($n = 0; $n < $h; $n++) {
                fiddle();
            }
        } else {
            switch ($z) {
9               case 1:
                    fiddle();
                    break;
10              case 2:
                    fiddle();
                    break;
11              case 3:
                    fiddle();
                    break;
                default:
                    fiddle();
                    break;
            }
        }
    }
}

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

Line exceeds 120 characters; contains 126 characters
Open

class Label extends Control implements Actionable, Linkable, NewLineable, MultiLineable, Scriptable, Styleable, TextFormatable
Severity: Minor
Found in FML/Controls/Label.php by phpcodesniffer

Line exceeds 120 characters; contains 140 characters
Open

class Quad extends Control implements Actionable, BackgroundColorable, BgColorable, Imageable, Linkable, Scriptable, Styleable, SubStyleable
Severity: Minor
Found in FML/Controls/Quad.php by phpcodesniffer

Line exceeds 120 characters; contains 137 characters
Open

    public function addToggleFeature(Control $toggledControl, $labelName = ScriptLabel::MOUSECLICK, $onlyShow = false, $onlyHide = false)
Severity: Minor
Found in FML/Controls/Control.php by phpcodesniffer

Line exceeds 120 characters; contains 121 characters
Open

            // backwards-compatibility (version has been introduced later, if it's a string it's supposed to be the name)
Severity: Minor
Found in FML/ManiaLink.php by phpcodesniffer

Line exceeds 120 characters; contains 244 characters
Open

Void {$updatePageFunction}(Text _PagingId, Text _PageLabelId, Integer _BrowseAction, Integer _MinPageNumber, Integer _MaxPageNumber, Text[Integer] _Pages, Text _PreviousChunkAction, Text _NextChunkAction, Boolean _ChunkActionAppendPageNumber) {

Line exceeds 120 characters; contains 127 characters
Open

    public function __construct($soundName = null, Control $control = null, $variant = 0, $labelName = ScriptLabel::MOUSECLICK)

Line exceeds 120 characters; contains 137 characters
Open

    " . self::FUNCTION_ON_RADIO_BUTTON_CLICK . "(RadioButtonQuad, RadioButtonGroupEntry, " . $this->getRadioButtonIdsConstantName() . ");

Line exceeds 120 characters; contains 144 characters
Open

    public function __construct(Control $hoverControl = null, Control $tooltipControl = null, $stayOnClick = null, $invert = null, $text = null)

Line exceeds 120 characters; contains 130 characters
Open

                declare " . CheckBoxFeature::VAR_CHECKBOX_ENABLED . " as OtherRadioButtonEnabled for OtherRadioButtonQuad = False;
Severity
Category
Status
Source
Language