src/UserRightsManager.php
Method updateRoles
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateRoles()
{
// Make sure, the administrator role has all the necessary capabilities
$adminRole = get_role('administrator');
if (!empty($adminRole)) {