Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark authored and StyleCIBot committed Aug 24, 2021
1 parent 8955fe9 commit e70f272
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/User/Console/AssignRoleCommand.php
Expand Up @@ -56,7 +56,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$user = $userRepo->findByPK($userId);
if (null === $user) {
throw new \Exception('Can\'t find user');
} elseif (null === $user->getId()) {
}
if (null === $user->getId()) {
throw new \Exception('User Id is NULL');
}

Expand Down
2 changes: 1 addition & 1 deletion src/User/Console/CreateCommand.php
Expand Up @@ -58,7 +58,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$role = $this->storage->getRoleByName('admin');
$userId = $user->getId();

if ($role === null){
if ($role === null) {
throw new \Exception('Role admin is NULL');
}

Expand Down

0 comments on commit e70f272

Please sign in to comment.