src/CoreBundle/State/MessageProcessor.php
Variable "sender_info" is not in valid camel caps format Open
Open
$sender_info = api_get_user_info(
- Exclude checks
Closing brace must be on a line by itself Open
Open
) {}
- Exclude checks
Variable "sender_info" is not in valid camel caps format Open
Open
$sender_info,
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->map(fn (MessageRelUser $messageRelUser): int => $messageRelUser->getReceiver()->getId())
- Exclude checks
Missing function doc comment Open
Open
public function __construct(
- Exclude checks
Missing function doc comment Open
Open
public function process($data, Operation $operation, array $uriVariables = [], array $context = [])
- Exclude checks
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
Missing class doc comment Open
Open
final class MessageProcessor implements ProcessorInterface
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private readonly EntityManagerInterface $entityManager,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private readonly RequestStack $requestStack
- Exclude checks
Closing brace must be on a line by itself Open
Open
) {}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private readonly ResourceNodeRepository $resourceNodeRepository,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private readonly FlysystemStorage $storage,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private readonly ProcessorInterface $persistProcessor,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private readonly ProcessorInterface $removeProcessor,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private readonly Security $security,
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->map(fn (MessageRelUser $messageRelUser): int => $messageRelUser->getReceiver()->getId())
- Exclude checks
The variable $sender_info is not named in camelCase. Open
Open
private function saveNotificationForInboxMessage(Message $message): void
{
$sender_info = api_get_user_info(
$message->getSender()->getId()
);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $sender_info is not named in camelCase. Open
Open
private function saveNotificationForInboxMessage(Message $message): void
{
$sender_info = api_get_user_info(
$message->getSender()->getId()
);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}