functions/usermanipulation.php
Showing 4 of 4 total issues
Function manipulateUser
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
Open
function manipulateUser($user, $role, $mycaps){ global $apiroot; $execute = false; switch($role){ case 0:
- Read upRead up
- Create a ticketCreate a ticket
Method manipulateUser
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function manipulateUser($user, $role, $mycaps){ global $apiroot; $execute = false; switch($role){ case 0:
- Create a ticketCreate a ticket
The function manipulateUser() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. Confirmed
Confirmed
function manipulateUser($user, $role, $mycaps){ global $apiroot; $execute = false; switch($role){ case 0:
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Avoid unused local variables such as '$config'. Open
Open
global $apiroot, $config;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks