librenms/librenms

View on GitHub
LibreNMS/Enum/LegacyAuthLevel.php

Summary

Maintainability
A
0 mins
Test Coverage

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getName(): string

Line indented incorrectly; expected 12 spaces, found 8
Open

        if ($this == LegacyAuthLevel::global_read) {

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            return 'global-read';

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Space before opening parenthesis of function call prohibited
Open

        return match ($name) {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->name;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return match ($name) {

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function fromName(string $name): ?LegacyAuthLevel

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        };

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

There are no issues that match your filters.

Category
Status