sebastianmonzel/webfiles-framework-php

View on GitHub
source/core/datasystem/file/format/media/image/handler/MImageMagickHandler.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Avoid unused parameters such as '$p_sImage'.
Open

    public function loadPng($p_sImage)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$p_sImage'.
Open

    public function loadJpg($p_sImage)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

The parameter $p_sImage is not named in camelCase.
Open

    public function loadJpg($p_sImage)
    {
        throw new Exception("method not implemented yet");
    }

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 $p_sImage is not named in camelCase.
Open

    public function loadPng($p_sImage)
    {
        throw new Exception("method not implemented yet");
    }

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

There are no issues that match your filters.

Category
Status