Showing 2 of 2 total issues
Function like
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public function like($guard = null, $type = 'like') { if (!($guard instanceof User) && (is_string($guard) || is_null($guard))) { $guard = $this->getLoggedInUserForLaraLike($guard); }
- Read upRead up
Function unlike
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public function unlike($guard = null, $type = 'like') { if (!($guard instanceof User) && (is_string($guard) || is_null($guard))) { $guard = $this->getLoggedInUserForLaraLike($guard); }
- Read upRead up