From 1ca74dd1874f18aff1b1b294ab75dc45a86ef2d1 Mon Sep 17 00:00:00 2001 From: Yoann Celton Date: Wed, 28 Nov 2018 23:24:37 +1100 Subject: [PATCH] Formatting --- src/Util.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Util.php b/src/Util.php index 9561c8a..1ae3982 100644 --- a/src/Util.php +++ b/src/Util.php @@ -13,11 +13,11 @@ class Util { * @throws ValidationException */ public static function checkRoomId(string $roomId) { - if(strpos($roomId, '!') !== 0) { + if (strpos($roomId, '!') !== 0) { throw new ValidationException("RoomIDs start with !"); } - if(strpos($roomId, ':') === false) { + if (strpos($roomId, ':') === false) { throw new ValidationException("RoomIDs must have a domain component, seperated by a :"); } } @@ -29,11 +29,11 @@ class Util { * @throws ValidationException */ public static function checkUserId(string $userId) { - if(strpos($userId, '@') !== 0) { + if (strpos($userId, '@') !== 0) { throw new ValidationException("UserIDs start with @"); } - if(strpos($userId, ':') === false) { + if (strpos($userId, ':') === false) { throw new ValidationException("UserIDs must have a domain component, seperated by a :"); } }