src/SAREhub/Commons/Zmq/PublishSubscribe/ZmqForwarderDeviceBuilder.php
Missing class import via use statement (line '49', column '23'). Open
Open
$device = new \ZMQDevice($this->frontend->getSocket(), $this->backend->getSocket());
- Read upRead up
- Exclude checks
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
Open
private $timerCallback;
- Read upRead up
- Exclude checks
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
Open
}
- Exclude checks