| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class MemberManager |
||
| 17 | { |
||
| 18 | /** @var EntityManagerInterface **/ |
||
| 19 | protected $em; |
||
| 20 | /** @var EventDispatcherInterface **/ |
||
| 21 | protected $eventDispatcher; |
||
| 22 | |||
| 23 | |||
| 24 | 9 | public function __construct(EntityManagerInterface $em, EventDispatcherInterface $eventDispatcher) |
|
| 28 | 9 | } |
|
| 29 | |||
| 30 | 1 | public function getCommunityMembers(Community $community): array |
|
| 31 | { |
||
| 32 | 1 | return $this->em->getRepository(Member::class)->findByCommunity($community); |
|
|
|
|||
| 33 | } |
||
| 34 | |||
| 35 | 2 | public function getMemberCommunities(User $user): array |
|
| 38 | } |
||
| 39 | |||
| 40 | 3 | public function createMembership(Community $community, User $user, bool $isLead = false, bool $isNews = true): Member |
|
| 54 | } |
||
| 55 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.