EventListener/HookListener.php
Method sidebar
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sidebar(PluginHooksEvent $event)
{
$user = $this->userService->getCurrentUser();
if (!$this->pluginsService->isEnabled(LifecycleSubscriber::PLUGIN_NAME) || !$user->hasPermission(Permissions::SIDEBAR)) {
return;
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$templating,
$entityManager,
$templatesProvider,
$pluginsService,
$userService