Passed
Push — master ( aff02c...3db3b7 )
by Dedipyaman
01:35
created
src/Rule/String/ExactLength.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,10 @@
 block discarded – undo
34 34
     {
35 35
         if (mb_strlen($data, 'UTF-8') >= $this->length) {
36 36
             return new Success();
37
-        }
38
-        else return new Failure(
37
+        } else {
38
+            return new Failure(
39 39
             new RuleError(RuleErrorCode::LENGTH_ERROR,
40 40
                 'The supplied string is not of correct length'));
41
+        }
41 42
     }
42 43
 }
43 44
\ No newline at end of file
Please login to merge, or discard this patch.