mrprompt/DataStructure

View on GitHub

Showing 27 of 27 total issues

The parameter $value_dest is not named in camelCase.
Open

    protected function compare($value_orig, $value_dest)
    {
        return $value_orig <> $value_dest;
    }
Severity: Minor
Found in src/Heap.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $value_dest is not named in camelCase.
Open

    protected function compare($value_orig, $value_dest)
    {
        return $value_orig < $value_dest;
    }
Severity: Minor
Found in src/MinHeap.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $value_orig is not named in camelCase.
Open

    protected function compare($value_orig, $value_dest)
    {
        return $value_orig <> $value_dest;
    }
Severity: Minor
Found in src/Heap.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $value_orig is not named in camelCase.
Open

    protected function compare($value_orig, $value_dest)
    {
        return $value_orig < $value_dest;
    }
Severity: Minor
Found in src/MinHeap.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $value_dest is not named in camelCase.
Open

    protected function compare($value_orig, $value_dest)
    {
        return $value_orig > $value_dest;
    }
Severity: Minor
Found in src/MaxHeap.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $value_orig is not named in camelCase.
Open

    protected function compare($value_orig, $value_dest)
    {
        return $value_orig > $value_dest;
    }
Severity: Minor
Found in src/MaxHeap.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function pushAll(Array $toAdd = [])
Severity: Minor
Found in src/DoublyLinked.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function insertAll(Array $toAdd = [])
Severity: Minor
Found in src/MaxHeap.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function __construct(Array $values = [])
Severity: Minor
Found in src/DoublyLinked.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function __construct(Array $values = [])
Severity: Minor
Found in src/MinHeap.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function __construct(Array $values = [])
Severity: Minor
Found in src/Heap.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function insertAll(Array $toAdd = [])
Severity: Minor
Found in src/Priority.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function insertAll(Array $toAdd = [])
Severity: Minor
Found in src/Stack.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function __construct(Array $values = [])
Severity: Minor
Found in src/Stack.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function insertAll(Array $toAdd = [])
Severity: Minor
Found in src/Heap.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function insertAll(Array $toAdd = [])
Severity: Minor
Found in src/MinHeap.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function __construct(Array $values = [])
Severity: Minor
Found in src/Queue.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function __construct(Array $values = [])
Severity: Minor
Found in src/MaxHeap.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function insertAll(Array $toAdd = [])
Severity: Minor
Found in src/Queue.php by phpcodesniffer

PHP keywords must be lowercase; expected "array" but found "Array"
Open

    public function __construct(Array $values = [], int $defaultPriority = 0)
Severity: Minor
Found in src/Priority.php by phpcodesniffer
Severity
Category
Status
Source
Language