Passed
Push — master ( e83d2f...c5d235 )
by Dedipyaman
02:10
created
src/Rule/String/MaximumLength.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->maxLength) {
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_LONG,
32 32
                 'The supplied string is too long'));
33
+        }
33 34
     }
34 35
 }
35 36
\ No newline at end of file
Please login to merge, or discard this patch.