Skip to content

Commit

Permalink
Further codeclimate changes
Browse files Browse the repository at this point in the history
- i will rebase these together once finished with codeclimate changes
  • Loading branch information
rowan04 committed Sep 12, 2023
1 parent c4aed06 commit 53370bf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/Doctrine/deploy/AddServiceGroupRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,20 @@
* one service group
*/
if (count($serviceGroups) !== 1) {
throw new Exception(count($serviceGroups) . " Service Groups found name: " .
$sgName);
throw new Exception(count($serviceGroups) . " Service Groups " .
"found name: " . $sgName);
}

foreach ($serviceGroups as $serviceGroup) {
$serviceGroup = $serviceGroup;
}

$doctrineRole = new Role($roleType, $doctrineUser, $serviceGroup,
'STATUS_GRANTED');
$doctrineRole = new Role(
$roleType,
$doctrineUser,
$serviceGroup,
'STATUS_GRANTED'
);
$entityManager->persist($doctrineRole);
}
}
Expand Down

0 comments on commit 53370bf

Please sign in to comment.