ampache/ampache

View on GitHub
src/Repository/AlbumRepositoryInterface.php

Summary

Maintainability
A
0 mins
Test Coverage

Doc-block of getByMbidGroup contains declared return type \Ampache\Repository\list<int></int> which is incompatible with the return type array declared in the signature
Open

     * @return list<int>

Parameter $album has undeclared type \Ampache\Repository\Model\Album
Open

    public function getArtistMap(Album $album, string $objectType): array;

Parameter $album has undeclared type \Ampache\Repository\Model\Album
Open

    public function delete(

Return type of getByName() is undeclared type \Ampache\Repository\list<int></int>
Open

    public function getByName(

Doc-block of getArtistMap contains declared return type \Ampache\Repository\list<int></int> which is incompatible with the return type array declared in the signature
Open

     * @return list<int>

Doc-block of getByName contains declared return type \Ampache\Repository\list<int></int> which is incompatible with the return type array declared in the signature
Open

     * @return list<int>

Return type of getByMbidGroup() is undeclared type \Ampache\Repository\list<int></int>
Open

    public function getByMbidGroup(

Return type of getArtistMap() is undeclared type \Ampache\Repository\list<int></int>
Open

    public function getArtistMap(Album $album, string $objectType): array;

The parameter $group_release_type is not named in camelCase.
Open

    public function getAlbumByArtist(
        int $artistId,
        ?int $catalogId = null,
        bool $group_release_type = false
    ): array;

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

    public function getByArtist(
        int $artistId,
        ?int $catalogId = null,
        bool $group_release_type = false
    ): array;

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

There are no issues that match your filters.

Category
Status