Test Failed
Push — master ( 0bc352...8c447f )
by Todd
03:54
created
src/Validation/Validator/Regex.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,9 @@
 block discarded – undo
14 14
    * @throws Exception
15 15
    */
16 16
   public function __construct($pattern, $description = null) {
17
-    if (!$this->isValidRegexPattern($pattern))
18
-      throw new Exception("Invalid Regex pattern: {$pattern}");
17
+    if (!$this->isValidRegexPattern($pattern)) {
18
+          throw new Exception("Invalid Regex pattern: {$pattern}");
19
+    }
19 20
     $this->pattern = $pattern;
20 21
     $this->message = $description;
21 22
   }
Please login to merge, or discard this patch.