SAREhub/PHP_Commons

View on GitHub
src/SAREhub/Commons/Zmq/PublishSubscribe/ZmqForwarderDeviceBuilder.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '49', column '23').
Open

        $device = new \ZMQDevice($this->frontend->getSocket(), $this->backend->getSocket());

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

Avoid unused private fields such as '$timerCallback'.
Open

    private $timerCallback;

UnusedPrivateField

Since: 0.2

Detects when a private field is declared and/or assigned a value, but not used.

Example

class Something
{
    private static $FOO = 2; // Unused
    private $i = 5; // Unused
    private $j = 6;
    public function addOne()
    {
        return $this->j++;
    }
}

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

Expected 1 newline at end of file; 0 found
Open

}

There are no issues that match your filters.

Category
Status