src/Models/SeatGroup.php
Showing 3 of 3 total issues
Function isQualified
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
Open
public function isQualified(Group $group) { $action = new GetCurrentAffiliationAction;
- Read upRead up
Function isManager
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
public function isManager(Group $group) { if (in_array($group->id, $this->manager->pluck('id')->toArray())) return true;
- Read upRead up
Avoid too many return
statements within this method. Open
Open
return false;