ampache/ampache

View on GitHub
src/Repository/UserActivityRepositoryInterface.php

Summary

Maintainability
A
35 mins
Test Coverage

Method registerGenericEntry has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        int $userId,
        string $action,
        string $object_type,
        int $objectId,
        int $date
Severity: Minor
Found in src/Repository/UserActivityRepositoryInterface.php - About 35 mins to fix

    The parameter $object_type is not named in camelCase.
    Open

        public function collectGarbage(
            ?string $object_type = null,
            ?int $object_id = null
        ): void;

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

        public function getFriendsActivities(
            int $user_id,
            int $limit = 0,
            int $since = 0
        ): 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 $user_id is not named in camelCase.
    Open

        public function deleteByDate(
            int $date,
            string $action,
            int $user_id = 0
        ): void;

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

        public function collectGarbage(
            ?string $object_type = null,
            ?int $object_id = null
        ): void;

    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 registerGenericEntry(
            int $userId,
            string $action,
            string $object_type,
            int $objectId,

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

        public function getActivities(
            int $user_id,
            int $limit = 0,
            int $since = 0
        ): 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