steeffeen/FancyManiaLinks

View on GitHub
FML/Types/Playable.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

The closing brace for the interface must go on the next line after the body
Open

}
Severity: Minor
Found in FML/Types/Playable.php by phpcodesniffer

The 'getPlay()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getPlay();
Severity: Minor
Found in FML/Types/Playable.php by phpmd

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

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

The 'getLooping()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getLooping();
Severity: Minor
Found in FML/Types/Playable.php by phpmd

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

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

The 'getMusic()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getMusic();
Severity: Minor
Found in FML/Types/Playable.php by phpmd

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

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

There are no issues that match your filters.

Category
Status