src/Repository/UserActivityRepositoryInterface.php
Method registerGenericEntry
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
int $userId,
string $action,
string $object_type,
int $objectId,
int $date
The parameter $object_type is not named in camelCase. Open
Open
public function collectGarbage(
?string $object_type = null,
?int $object_id = null
): void;
- Read upRead up
- Exclude checks
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
Open
public function getFriendsActivities(
int $user_id,
int $limit = 0,
int $since = 0
): array;
- Read upRead up
- Exclude checks
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
Open
public function deleteByDate(
int $date,
string $action,
int $user_id = 0
): void;
- Read upRead up
- Exclude checks
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
Open
public function collectGarbage(
?string $object_type = null,
?int $object_id = null
): void;
- Read upRead up
- Exclude checks
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
Open
public function registerGenericEntry(
int $userId,
string $action,
string $object_type,
int $objectId,
- Read upRead up
- Exclude checks
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
Open
public function getActivities(
int $user_id,
int $limit = 0,
int $since = 0
): array;
- Read upRead up
- Exclude checks
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) {
}
}