src/Pug/PugSymfonyEngine.php
Showing 11 of 11 total issues
The class PugSymfonyEngine has a coupling between objects value of 18. Consider to reduce the number of dependencies under 13. Open
Open
class PugSymfonyEngine implements EngineInterface, InstallerInterface{ use Installer; use HelpersHandler; use Filters;
- Read upRead up
- Exclude checks
Avoid assigning values to variables in if clauses and the like (line '121', column '17'). Open
Open
protected function getFileFromName(string $name, string $directory = null): string { $parts = explode(':', $name); if (count($parts) > 1) {
- Read upRead up
- Exclude checks
syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open
Open
protected readonly KernelInterface $kernel,
- Exclude checks
Avoid excessively long variable names like $defaultTemplateDirectory. Keep variable name length under 20. Open
Open
protected $defaultTemplateDirectory;
- Read upRead up
- Exclude checks
Line exceeds 120 characters; contains 122 characters Open
Open
$this->userOptions = ($this->container->hasParameter('pug') ? $this->container->getParameter('pug') : null) ?: [];
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
return array_unique(array_map(static fn ($path) => realpath($path) ?: $path, $paths));
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
static fn (string $interceptorClass) => $container->get($interceptorClass),
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
static fn (string $interceptorClass) => $container->get($interceptorClass),
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
protected readonly KernelInterface $kernel,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private readonly ?RequestStack $stack = null,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private readonly ?RequestContext $context = null,
- Exclude checks