Skip to content

Commit 6331a29

Browse files
authored
Merge pull request pterodactyl#228 from Pterodactyl/analysis-XWDo3P
Apply fixes from StyleCI
2 parents a1dff5c + fb182ff commit 6331a29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Repositories/SubuserRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ public function create($sid, array $data)
141141
} catch (\Exception $ex) {
142142
throw $ex;
143143
}
144-
} else if ($server->owner === $user->id) {
144+
} elseif ($server->owner === $user->id) {
145145
throw new DisplayException('You cannot add the owner of a server as a subuser.');
146-
} else if (Models\Subuser::select('id')->where('user_id', $user->id)->where('server_id', $server->id)->first()) {
146+
} elseif (Models\Subuser::select('id')->where('user_id', $user->id)->where('server_id', $server->id)->first()) {
147147
throw new DisplayException('A subuser with that email already exists for this server.');
148148
}
149149

0 commit comments

Comments
 (0)