LibreNMS/Data/Store/TimeSeriesPoint.php
Avoid using short method names like TimeSeriesPoint::ds(). The configured minimum method name length is 3. Open
Open
public function ds(): array
{
return array_keys($this->data);
}
- Read upRead up
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}
Source https://phpmd.org/rules/naming.html#shortmethodname
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
public readonly int $timestamp,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
public readonly array $data,
- Exclude checks