newscoop/plugin-NewscoopPaywallBundle

View on GitHub
EventListener/HookListener.php

Summary

Maintainability
A
1 hr
Test Coverage

Method sidebar has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function sidebar(PluginHooksEvent $event)
    {
        $user = $this->userService->getCurrentUser();
        if (!$this->pluginsService->isEnabled(LifecycleSubscriber::PLUGIN_NAME) || !$user->hasPermission(Permissions::SIDEBAR)) {
            return;
Severity: Minor
Found in EventListener/HookListener.php - About 1 hr to fix

    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            $templating,
            $entityManager,
            $templatesProvider,
            $pluginsService,
            $userService
    Severity: Minor
    Found in EventListener/HookListener.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status