digipolisgent/symfony_bundle_syslog

View on GitHub

Showing 12 of 12 total issues

Doc comment for parameter "$defaultBaseUrl" missing
Open

/**

Missing blank line before return statement
Open

return $record;

Missing blank line before return statement
Open

return $record;

Avoid assigning values to variables in if clauses and the like (line '46', column '14').
Open

public function __invoke(array $record)
{
$record['extra']['base_url'] = $this->defaultBaseUrl;
 
// Ensure we have a request (maybe we're in a console command).

Avoid assigning values to variables in if clauses and the like (line '40', column '22').
Open

public function __invoke(array $record)
{
// client_ip will hold the request's actual origin address
$record['extra']['uid'] = 0;
 
 
Severity: Minor
Found in Monolog/Processor/UidProcessor.php by phpmd

Avoid assigning values to variables in if clauses and the like (line '53', column '14').
Open

public function __invoke(array $record)
{
// Yhe client_ip will hold the request's actual origin address.
$record['extra']['client_ip'] = $this->cachedClientIp
? $this->cachedClientIp

Avoid assigning values to variables in if clauses and the like (line '44', column '14').
Open

public function __invoke(array $record)
{
// client_ip will hold the request's actual origin address
$record['extra']['uid'] = 0;
 
 
Severity: Minor
Found in Monolog/Processor/UidProcessor.php by phpmd

Line exceeds 80 characters; contains 116 characters
Open

'level' => $container->getParameter("kernel.environment") === 'prod' ? 'notice' : 'warning',

Line exceeds 80 characters; contains 83 characters
Open

public function __construct(RequestStack $requestStack, $defaultBaseUrl = null)

Line exceeds 80 characters; contains 87 characters
Open

use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;

Line exceeds 80 characters; contains 117 characters
Open

'ident' => $container->getParameter('digipolis_syslog_identity') ?: 'no_syslog_identity_set',

Fenced code blocks should be surrounded by blank lines
Open

```parameters.yml``` file to configure the syslog identity.
Severity: Info
Found in README.md by markdownlint
Severity
Category
Status
Source
Language