open-orchestra/open-orchestra-cms-bundle

View on GitHub
GroupBundle/BusinessRules/Strategies/GroupStrategy.php

Summary

Maintainability
A
0 mins
Test Coverage

Parameter $userRepository has undeclared type \OpenOrchestra\UserBundle\Repository\UserRepositoryInterface
Open

    public function __construct(UserRepositoryInterface $userRepository)

Reference to undeclared property \OpenOrchestra\GroupBundle\BusinessRules\Strategies\GroupStrategy->userRepository
Open

            $nbrGroupsUsers = $this->userRepository->getCountsUsersByGroups(array($group->getId()));

Call to undeclared method \OpenOrchestra\Backoffice\Model\GroupInterface::getId
Open

            $nbrGroupsUsers = $this->userRepository->getCountsUsersByGroups(array($group->getId()));

Call to undeclared method \OpenOrchestra\Backoffice\Model\GroupInterface::getId
Open

        return 0 === $nbrGroupsUsers[$group->getId()];

Reference to undeclared property \OpenOrchestra\GroupBundle\BusinessRules\Strategies\GroupStrategy->userRepository (Did you mean $userRepository)
Open

        $this->userRepository = $userRepository;

Call to undeclared method \OpenOrchestra\Backoffice\Model\GroupInterface::getId
Open

        if (!array_key_exists($group->getId(), $nbrGroupsUsers)) {

There are no issues that match your filters.

Category
Status