Passed
Push — master ( 999440...9f95fb )
by Dedipyaman
01:40
created
src/Rule/String/MinimumLength.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,10 @@
 block discarded – undo
26 26
     {
27 27
         if (mb_strlen($data, 'UTF-8') >= $this->minLength) {
28 28
             return new Result(true);
29
-        }
30
-        else return new Result(false,
29
+        } else {
30
+            return new Result(false,
31 31
             new RuleError(RuleErrorCode::TOO_SHORT,
32 32
             'The supplied string is too short'));
33
+        }
33 34
     }
34 35
 }
35 36
\ No newline at end of file
Please login to merge, or discard this patch.