steeffeen/FancyManiaLinks

View on GitHub

Showing 2,233 of 2,233 total issues

The method addTooltipLabelFeature has a boolean flag argument $invert, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function addTooltipLabelFeature(Label $tooltipLabel, $text, $stayOnClick = false, $invert = false)
Severity: Minor
Found in FML/Controls/Control.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Missing class import via use statement (line '1001', column '28').
Open

        $domDocument = new \DOMDocument("1.0", "utf-8");
Severity: Minor
Found in FML/Controls/Control.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method addTooltipFeature has a boolean flag argument $invert, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function addTooltipFeature(Control $tooltipControl, $stayOnClick = false, $invert = false)
Severity: Minor
Found in FML/Controls/Control.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method appendGenericScriptLabel has a boolean flag argument $isolated, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function appendGenericScriptLabel($name, $text = null, $isolated = false)
Severity: Minor
Found in FML/Script/Script.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method addTooltipFeature has a boolean flag argument $stayOnClick, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function addTooltipFeature(Control $tooltipControl, $stayOnClick = false, $invert = false)
Severity: Minor
Found in FML/Controls/Control.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Missing class import via use statement (line '338', column '43').
Open

        $domDocument                = new \DOMDocument("1.0", "utf-8");
Severity: Minor
Found in FML/XmlRpc/UIProperties.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method addToggleFeature has a boolean flag argument $onlyHide, which is a certain sign of a Single Responsibility Principle violation.
Open

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

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Missing class import via use statement (line '364', column '43').
Open

        $domDocument                = new \DOMDocument("1.0", "utf-8");
Severity: Minor
Found in FML/ManiaCode.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method render has a boolean flag argument $echo, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function render($echo = false)
Severity: Minor
Found in FML/ManiaLinks.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method getDico has a boolean flag argument $createIfEmpty, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function getDico($createIfEmpty = true)
Severity: Minor
Found in FML/ManiaLink.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method render has a boolean flag argument $echo, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function render($echo = false, $domDocument = null)
Severity: Minor
Found in FML/ManiaLink.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method getStylesheet has a boolean flag argument $createIfEmpty, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function getStylesheet($createIfEmpty = true)
Severity: Minor
Found in FML/ManiaLink.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method getCustomUI has a boolean flag argument $createIfEmpty, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function getCustomUI($createIfEmpty = true)
Severity: Minor
Found in FML/ManiaLinks.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method render has a boolean flag argument $echo, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function render($echo = false)
Severity: Minor
Found in FML/ManiaCode.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Missing class import via use statement (line '557', column '47').
Open

            $domDocument                = new \DOMDocument("1.0", "utf-8");
Severity: Minor
Found in FML/ManiaLink.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '179', column '43').
Open

        $domDocument                = new \DOMDocument("1.0", "utf-8");
Severity: Minor
Found in FML/ManiaLinks.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method getLabelImplementationBlock has a boolean flag argument $isolate, which is a certain sign of a Single Responsibility Principle violation.
Open

    public static function getLabelImplementationBlock($labelName, $implementationCode, $isolate = true)
Severity: Minor
Found in FML/Script/Builder.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Missing class import via use statement (line '265', column '43').
Open

        $domDocument                = new \DOMDocument("1.0", "utf-8");
Severity: Minor
Found in FML/CustomUI.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method __construct has a boolean flag argument $showFullDate, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function __construct(Label $label = null, $showSeconds = true, $showFullDate = false)
Severity: Minor
Found in FML/Script/Features/Clock.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method addElement has a boolean flag argument $isStartElement, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function addElement(MenuElement $menuElement, $isStartElement = false)
Severity: Minor
Found in FML/Script/Features/Menu.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Severity
Category
Status
Source
Language