Passed
Push — master ( 8e7622...9d5f82 )
by Dedipyaman
03:54
created
src/Type/Username.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@
 block discarded – undo
36 36
      * @throws InvalidValue
37 37
      * @throws \Phypes\Exception\InvalidRule
38 38
      */
39
-    public function __construct(string $username, $options = [], Validator $validator = null)
39
+    public function __construct(string $username, $options = [ ], Validator $validator = null)
40 40
     {
41 41
         if ($validator == null) {
42 42
             // use the default validator
43 43
             $validator = new UsernameValidator(
44 44
                 getOptionalValue(self::OPT_MIN_LEN, $options, 4),
45 45
                 getOptionalValue(self::OPT_MAX_LEN, $options, 12),
46
-                getOptionalValue(self::OPT_ALLOWED_SPECIAL_CHARS, $options, ['-', '_']));
46
+                getOptionalValue(self::OPT_ALLOWED_SPECIAL_CHARS, $options, [ '-', '_' ]));
47 47
         }
48 48
 
49 49
         $result = $validator->validate($username, $options);
Please login to merge, or discard this patch.