ampache/ampache

View on GitHub
src/Repository/Model/Shoutbox.php

Summary

Maintainability
A
0 mins
Test Coverage

syntax error, unexpected 'int' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open

    private int $user = 0;
Severity: Critical
Found in src/Repository/Model/Shoutbox.php by phan

The parameter $object_id is not named in camelCase.
Open

    public function setObjectId(int $object_id): Shoutbox
    {
        $this->object_id = $object_id;

        return $this;
Severity: Minor
Found in src/Repository/Model/Shoutbox.php by phpmd

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

    public function setObjectType(string $object_type): Shoutbox
    {
        $this->object_type = $object_type;

        return $this;
Severity: Minor
Found in src/Repository/Model/Shoutbox.php by phpmd

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

Expected 0 spaces after opening bracket; newline found
Open

        if (

There are no issues that match your filters.

Category
Status